Skip to main content

Mozilla

  • About
  • Foundation
  • Contribute
  • Community
  • Developers
  • Projects

  • Roadmap
  • Projects
  • Coding
    • Module Owners
    • Hacking
    • Get the Source
    • Build It
  • Testing
    • Releases
    • Nightly Builds
    • Report A Problem
  • Tools
    • Bugzilla
    • Tinderbox
    • Bonsai
    • MXR
  • FAQs

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++


  • Support Options
  • Security Center
  • Privacy Policy
  • Contact Us

International Affiliates: Mozilla Europe - Mozilla Japan - Mozilla China

Portions of this content are © 1998–2008 by individual mozilla.org contributors
Content available under a Creative Commons license

Last modified April 16, 1998 Document History Edit this Page (or via CVS)