The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

PUBLIC int INTL_NthByteOfChar ( int charSetID, char *pstr, int pos )

Returns the number of the byte pointed to by the given position

Documentation

Returns the number of the byte pointed to by the given position. Determines whether the byte at the given position is the 1st, 2nd, 3rd or 4th byte of the character at that position. The pstr pointer must point to the first byte of any preceding character in the string. The pos position must be greater than zero, and is the index into pstr plus one. I.e. the byte at pstr[0] has pos 1. If pos points to the only byte in a single-byte character, this function returns zero. Otherwise, if pos points to the 1st byte, it returns 1. If pos points to the 2nd byte, it returns 2. And so on.
Returns:
The number of the byte at the given position
Parameters:
charSetID - Specifies the charset ID of the given text
pstr - Specifies the beginning of a character in the string
pos - Specifies the byte position within the string
See Also:
INTL_CharLen

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++

Copyright © 1998-2000 The Mozilla Organization.
Last modified April 17, 1998.