ICU 62.1 62.1
ucol.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4*******************************************************************************
5* Copyright (c) 1996-2015, International Business Machines Corporation and others.
6* All Rights Reserved.
7*******************************************************************************
8*/
9
10#ifndef UCOL_H
11#define UCOL_H
12
13#include "unicode/utypes.h"
14
15#if !UCONFIG_NO_COLLATION
16
17#include "unicode/unorm.h"
19#include "unicode/parseerr.h"
20#include "unicode/uloc.h"
21#include "unicode/uset.h"
22#include "unicode/uscript.h"
23
54struct UCollator;
58typedef struct UCollator UCollator;
59
60
73typedef enum {
79 UCOL_LESS = -1
81
82
89typedef enum {
92
101 UCOL_CE_STRENGTH_LIMIT,
106 UCOL_STRENGTH_LIMIT,
107
116
121
127
128#ifndef U_HIDE_DEPRECATED_API
134#endif /* U_HIDE_DEPRECATED_API */
136
209
237
242typedef enum {
311#ifndef U_HIDE_DEPRECATED_API
324#endif /* U_HIDE_DEPRECATED_API */
344
345 /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API,
346 * it is needed for layout of RuleBasedCollator object. */
353
373
399U_STABLE UCollator* U_EXPORT2
400ucol_open(const char *loc, UErrorCode *status);
401
427U_STABLE UCollator* U_EXPORT2
428ucol_openRules( const UChar *rules,
429 int32_t rulesLength,
430 UColAttributeValue normalizationMode,
431 UCollationStrength strength,
432 UParseError *parseError,
433 UErrorCode *status);
434
435#ifndef U_HIDE_DEPRECATED_API
469U_DEPRECATED UCollator* U_EXPORT2
470ucol_openFromShortString( const char *definition,
471 UBool forceDefaults,
472 UParseError *parseError,
473 UErrorCode *status);
474#endif /* U_HIDE_DEPRECATED_API */
475
476#ifndef U_HIDE_DEPRECATED_API
490U_DEPRECATED int32_t U_EXPORT2
492 USet *conts,
493 UErrorCode *status);
494#endif /* U_HIDE_DEPRECATED_API */
495
507U_STABLE void U_EXPORT2
509 USet *contractions, USet *expansions,
510 UBool addPrefixes, UErrorCode *status);
511
522U_STABLE void U_EXPORT2
524
525#if U_SHOW_CPLUSPLUS_API
526
528
539
541
542#endif
543
559U_STABLE UCollationResult U_EXPORT2
561 const UChar *source,
562 int32_t sourceLength,
563 const UChar *target,
564 int32_t targetLength);
565
586 const UCollator *coll,
587 const char *source,
588 int32_t sourceLength,
589 const char *target,
590 int32_t targetLength,
591 UErrorCode *status);
592
607U_STABLE UBool U_EXPORT2
609 const UChar *source, int32_t sourceLength,
610 const UChar *target, int32_t targetLength);
611
626U_STABLE UBool U_EXPORT2
628 const UChar *source, int32_t sourceLength,
629 const UChar *target, int32_t targetLength);
630
645U_STABLE UBool U_EXPORT2
647 const UChar *source, int32_t sourceLength,
648 const UChar *target, int32_t targetLength);
649
662U_STABLE UCollationResult U_EXPORT2
664 UCharIterator *sIter,
665 UCharIterator *tIter,
666 UErrorCode *status);
667
679
689U_STABLE void U_EXPORT2
691 UCollationStrength strength);
692
709U_STABLE int32_t U_EXPORT2
711 int32_t* dest,
712 int32_t destCapacity,
713 UErrorCode *pErrorCode);
754U_STABLE void U_EXPORT2
756 const int32_t* reorderCodes,
757 int32_t reorderCodesLength,
758 UErrorCode *pErrorCode);
759
779U_STABLE int32_t U_EXPORT2
781 int32_t* dest,
782 int32_t destCapacity,
783 UErrorCode *pErrorCode);
784
797U_STABLE int32_t U_EXPORT2
798ucol_getDisplayName( const char *objLoc,
799 const char *dispLoc,
800 UChar *result,
801 int32_t resultLength,
802 UErrorCode *status);
803
813U_STABLE const char* U_EXPORT2
814ucol_getAvailable(int32_t localeIndex);
815
824U_STABLE int32_t U_EXPORT2
826
827#if !UCONFIG_NO_SERVICE
836U_STABLE UEnumeration* U_EXPORT2
838#endif
839
849U_STABLE UEnumeration* U_EXPORT2
851
863U_STABLE UEnumeration* U_EXPORT2
864ucol_getKeywordValues(const char *keyword, UErrorCode *status);
865
882U_STABLE UEnumeration* U_EXPORT2
884 const char* locale,
885 UBool commonlyUsed,
886 UErrorCode* status);
887
919U_STABLE int32_t U_EXPORT2
920ucol_getFunctionalEquivalent(char* result, int32_t resultCapacity,
921 const char* keyword, const char* locale,
922 UBool* isAvailable, UErrorCode* status);
923
932U_STABLE const UChar* U_EXPORT2
934 int32_t *length);
935
936#ifndef U_HIDE_DEPRECATED_API
957U_DEPRECATED int32_t U_EXPORT2
959 const char *locale,
960 char *buffer,
961 int32_t capacity,
962 UErrorCode *status);
963
984U_DEPRECATED int32_t U_EXPORT2
986 char *destination,
987 int32_t capacity,
988 UParseError *parseError,
989 UErrorCode *status);
990#endif /* U_HIDE_DEPRECATED_API */
991
992
1015U_STABLE int32_t U_EXPORT2
1017 const UChar *source,
1018 int32_t sourceLength,
1019 uint8_t *result,
1020 int32_t resultLength);
1021
1022
1043U_STABLE int32_t U_EXPORT2
1045 UCharIterator *iter,
1046 uint32_t state[2],
1047 uint8_t *dest, int32_t count,
1048 UErrorCode *status);
1049
1057typedef enum {
1064#ifndef U_HIDE_DEPRECATED_API
1070#endif /* U_HIDE_DEPRECATED_API */
1072
1110U_STABLE int32_t U_EXPORT2
1111ucol_getBound(const uint8_t *source,
1112 int32_t sourceLength,
1113 UColBoundMode boundType,
1114 uint32_t noOfLevels,
1115 uint8_t *result,
1116 int32_t resultLength,
1117 UErrorCode *status);
1118
1127U_STABLE void U_EXPORT2
1129
1137U_STABLE void U_EXPORT2
1139
1187U_STABLE int32_t U_EXPORT2
1188ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
1189 const uint8_t *src2, int32_t src2Length,
1190 uint8_t *dest, int32_t destCapacity);
1191
1203U_STABLE void U_EXPORT2
1205
1219
1236U_STABLE void U_EXPORT2
1238
1246U_STABLE UColReorderCode U_EXPORT2
1248
1249#ifndef U_HIDE_DEPRECATED_API
1270U_DEPRECATED uint32_t U_EXPORT2
1272 const UChar *varTop, int32_t len,
1273 UErrorCode *status);
1274#endif /* U_HIDE_DEPRECATED_API */
1275
1287U_STABLE uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status);
1288
1289#ifndef U_HIDE_DEPRECATED_API
1303U_DEPRECATED void U_EXPORT2
1304ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status);
1305#endif /* U_HIDE_DEPRECATED_API */
1306
1330U_STABLE UCollator* U_EXPORT2
1332 void *stackBuffer,
1333 int32_t *pBufferSize,
1334 UErrorCode *status);
1335
1336#ifndef U_HIDE_DEPRECATED_API
1337
1341#define U_COL_SAFECLONE_BUFFERSIZE 1
1342
1343#endif /* U_HIDE_DEPRECATED_API */
1344
1360U_STABLE int32_t U_EXPORT2
1361ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen);
1362
1363#ifndef U_HIDE_DEPRECATED_API
1378U_DEPRECATED const char * U_EXPORT2
1380#endif /* U_HIDE_DEPRECATED_API */
1381
1396U_STABLE const char * U_EXPORT2
1398
1409U_STABLE USet * U_EXPORT2
1411
1412#ifndef U_HIDE_INTERNAL_API
1424U_INTERNAL int32_t U_EXPORT2
1426 USet *unsafe,
1427 UErrorCode *status);
1428
1449U_INTERNAL void U_EXPORT2
1450ucol_prepareShortStringOpen( const char *definition,
1451 UBool forceDefaults,
1452 UParseError *parseError,
1453 UErrorCode *status);
1454#endif /* U_HIDE_INTERNAL_API */
1455
1467U_STABLE int32_t U_EXPORT2
1469 uint8_t *buffer, int32_t capacity,
1470 UErrorCode *status);
1471
1489U_STABLE UCollator* U_EXPORT2
1490ucol_openBinary(const uint8_t *bin, int32_t length,
1491 const UCollator *base,
1492 UErrorCode *status);
1493
1494
1495#endif /* #if !UCONFIG_NO_COLLATION */
1496
1497#endif
"Smart pointer" class, closes a UCollator via ucol_close().
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
C API: Parse Error Information.
C API for code unit iteration.
Definition uiter.h:341
A UParseError struct is used to returned detailed information about parsing errors.
Definition parseerr.h:58
struct USet USet
Definition ucnv.h:69
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...
int32_t ucol_getUnsafeSet(const UCollator *coll, USet *unsafe, UErrorCode *status)
Calculates the set of unsafe code points, given a collator.
void ucol_getUCAVersion(const UCollator *coll, UVersionInfo info)
Gets the UCA version information for a Collator.
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.
UColReorderCode ucol_getMaxVariable(const UCollator *coll)
Returns the maximum reordering group whose characters are affected by UCOL_ALTERNATE_HANDLING.
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.
const UChar * ucol_getRules(const UCollator *coll, int32_t *length)
Get the collation tailoring rules from a UCollator.
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.
int32_t ucol_cloneBinary(const UCollator *coll, uint8_t *buffer, int32_t capacity, UErrorCode *status)
Creates a binary image of a collator.
int32_t ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen)
Returns current rules.
void ucol_getContractionsAndExpansions(const UCollator *coll, USet *contractions, USet *expansions, UBool addPrefixes, UErrorCode *status)
Get a set containing the expansions defined by the collator.
void ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status)
Universal attribute setter.
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:58
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.
UCollator * ucol_open(const char *loc, UErrorCode *status)
Open a UCollator for comparing strings.
int32_t ucol_normalizeShortDefinitionString(const char *source, char *destination, int32_t capacity, UParseError *parseError, UErrorCode *status)
Verifies and normalizes short definition string.
UColRuleOption
Options for retrieving the rule string.
Definition ucol.h:357
@ UCOL_FULL_RULES
Retrieves the "UCA rules" concatenated with the tailoring rules.
Definition ucol.h:371
@ UCOL_TAILORING_ONLY
Retrieves the tailoring rules only.
Definition ucol.h:363
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...
UColAttribute
Attributes that collation service understands.
Definition ucol.h:242
@ UCOL_CASE_FIRST
Controls the ordering of upper and lower case letters.
Definition ucol.h:269
@ UCOL_NUMERIC_COLLATION
When turned on, this attribute makes substrings of digits sort according to their numeric values.
Definition ucol.h:343
@ UCOL_STRENGTH
The strength attribute.
Definition ucol.h:310
@ UCOL_CASE_LEVEL
Controls whether an extra case level (positioned before the third level) is generated or not.
Definition ucol.h:279
@ UCOL_FRENCH_COLLATION
Attribute for direction of secondary weights - used in Canadian French.
Definition ucol.h:249
@ UCOL_HIRAGANA_QUATERNARY_MODE
When turned on, this attribute positions Hiragana before all non-ignorables on quaternary level Thi...
Definition ucol.h:323
@ UCOL_DECOMPOSITION_MODE
An alias for UCOL_NORMALIZATION_MODE attribute.
Definition ucol.h:293
@ UCOL_ATTRIBUTE_COUNT
One more than the highest normal UColAttribute value.
Definition ucol.h:351
@ UCOL_ALTERNATE_HANDLING
Attribute for handling variable elements.
Definition ucol.h:260
@ UCOL_NORMALIZATION_MODE
Controls whether the normalization check and necessary normalizations are performed.
Definition ucol.h:289
void ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode)
Sets the variable top to the top of the specified reordering group.
int32_t ucol_getContractions(const UCollator *coll, USet *conts, UErrorCode *status)
Get a set containing the contractions defined by the collator.
USet * ucol_getTailoredSet(const UCollator *coll, UErrorCode *status)
Get a Unicode set that contains all the characters and sequences tailored in this collator.
void ucol_close(UCollator *coll)
Close a UCollator.
UColAttributeValue UCollationStrength
Base letter represents a primary difference.
Definition ucol.h:236
int32_t ucol_getReorderCodes(const UCollator *coll, int32_t *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Retrieves the reordering codes for this collator.
void ucol_setReorderCodes(UCollator *coll, const int32_t *reorderCodes, int32_t reorderCodesLength, UErrorCode *pErrorCode)
Sets the reordering codes for this collator.
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.
const char * ucol_getAvailable(int32_t localeIndex)
Get a locale for which collation rules are available.
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.
uint32_t ucol_getVariableTop(const UCollator *coll, UErrorCode *status)
Gets the variable top value of a Collator.
UCollator * ucol_openFromShortString(const char *definition, UBool forceDefaults, UParseError *parseError, UErrorCode *status)
Open a collator defined by a short form string.
const char * ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status)
gets the locale name of the collator.
UCollationResult
UCOL_LESS is returned if source string is compared to be less than target string in the ucol_strcoll(...
Definition ucol.h:73
@ UCOL_LESS
string a < string b
Definition ucol.h:79
@ UCOL_GREATER
string a > string b
Definition ucol.h:77
@ UCOL_EQUAL
string a == string b
Definition ucol.h:75
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_safeClone(const UCollator *coll, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status)
Thread safe cloning operation.
UEnumeration * ucol_getKeywords(UErrorCode *status)
Create a string enumerator of all possible keywords that are relevant to collation.
UCollationResult ucol_strcoll(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength)
Compare two strings.
int32_t ucol_getDisplayName(const char *objLoc, const char *dispLoc, UChar *result, int32_t resultLength, UErrorCode *status)
Get the display name for a UCollator.
UColBoundMode
enum that is taken by ucol_getBound API See below for explanation do not change the values assigned...
Definition ucol.h:1057
@ UCOL_BOUND_LOWER
lower bound
Definition ucol.h:1059
@ UCOL_BOUND_UPPER
upper bound that will match strings of exact size
Definition ucol.h:1061
@ UCOL_BOUND_VALUE_COUNT
One more than the highest normal UColBoundMode value.
Definition ucol.h:1069
@ UCOL_BOUND_UPPER_LONG
upper bound that will match all the strings that have the same initial substring as the given string
Definition ucol.h:1063
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.
UEnumeration * ucol_openAvailableLocales(UErrorCode *status)
Create a string enumerator of all locales for which a valid collator may be opened.
UCollationStrength ucol_getStrength(const UCollator *coll)
Get the collation strength used in a UCollator.
int32_t ucol_countAvailable(void)
Determine how many locales have collation rules available.
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.
UColAttributeValue
Enum containing attribute values for controling collation behavior.
Definition ucol.h:89
@ UCOL_UPPER_FIRST
upper case sorts before lower case
Definition ucol.h:126
@ UCOL_TERTIARY
Tertiary collation strength.
Definition ucol.h:98
@ UCOL_DEFAULT
accepted by most attributes
Definition ucol.h:91
@ UCOL_IDENTICAL
Identical collation strength.
Definition ucol.h:105
@ UCOL_OFF
Turn the feature off - works for UCOL_FRENCH_COLLATION, UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MOD...
Definition ucol.h:111
@ UCOL_QUATERNARY
Quaternary collation strength.
Definition ucol.h:103
@ UCOL_SHIFTED
Valid for UCOL_ALTERNATE_HANDLING.
Definition ucol.h:118
@ UCOL_PRIMARY
Primary collation strength.
Definition ucol.h:94
@ UCOL_LOWER_FIRST
Valid for UCOL_CASE_FIRST - lower case sorts before upper case.
Definition ucol.h:124
@ UCOL_ATTRIBUTE_VALUE_COUNT
One more than the highest normal UColAttributeValue value.
Definition ucol.h:133
@ UCOL_SECONDARY
Secondary collation strength.
Definition ucol.h:96
@ UCOL_NON_IGNORABLE
Valid for UCOL_ALTERNATE_HANDLING.
Definition ucol.h:120
@ UCOL_ON
Turn the feature on - works for UCOL_FRENCH_COLLATION, UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MODE...
Definition ucol.h:115
@ UCOL_DEFAULT_STRENGTH
Default collation strength.
Definition ucol.h:100
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.
void ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status)
Sets the variable top to the specified primary weight.
UBool ucol_equal(const UCollator *coll, const UChar *source, int32_t sourceLength, const UChar *target, int32_t targetLength)
Compare two strings for equality.
UCollationResult ucol_strcollIter(const UCollator *coll, UCharIterator *sIter, UCharIterator *tIter, UErrorCode *status)
Compare two UTF-8 encoded trings.
void ucol_setStrength(UCollator *coll, UCollationStrength strength)
Set the collation strength used in a UCollator.
UColReorderCode
Enum containing the codes for reordering segments of the collation table that are not script codes.
Definition ucol.h:146
@ UCOL_REORDER_CODE_OTHERS
A special reordering code that is used to specify all other codes used for reordering except for the ...
Definition ucol.h:164
@ UCOL_REORDER_CODE_NONE
A special reordering code that is used to specify no reordering codes.
Definition ucol.h:157
@ UCOL_REORDER_CODE_DEFAULT
A special reordering code that is used to specify the default reordering codes for a locale.
Definition ucol.h:152
@ UCOL_REORDER_CODE_LIMIT
One more than the highest normal UColReorderCode value.
Definition ucol.h:206
@ UCOL_REORDER_CODE_SYMBOL
Characters with the symbol property.
Definition ucol.h:188
@ UCOL_REORDER_CODE_DIGIT
Characters with the digit property.
Definition ucol.h:200
@ UCOL_REORDER_CODE_PUNCTUATION
Characters with the punctuation property.
Definition ucol.h:182
@ UCOL_REORDER_CODE_SPACE
Characters with the space property.
Definition ucol.h:170
@ UCOL_REORDER_CODE_FIRST
The first entry in the enumeration of reordering groups.
Definition ucol.h:176
@ UCOL_REORDER_CODE_CURRENCY
Characters with the currency property.
Definition ucol.h:194
void ucol_getVersion(const UCollator *coll, UVersionInfo info)
Gets the version information for a Collator.
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 specified input locale, with respect to given keywo...
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,...
UColAttributeValue ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status)
Universal attribute getter.
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.
struct UEnumeration UEnumeration
structure representing an enumeration object instance
Definition uenum.h:43
C API: Locale.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested,...
Definition uloc.h:338
#define U_DEPRECATED
This is used to declare a function as a deprecated public ICU C API
Definition umachine.h:115
#define U_INTERNAL
This is used to declare a function as an internal ICU C API
Definition umachine.h:119
int8_t UBool
The ICU boolean type.
Definition umachine.h:236
uint16_t UChar
The base type for UTF-16 code units and pointers.
Definition umachine.h:353
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition umachine.h:111
C API: Unicode Normalization.
C API: Unicode Script Information.
@ USCRIPT_UNKNOWN
Definition uscript.h:287
C API: Unicode Set.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition utypes.h:396
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition uversion.h:138
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:59
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition uversion.h:137