haiku/docs/user/locale/Locale.dox
Adrien Destugues c6247544ed * Add the locale kit to the main page
* Complete and correct some parts of locale and catalog classes reference
 * Ensure the methods are prefixed with the class name so doxygen knows where they belong.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-04 12:01:38 +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 BLocale::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 BLocale::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 BLocale::BLanguage* Language() const
\brief Returns the language associated to this locale
*/
/*!
\fn int BLocale::StringCompare(const char* s1, const char* s2) const
\fn int BLocale::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 BLocale::GetSortKey(const char* string, BString* key) const
\brief Computes the sort key of a string
This method is a short-hand to Collator()->GetSortKey.
*/