Overview | Namespace | Class | Index | Help |
Global Functions in Global Namespace C++
in Sourcefile locale.h
- rtl_locale_equals
- extern "C"
sal_Int32 rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Summary
- Returns true if the locals are equal, otherwis false.
- rtl_locale_getCountry
- extern "C"
rtl_uString * rtl_locale_getCountry( rtl_Locale * This );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Summary
- Getter for programmatic name of field, an uppercased two-letter ISO-3166 code.
- See Also
- #getDisplayCountry
- rtl_locale_getDefault
- extern "C"
rtl_Locale * rtl_locale_getDefault();
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Description
- Common method of getting the current default Locale.
Used for the presentation: menus, dialogs, etc.
Generally set once when your applet or application is initialized,
then never reset. (If you do reset the default locale, you
probably want to reload your GUI, so that the change is reflected
in your interface.)
More advanced programs will allow users to use different locales for different fields, e.g. in a spreadsheet.
Note that the initial setting will match the host system.
- rtl_locale_getLanguage
- extern "C"
rtl_uString * rtl_locale_getLanguage( rtl_Locale * This );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Summary
- Getter for programmatic name of field, a lowercased two-letter ISO 639-1 or three-letter ISO 639-3 code.
- See Also
- #getDisplayLanguage
- rtl_locale_getVariant
- extern "C"
rtl_uString * rtl_locale_getVariant( rtl_Locale * This );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Summary
- Getter for programmatic name of field.
- See Also
- #getDisplayVariant
- rtl_locale_hashCode
- extern "C"
sal_Int32 rtl_locale_hashCode( rtl_Locale * This );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Summary
- Returns the hash code of the locale This.
- rtl_locale_register
- extern "C"
rtl_Locale * rtl_locale_register( const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Summary
- Register a locale from language, country and variant.
- Parameters
language lowercase two-letter ISO 639-1 or three-letter ISO 639-3 code.
country uppercase two-letter ISO-3166 code. May be null.
variant vendor and browser specific code. May be null.
- rtl_locale_setDefault
- extern "C"
void rtl_locale_setDefault( const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant );
- extern "C"
virtual abstract const volatile template static inline C-linkage NO NO NO NO NO NO NO YES
- Description
- Sets the default.
Normally set once at the beginning of applet or application,
then never reset.
setDefault
does not reset the host locale. - Parameters
language lowercase two-letter ISO 639-1 or three-letter ISO 639-3 code.
country uppercase two-letter ISO-3166 code.
variant vendor and browser specific code. See class description.
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.