ICU 65.1
65.1
|
C++ API: Locale matcher: User's desired locales vs. More...
#include "unicode/utypes.h"
#include "unicode/locid.h"
#include "unicode/stringpiece.h"
#include "unicode/uobject.h"
Go to the source code of this file.
Data Structures | |
class | icu::LocaleMatcher |
Immutable class that picks the best match between a user's desired locales and an application's supported locales. More... | |
class | icu::LocaleMatcher::Result |
Data for the best-matching pair of a desired and a supported locale. More... | |
class | icu::LocaleMatcher::Builder |
LocaleMatcher builder. More... | |
Namespaces | |
icu | |
File coll.h. | |
Enumerations | |
enum | ULocMatchFavorSubtag { ULOCMATCH_FAVOR_LANGUAGE, ULOCMATCH_FAVOR_SCRIPT } |
Builder option for whether the language subtag or the script subtag is most important. More... | |
enum | ULocMatchDemotion { ULOCMATCH_DEMOTION_NONE, ULOCMATCH_DEMOTION_REGION } |
Builder option for whether all desired locales are treated equally or earlier ones are preferred. More... | |
C++ API: Locale matcher: User's desired locales vs.
application's supported locales.
Definition in file localematcher.h.
enum ULocMatchDemotion |
Builder option for whether all desired locales are treated equally or earlier ones are preferred.
Enumerator | |
---|---|
ULOCMATCH_DEMOTION_NONE | All desired locales are treated equally.
|
ULOCMATCH_DEMOTION_REGION | Earlier desired locales are preferred. From each desired locale to the next, the distance to any supported locale is increased by an additional amount which is at least as large as most region mismatches. A later desired locale has to have a better match with some supported locale due to more than merely having the same region subtag. For example: Notes:
|
Definition at line 57 of file localematcher.h.
enum ULocMatchFavorSubtag |
Builder option for whether the language subtag or the script subtag is most important.
Enumerator | |
---|---|
ULOCMATCH_FAVOR_LANGUAGE | Language differences are most important, then script differences, then region differences. (This is the default behavior.)
|
ULOCMATCH_FAVOR_SCRIPT | Makes script differences matter relatively more than language differences.
|
Definition at line 31 of file localematcher.h.