haiku/docs/user/locale/Locale.dox
Adrien Destugues e9fd63ec7c * Fix some outdated information in documentation files
* Add a very small part of documentation about the Locale Kit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-03 16:02:55 +00:00

55 lines
1.5 KiB
Plaintext

/*!
\class BLocale
\ingroup locale
\brief Class for representing a locale and its settings
A locale is defined by the combination of a country and a language. Using these
two informations, it is possible to determine the format to use for date, time,
and number formatting. The BLocale class also provide collators, which allows
you to sort a list of strings properly depending on a set of rules about
accented chars and other special cases that vary over the different locales.
*/
/*!
\fn const BCollator* Collator() const
\brief Returns the collator associated to this locale
Returns the collator in use for this locale, allowing you to use it to sort a
set of strings.
*/
/*!
\fn const BCountry* Country() const
\brief Returns the country associated to this locale
A locale is defined by the combination of a country and a language. This
method gets the country part of this information, so you can access the
data that is not language-dependant (such as the country flag).
*/
/*!
\fn const BLanguage* Language() const
\brief Returns the language associated to this locale
*/
/*!
\fn int StringCompare(const char* s1, const char* s2) const
\fn int StringCompare(const BString* s1, const BString* s2) const
\brief Compares two strings using the locale's collator
These methods are short-hands to Collator()->StringCompare.
*/
/*!
\fn void GetSortKey(const char* string, BString* key) const
\brief Computes the sort key of a string
This method is a short-hand to Collator()->GetSortKey.
*/