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 char* XP_GetString (int id)

Get a cross platform string resource by ID

Documentation

Get a cross platform string resource by ID. This function makes localization easier for cross platform strings. The cross platfrom string resources are defined in allxpstr.h. You should use XP_GetString when:
  1. Any human readable string that not in front-end
  2. With the exception of HTML strings (use XP_GetStringForHTML)
  3. The translator/localizer will then translate the string defined in allxpstr.h and show the translated version to user.
The caller should make a copy of the returned string if it needs to use it for a while. The same memory buffer will be used to store another string the next time this function is called. The caller does not need to free the memory of the returned string.
Returns:
Localized (translated) string
Parameters:
id - Specifies the string resource ID
See Also:
XP_GetStringForHTML
INTL_ResourceCharSet

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)