mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 05:55:35 +00:00
ICU-1438 add unorm_cmpEquivFold implementation function for unorm_compare
X-SVN-Rev: 8659
This commit is contained in:
parent
24c5b88bc2
commit
1404e3c9df
1 changed files with 27 additions and 0 deletions
|
@ -191,6 +191,33 @@ unorm_compose(UChar *dest, int32_t destCapacity,
|
|||
UBool compat, UBool ignoreHangul,
|
||||
UErrorCode *pErrorCode);
|
||||
|
||||
/**
|
||||
* Internal option for unorm_cmpEquivFold() for decomposing.
|
||||
* If not set, just do strcasecmp().
|
||||
* @internal
|
||||
*/
|
||||
#define _COMPARE_EQUIV 0x80000
|
||||
|
||||
/**
|
||||
* Internal option for unorm_cmpEquivFold() for strncmp style.
|
||||
* If set, checks for both string length and terminating NUL.
|
||||
* @internal
|
||||
*/
|
||||
#define _STRNCMP_STYLE 0x1000
|
||||
|
||||
/**
|
||||
* Internal API, used by u_strcasecmp() etc.
|
||||
* Compare strings for canonical equivalence (optional),
|
||||
* case-insensitively (optional),
|
||||
* in code point order or code unit order.
|
||||
* @internal
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
unorm_cmpEquivFold(const UChar *s1, int32_t length1,
|
||||
const UChar *s2, int32_t length2,
|
||||
uint32_t options,
|
||||
UErrorCode *pErrorCode);
|
||||
|
||||
/**
|
||||
* Internal API, used by collation code.
|
||||
* Get access to the internal FCD trie table to be able to perform
|
||||
|
|
Loading…
Add table
Reference in a new issue