Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
 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 );

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 );

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();

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 );

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 lowercased two-letter ISO-639 code.
See Also
#getDisplayLanguage

rtl_locale_getVariant
extern "C"
rtl_uString * rtl_locale_getVariant(
rtl_Locale * This );

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 );

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 );

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 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 );

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 code.
country
uppercase two-letter ISO-3166 code.
variant
vendor and browser specific code. See class description.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.