The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Search
Feedback


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 The Mozilla Organization.