ICU 53.1  53.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ucol.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (c) 1996-2014, International Business Machines Corporation and others.
4 * All Rights Reserved.
5 *******************************************************************************
6 */
7 
8 #ifndef UCOL_H
9 #define UCOL_H
10 
11 #include "unicode/utypes.h"
12 
13 #if !UCONFIG_NO_COLLATION
14 
15 #include "unicode/unorm.h"
16 #include "unicode/localpointer.h"
17 #include "unicode/parseerr.h"
18 #include "unicode/uloc.h"
19 #include "unicode/uset.h"
20 #include "unicode/uscript.h"
21 
52 struct UCollator;
56 typedef struct UCollator UCollator;
57 
58 
71 typedef enum {
77  UCOL_LESS = -1
79 
80 
87 typedef enum {
90 
99  UCOL_CE_STRENGTH_LIMIT,
104  UCOL_STRENGTH_LIMIT,
105 
109  UCOL_OFF = 16,
113  UCOL_ON = 17,
114 
119 
125 
126  UCOL_ATTRIBUTE_VALUE_COUNT
127 
129 
139  typedef enum {
201 
229 
234 typedef enum {
303 #ifndef U_HIDE_DEPRECATED_API
304 
316 #endif /* U_HIDE_DEPRECATED_API */
317 
341 } UColAttribute;
342 
346 typedef enum {
361 } UColRuleOption ;
362 
380 U_STABLE UCollator* U_EXPORT2
381 ucol_open(const char *loc, UErrorCode *status);
382 
408 U_STABLE UCollator* U_EXPORT2
409 ucol_openRules( const UChar *rules,
410  int32_t rulesLength,
411  UColAttributeValue normalizationMode,
412  UCollationStrength strength,
413  UParseError *parseError,
414  UErrorCode *status);
415 
450 U_STABLE UCollator* U_EXPORT2
451 ucol_openFromShortString( const char *definition,
452  UBool forceDefaults,
453  UParseError *parseError,
454  UErrorCode *status);
455 
456 #ifndef U_HIDE_DEPRECATED_API
457 
470 U_DEPRECATED int32_t U_EXPORT2
471 ucol_getContractions( const UCollator *coll,
472  USet *conts,
473  UErrorCode *status);
474 #endif /* U_HIDE_DEPRECATED_API */
475 
487 U_STABLE void U_EXPORT2
489  USet *contractions, USet *expansions,
490  UBool addPrefixes, UErrorCode *status);
491 
502 U_STABLE void U_EXPORT2
503 ucol_close(UCollator *coll);
504 
505 #if U_SHOW_CPLUSPLUS_API
506 
508 
519 
521 
522 #endif
523 
539 U_STABLE UCollationResult U_EXPORT2
540 ucol_strcoll( const UCollator *coll,
541  const UChar *source,
542  int32_t sourceLength,
543  const UChar *target,
544  int32_t targetLength);
545 
564 U_STABLE UCollationResult U_EXPORT2
566  const UCollator *coll,
567  const char *source,
568  int32_t sourceLength,
569  const char *target,
570  int32_t targetLength,
571  UErrorCode *status);
572 
587 U_STABLE UBool U_EXPORT2
588 ucol_greater(const UCollator *coll,
589  const UChar *source, int32_t sourceLength,
590  const UChar *target, int32_t targetLength);
591 
606 U_STABLE UBool U_EXPORT2
607 ucol_greaterOrEqual(const UCollator *coll,
608  const UChar *source, int32_t sourceLength,
609  const UChar *target, int32_t targetLength);
610 
625 U_STABLE UBool U_EXPORT2
626 ucol_equal(const UCollator *coll,
627  const UChar *source, int32_t sourceLength,
628  const UChar *target, int32_t targetLength);
629 
642 U_STABLE UCollationResult U_EXPORT2
643 ucol_strcollIter( const UCollator *coll,
644  UCharIterator *sIter,
645  UCharIterator *tIter,
646  UErrorCode *status);
647 
657 U_STABLE UCollationStrength U_EXPORT2
658 ucol_getStrength(const UCollator *coll);
659 
669 U_STABLE void U_EXPORT2
671  UCollationStrength strength);
672 
689 U_STABLE int32_t U_EXPORT2
690 ucol_getReorderCodes(const UCollator* coll,
691  int32_t* dest,
692  int32_t destCapacity,
693  UErrorCode *pErrorCode);
729 U_STABLE void U_EXPORT2
731  const int32_t* reorderCodes,
732  int32_t reorderCodesLength,
733  UErrorCode *pErrorCode);
734 
751 U_STABLE int32_t U_EXPORT2
752 ucol_getEquivalentReorderCodes(int32_t reorderCode,
753  int32_t* dest,
754  int32_t destCapacity,
755  UErrorCode *pErrorCode);
756 
769 U_STABLE int32_t U_EXPORT2
770 ucol_getDisplayName( const char *objLoc,
771  const char *dispLoc,
772  UChar *result,
773  int32_t resultLength,
774  UErrorCode *status);
775 
785 U_STABLE const char* U_EXPORT2
786 ucol_getAvailable(int32_t localeIndex);
787 
796 U_STABLE int32_t U_EXPORT2
797 ucol_countAvailable(void);
798 
799 #if !UCONFIG_NO_SERVICE
800 
808 U_STABLE UEnumeration* U_EXPORT2
810 #endif
811 
821 U_STABLE UEnumeration* U_EXPORT2
823 
835 U_STABLE UEnumeration* U_EXPORT2
836 ucol_getKeywordValues(const char *keyword, UErrorCode *status);
837 
854 U_STABLE UEnumeration* U_EXPORT2
855 ucol_getKeywordValuesForLocale(const char* key,
856  const char* locale,
857  UBool commonlyUsed,
858  UErrorCode* status);
859 
890 U_STABLE int32_t U_EXPORT2
891 ucol_getFunctionalEquivalent(char* result, int32_t resultCapacity,
892  const char* keyword, const char* locale,
893  UBool* isAvailable, UErrorCode* status);
894 
903 U_STABLE const UChar* U_EXPORT2
904 ucol_getRules( const UCollator *coll,
905  int32_t *length);
906 
927 U_STABLE int32_t U_EXPORT2
929  const char *locale,
930  char *buffer,
931  int32_t capacity,
932  UErrorCode *status);
933 
954 U_STABLE int32_t U_EXPORT2
955 ucol_normalizeShortDefinitionString(const char *source,
956  char *destination,
957  int32_t capacity,
958  UParseError *parseError,
959  UErrorCode *status);
960 
961 
981 U_STABLE int32_t U_EXPORT2
982 ucol_getSortKey(const UCollator *coll,
983  const UChar *source,
984  int32_t sourceLength,
985  uint8_t *result,
986  int32_t resultLength);
987 
988 
1009 U_STABLE int32_t U_EXPORT2
1010 ucol_nextSortKeyPart(const UCollator *coll,
1011  UCharIterator *iter,
1012  uint32_t state[2],
1013  uint8_t *dest, int32_t count,
1014  UErrorCode *status);
1015 
1023 typedef enum {
1030  UCOL_BOUND_VALUE_COUNT
1031 } UColBoundMode;
1032 
1070 U_STABLE int32_t U_EXPORT2
1071 ucol_getBound(const uint8_t *source,
1072  int32_t sourceLength,
1073  UColBoundMode boundType,
1074  uint32_t noOfLevels,
1075  uint8_t *result,
1076  int32_t resultLength,
1077  UErrorCode *status);
1078 
1087 U_STABLE void U_EXPORT2
1088 ucol_getVersion(const UCollator* coll, UVersionInfo info);
1089 
1097 U_STABLE void U_EXPORT2
1098 ucol_getUCAVersion(const UCollator* coll, UVersionInfo info);
1099 
1136 U_STABLE int32_t U_EXPORT2
1137 ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
1138  const uint8_t *src2, int32_t src2Length,
1139  uint8_t *dest, int32_t destCapacity);
1140 
1152 U_STABLE void U_EXPORT2
1154 
1166 U_STABLE UColAttributeValue U_EXPORT2
1167 ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status);
1168 
1169 #ifndef U_HIDE_DRAFT_API
1170 
1187 U_DRAFT void U_EXPORT2
1188 ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode);
1189 
1197 U_DRAFT UColReorderCode U_EXPORT2
1198 ucol_getMaxVariable(const UCollator *coll);
1199 
1200 #endif /* U_HIDE_DRAFT_API */
1201 
1222 U_DEPRECATED uint32_t U_EXPORT2
1224  const UChar *varTop, int32_t len,
1225  UErrorCode *status);
1226 
1238 U_STABLE uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status);
1239 
1253 U_DEPRECATED void U_EXPORT2
1254 ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status);
1255 
1279 U_STABLE UCollator* U_EXPORT2
1280 ucol_safeClone(const UCollator *coll,
1281  void *stackBuffer,
1282  int32_t *pBufferSize,
1283  UErrorCode *status);
1284 
1285 #ifndef U_HIDE_DEPRECATED_API
1286 
1290 #define U_COL_SAFECLONE_BUFFERSIZE 1
1291 
1292 #endif /* U_HIDE_DEPRECATED_API */
1293 
1309 U_STABLE int32_t U_EXPORT2
1310 ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen);
1311 
1312 #ifndef U_HIDE_DEPRECATED_API
1313 
1327 U_DEPRECATED const char * U_EXPORT2
1328 ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status);
1329 #endif /* U_HIDE_DEPRECATED_API */
1330 
1345 U_STABLE const char * U_EXPORT2
1346 ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status);
1347 
1358 U_STABLE USet * U_EXPORT2
1359 ucol_getTailoredSet(const UCollator *coll, UErrorCode *status);
1360 
1361 #ifndef U_HIDE_INTERNAL_API
1362 
1373 U_INTERNAL int32_t U_EXPORT2
1374 ucol_getUnsafeSet( const UCollator *coll,
1375  USet *unsafe,
1376  UErrorCode *status);
1377 
1398 U_INTERNAL void U_EXPORT2
1399 ucol_prepareShortStringOpen( const char *definition,
1400  UBool forceDefaults,
1401  UParseError *parseError,
1402  UErrorCode *status);
1403 #endif /* U_HIDE_INTERNAL_API */
1404 
1416 U_STABLE int32_t U_EXPORT2
1417 ucol_cloneBinary(const UCollator *coll,
1418  uint8_t *buffer, int32_t capacity,
1419  UErrorCode *status);
1420 
1438 U_STABLE UCollator* U_EXPORT2
1439 ucol_openBinary(const uint8_t *bin, int32_t length,
1440  const UCollator *base,
1441  UErrorCode *status);
1442 
1443 
1444 #endif /* #if !UCONFIG_NO_COLLATION */
1445 
1446 #endif
"Smart pointer" class, closes a UCollator via ucol_close().
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.
Definition: uversion.h:57
const UChar * ucol_getRules(const UCollator *coll, int32_t *length)
Get the collation tailoring rules from a UCollator.
Characters with the currency property.
Definition: ucol.h:187
string a < string b
Definition: ucol.h:77
Turn the feature on - works for UCOL_FRENCH_COLLATION, UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MODE...
Definition: ucol.h:113
Characters with the symbol property.
Definition: ucol.h:181
void ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode)
Sets the variable top to the top of the specified reordering group.
Retrieves the "UCA rules" concatenated with the tailoring rules.
Definition: ucol.h:360
UBool ucol_equal(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength)
Compare two strings for equality.
A special reordering code that is used to specify all other codes used for reordering except for the ...
Definition: ucol.h:157
UColAttributeValue ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status)
Universal attribute getter.
void ucol_getUCAVersion(const UCollator *coll, UVersionInfo info)
Gets the UCA version information for a Collator.
UCollationResult ucol_strcoll(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength)
Compare two strings.
upper bound that will match all the strings that have the same initial substring as the given string ...
Definition: ucol.h:1029
int32_t ucol_getSortKey(const UCollator *coll, const UChar *source, int32_t sourceLength, uint8_t *result, int32_t resultLength)
Get a sort key for a string from a UCollator.
lower bound
Definition: ucol.h:1025
Controls the ordering of upper and lower case letters.
Definition: ucol.h:261
int32_t ucol_getReorderCodes(const UCollator *coll, int32_t *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Retrieves the reordering codes for this collator.
UCollationResult
UCOL_LESS is returned if source string is compared to be less than target string in the ucol_strcoll(...
Definition: ucol.h:71
Retrieves the tailoring rules only.
Definition: ucol.h:352
int32_t ucol_getEquivalentReorderCodes(int32_t reorderCode, int32_t *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Retrieves the reorder codes that are grouped with the given reorder code.
uint32_t ucol_setVariableTop(UCollator *coll, const UChar *varTop, int32_t len, UErrorCode *status)
Sets the variable top to the primary weight of the specified string.
Valid for UCOL_ALTERNATE_HANDLING.
Definition: ucol.h:118
Controls whether the normalization check and necessary normalizations are performed.
Definition: ucol.h:281
struct UEnumeration UEnumeration
structure representing an enumeration object instance
Definition: uenum.h:39
int32_t ucol_countAvailable(void)
Determine how many locales have collation rules available.
void ucol_getContractionsAndExpansions(const UCollator *coll, USet *contractions, USet *expansions, UBool addPrefixes, UErrorCode *status)
Get a set containing the expansions defined by the collator.
C API for code unit iteration.
Definition: uiter.h:339
USet * ucol_getTailoredSet(const UCollator *coll, UErrorCode *status)
Get a Unicode set that contains all the characters and sequences tailored in this collator...
accepted by most attributes
Definition: ucol.h:89
#define U_INTERNAL
This is used to declare a function as an internal ICU C API.
Definition: umachine.h:117
string a == string b
Definition: ucol.h:73
int32_t ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen)
Returns current rules.
UColAttributeValue UCollationStrength
Base letter represents a primary difference.
Definition: ucol.h:228
Characters with the digit property.
Definition: ucol.h:193
Default collation strength.
Definition: ucol.h:98
Valid for UCOL_CASE_FIRST - lower case sorts before upper case.
Definition: ucol.h:122
C API: Unicode Script Information.
C API: Unicode Set.
UColReorderCode
Enum containing the codes for reordering segments of the collation table that are not script codes...
Definition: ucol.h:139
void ucol_setReorderCodes(UCollator *coll, const int32_t *reorderCodes, int32_t reorderCodesLength, UErrorCode *pErrorCode)
Sets the reordering codes for this collator.
UColAttribute
Attributes that collation service understands.
Definition: ucol.h:234
Turn the feature off - works for UCOL_FRENCH_COLLATION, UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MOD...
Definition: ucol.h:109
#define U_DEPRECATED
This is used to declare a function as a deprecated public ICU C API.
Definition: umachine.h:113
uint32_t ucol_getVariableTop(const UCollator *coll, UErrorCode *status)
Gets the variable top value of a Collator.
UEnumeration * ucol_openAvailableLocales(UErrorCode *status)
Create a string enumerator of all locales for which a valid collator may be opened.
A special reordering code that is used to specify no reordering codes.
Definition: ucol.h:150
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
upper bound that will match strings of exact size
Definition: ucol.h:1027
Attribute for direction of secondary weights - used in Canadian French.
Definition: ucol.h:241
The strength attribute.
Definition: ucol.h:302
When turned on, this attribute makes substrings of digits sort according to their numeric values...
Definition: ucol.h:335
int32_t ucol_cloneBinary(const UCollator *coll, uint8_t *buffer, int32_t capacity, UErrorCode *status)
Creates a binary image of a collator.
Secondary collation strength.
Definition: ucol.h:94
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
Definition: localpointer.h:290
void ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status)
Sets the variable top to the specified primary weight.
When turned on, this attribute positions Hiragana before all non-ignorables on quaternary level This ...
Definition: ucol.h:315
Controls whether an extra case level (positioned before the third level) is generated or not...
Definition: ucol.h:271
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
int32_t ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length, const uint8_t *src2, int32_t src2Length, uint8_t *dest, int32_t destCapacity)
Merges two sort keys.
C API: Unicode Normalization.
int32_t ucol_getContractions(const UCollator *coll, USet *conts, UErrorCode *status)
Get a set containing the contractions defined by the collator.
upper case sorts before lower case
Definition: ucol.h:124
The first entry in the enumeration of reordering groups.
Definition: ucol.h:169
int32_t ucol_nextSortKeyPart(const UCollator *coll, UCharIterator *iter, uint32_t state[2], uint8_t *dest, int32_t count, UErrorCode *status)
Gets the next count bytes of a sort key.
UCollator * ucol_openBinary(const uint8_t *bin, int32_t length, const UCollator *base, UErrorCode *status)
Opens a collator from a collator binary image created using ucol_cloneBinary.
void ucol_prepareShortStringOpen(const char *definition, UBool forceDefaults, UParseError *parseError, UErrorCode *status)
Touches all resources needed for instantiating a collator from a short string definition, thus filling up the cache.
const char * ucol_getAvailable(int32_t localeIndex)
Get a locale for which collation rules are available.
void ucol_close(UCollator *coll)
Close a UCollator.
Tertiary collation strength.
Definition: ucol.h:96
UCollationResult ucol_strcollIter(const UCollator *coll, UCharIterator *sIter, UCharIterator *tIter, UErrorCode *status)
Compare two UTF-8 encoded trings.
int32_t ucol_getDisplayName(const char *objLoc, const char *dispLoc, UChar *result, int32_t resultLength, UErrorCode *status)
Get the display name for a UCollator.
UEnumeration * ucol_getKeywordValuesForLocale(const char *key, const char *locale, UBool commonlyUsed, UErrorCode *status)
Given a key and a locale, returns an array of string values in a preferred order that would make a di...
A special reordering code that is used to specify the default reordering codes for a locale...
Definition: ucol.h:145
const char * ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status)
gets the locale name of the collator.
void ucol_getVersion(const UCollator *coll, UVersionInfo info)
Gets the version information for a Collator.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition: umachine.h:278
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
struct USet USet
Definition: ucnv.h:67
UBool ucol_greaterOrEqual(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength)
Determine if one string is greater than or equal to another.
string a > string b
Definition: ucol.h:75
C API: Parse Error Information.
int32_t ucol_normalizeShortDefinitionString(const char *source, char *destination, int32_t capacity, UParseError *parseError, UErrorCode *status)
Verifies and normalizes short definition string.
UCollator * ucol_openRules(const UChar *rules, int32_t rulesLength, UColAttributeValue normalizationMode, UCollationStrength strength, UParseError *parseError, UErrorCode *status)
Produce a UCollator instance according to the rules supplied.
int32_t ucol_getShortDefinitionString(const UCollator *coll, const char *locale, char *buffer, int32_t capacity, UErrorCode *status)
Get the short definition string for a collator.
UBool ucol_greater(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength)
Determine if one string is greater than another.
void ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status)
Universal attribute setter.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested...
Definition: uloc.h:336
int32_t ucol_getUnsafeSet(const UCollator *coll, USet *unsafe, UErrorCode *status)
Calculates the set of unsafe code points, given a collator.
UEnumeration * ucol_getKeywordValues(const char *keyword, UErrorCode *status)
Given a keyword, create a string enumeration of all values for that keyword that are currently in use...
const char * ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status)
gets the locale name of the collator.
int32_t ucol_getFunctionalEquivalent(char *result, int32_t resultCapacity, const char *keyword, const char *locale, UBool *isAvailable, UErrorCode *status)
Return the functionally equivalent locale for the given requested locale, with respect to given keywo...
Characters with the punctuation property.
Definition: ucol.h:175
UColBoundMode
enum that is taken by ucol_getBound API See below for explanation do not change the values assigned t...
Definition: ucol.h:1023
void ucol_setStrength(UCollator *coll, UCollationStrength strength)
Set the collation strength used in a UCollator.
UCollationResult ucol_strcollUTF8(const UCollator *coll, const char *source, int32_t sourceLength, const char *target, int32_t targetLength, UErrorCode *status)
Compare two strings in UTF-8.
struct UCollator UCollator
structure representing a collator object instance
Definition: ucol.h:56
UColReorderCode ucol_getMaxVariable(const UCollator *coll)
Returns the maximum reordering group whose characters are affected by UCOL_ALTERNATE_HANDLING.
Valid for UCOL_ALTERNATE_HANDLING.
Definition: ucol.h:116
A UParseError struct is used to returned detailed information about parsing errors.
Definition: parseerr.h:56
UCollator * ucol_safeClone(const UCollator *coll, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status)
Thread safe cloning operation.
Basic definitions for ICU, for both C and C++ APIs.
int32_t ucol_getBound(const uint8_t *source, int32_t sourceLength, UColBoundMode boundType, uint32_t noOfLevels, uint8_t *result, int32_t resultLength, UErrorCode *status)
Produce a bound for a given sortkey and a number of levels.
Identical collation strength.
Definition: ucol.h:103
UCollator * ucol_openFromShortString(const char *definition, UBool forceDefaults, UParseError *parseError, UErrorCode *status)
Open a collator defined by a short form string.
Quaternary collation strength.
Definition: ucol.h:101
Attribute for handling variable elements.
Definition: ucol.h:252
An alias for UCOL_NORMALIZATION_MODE attribute.
Definition: ucol.h:285
UColAttributeValue
Enum containing attribute values for controling collation behavior.
Definition: ucol.h:87
UEnumeration * ucol_getKeywords(UErrorCode *status)
Create a string enumerator of all possible keywords that are relevant to collation.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
Definition: umachine.h:111
UCollator * ucol_open(const char *loc, UErrorCode *status)
Open a UCollator for comparing strings.
Characters with the space property.
Definition: ucol.h:163
UColRuleOption
Options for retrieving the rule string.
Definition: ucol.h:346
The number of UColAttribute constants.
Definition: ucol.h:340
UCollationStrength ucol_getStrength(const UCollator *coll)
Get the collation strength used in a UCollator.
Primary collation strength.
Definition: ucol.h:92
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109
int8_t UBool
The ICU boolean type.
Definition: umachine.h:200
The limit of the reorder codes.
Definition: ucol.h:199
C API: Locale.