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 XP_StrColl ( const char *s1, const char *s2 )

Collate strings according to global locale

Documentation

Collate strings according to global locale. Compares two strings in the global locale. Returns a number less than 0 if the second string is greater, 0 if they are the same, and greater than 0 if the first string is greater, according to the sorting rules appropriate for the current locale. This routine currently does not handle multiple charsets. The locale is controlled by the platform through a control panel or the LC_TIME environment variable.
Returns:
0 if s1 is equal to s2, less than 0 if s2 is greater, greater than 0 if s1 is greater
Parameters:
s1 - Specifies string 1, in the global locale's charset
s2 - Specifies string 2, in the global locale's charset

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)