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 PR_CALLBACK INTL_IsLeadByte ( int charSetID, unsigned char ch )

Returns number of bytes in given character, minus 1

Documentation

Returns number of bytes in given character, minus 1. This function returns the number of bytes in a character that starts with the given byte, minus 1. I.e. for a single-byte character, it returns zero. For a double-byte character, it returns 1. And so on. Hence, this function returns a non-zero value if the given byte is the "lead byte" of a multibyte character. This function should not be confused with Windows API isleadbyte().
Returns:
The number of bytes in the given character, minus 1
Parameters:
charSetID - Specifies the charset ID of the text
ch - Specifies the first byte of a character in the text
See Also:
INTL_CharLen

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++

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