1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
********************************************************************************
|
2011-07-01 22:19:14 +00:00
|
|
|
* Copyright (C) 1996-2011, International Business Machines
|
2000-01-11 23:20:26 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
1999-08-16 21:50:52 +00:00
|
|
|
********************************************************************************
|
|
|
|
*
|
2000-06-20 23:42:20 +00:00
|
|
|
* File UCHAR.C
|
1999-08-16 21:50:52 +00:00
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 04/02/97 aliu Creation.
|
2000-01-11 23:20:26 +00:00
|
|
|
* 4/15/99 Madhu Updated all the function definitions for C Implementation
|
2001-03-21 20:44:20 +00:00
|
|
|
* 5/20/99 Madhu Added the function u_getVersion()
|
2000-01-11 23:20:26 +00:00
|
|
|
* 8/19/1999 srl Upgraded scripts to Unicode3.0
|
1999-11-19 18:48:16 +00:00
|
|
|
* 11/11/1999 weiv added u_isalnum(), cleaned comments
|
2000-01-11 23:20:26 +00:00
|
|
|
* 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion.
|
2000-06-20 23:42:20 +00:00
|
|
|
* 06/20/2000 helena OS/400 port changes; mostly typecast.
|
2001-03-21 20:44:20 +00:00
|
|
|
******************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*/
|
2001-01-31 18:20:26 +00:00
|
|
|
|
1999-12-28 23:39:02 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "unicode/uchar.h"
|
2004-09-11 15:04:40 +00:00
|
|
|
#include "unicode/uscript.h"
|
2000-04-24 22:44:06 +00:00
|
|
|
#include "unicode/udata.h"
|
2011-07-01 22:19:14 +00:00
|
|
|
#include "uassert.h"
|
2001-01-31 18:20:26 +00:00
|
|
|
#include "umutex.h"
|
1999-10-12 00:07:24 +00:00
|
|
|
#include "cmemory.h"
|
2001-08-31 02:14:47 +00:00
|
|
|
#include "ucln_cmn.h"
|
2008-10-22 19:50:07 +00:00
|
|
|
#include "utrie2.h"
|
2003-08-12 12:23:56 +00:00
|
|
|
#include "udataswp.h"
|
2002-02-25 22:40:32 +00:00
|
|
|
#include "uprops.h"
|
2010-05-25 22:17:12 +00:00
|
|
|
#include "ustr_imp.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2003-03-01 00:13:40 +00:00
|
|
|
#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
|
|
|
|
|
2005-04-30 03:06:58 +00:00
|
|
|
/* uchar_props_data.c is machine-generated by genprops --csource */
|
|
|
|
#include "uchar_props_data.c"
|
|
|
|
|
2003-08-12 12:23:56 +00:00
|
|
|
/* constants and macros for access to the data ------------------------------ */
|
2000-04-24 22:44:06 +00:00
|
|
|
|
|
|
|
/* getting a uint32_t properties word from the data */
|
2008-10-22 19:50:07 +00:00
|
|
|
#define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c));
|
2005-04-30 03:06:58 +00:00
|
|
|
|
2001-02-14 00:47:36 +00:00
|
|
|
U_CFUNC UBool
|
2002-11-08 02:22:15 +00:00
|
|
|
uprv_haveProperties(UErrorCode *pErrorCode) {
|
2004-09-06 15:57:11 +00:00
|
|
|
if(U_FAILURE(*pErrorCode)) {
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
2001-02-14 00:47:36 +00:00
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* API functions ------------------------------------------------------------ */
|
|
|
|
|
|
|
|
/* Gets the Unicode character's general category.*/
|
|
|
|
U_CAPI int8_t U_EXPORT2
|
|
|
|
u_charType(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (int8_t)GET_CATEGORY(props);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2002-01-12 00:11:09 +00:00
|
|
|
/* Enumerate all code points with their general categories. */
|
|
|
|
struct _EnumTypeCallback {
|
|
|
|
UCharEnumTypeRange *enumRange;
|
|
|
|
const void *context;
|
|
|
|
};
|
|
|
|
|
|
|
|
static uint32_t U_CALLCONV
|
|
|
|
_enumTypeValue(const void *context, uint32_t value) {
|
2005-01-02 00:22:48 +00:00
|
|
|
return GET_CATEGORY(value);
|
2002-01-12 00:11:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static UBool U_CALLCONV
|
2008-10-22 19:50:07 +00:00
|
|
|
_enumTypeRange(const void *context, UChar32 start, UChar32 end, uint32_t value) {
|
2002-01-12 00:11:09 +00:00
|
|
|
/* just cast the value to UCharCategory */
|
|
|
|
return ((struct _EnumTypeCallback *)context)->
|
|
|
|
enumRange(((struct _EnumTypeCallback *)context)->context,
|
2008-10-22 19:50:07 +00:00
|
|
|
start, end+1, (UCharCategory)value);
|
2002-01-12 00:11:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U_CAPI void U_EXPORT2
|
|
|
|
u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context) {
|
|
|
|
struct _EnumTypeCallback callback;
|
|
|
|
|
2010-09-21 00:12:49 +00:00
|
|
|
if(enumRange==NULL) {
|
2002-01-12 00:11:09 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
callback.enumRange=enumRange;
|
|
|
|
callback.context=context;
|
2008-10-22 19:50:07 +00:00
|
|
|
utrie2_enum(&propsTrie, _enumTypeValue, _enumTypeRange, &callback);
|
2002-01-12 00:11:09 +00:00
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if ch is a lower case letter.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_islower(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)==U_LOWERCASE_LETTER);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checks if ch is an upper case letter.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isupper(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)==U_UPPERCASE_LETTER);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checks if ch is a title case letter; usually upper case letters.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_istitle(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)==U_TITLECASE_LETTER);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checks if ch is a decimal digit. */
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isdigit(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-09 21:02:26 +00:00
|
|
|
return (UBool)(GET_CATEGORY(props)==U_DECIMAL_DIGIT_NUMBER);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2003-04-24 23:09:26 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isxdigit(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
|
|
|
|
/* check ASCII and Fullwidth ASCII a-fA-F */
|
|
|
|
if(
|
|
|
|
(c<=0x66 && c>=0x41 && (c<=0x46 || c>=0x61)) ||
|
|
|
|
(c>=0xff21 && c<=0xff46 && (c<=0xff26 || c>=0xff41))
|
|
|
|
) {
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)==U_DECIMAL_DIGIT_NUMBER);
|
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if the Unicode character is a letter.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isalpha(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&U_GC_L_MASK)!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2004-09-11 15:04:40 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isUAlphabetic(UChar32 c) {
|
|
|
|
return (u_getUnicodeProperties(c, 1)&U_MASK(UPROPS_ALPHABETIC))!=0;
|
|
|
|
}
|
|
|
|
|
2005-05-28 22:54:36 +00:00
|
|
|
/* Checks if c is a letter or a decimal digit */
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isalnum(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&(U_GC_L_MASK|U_GC_ND_MASK))!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2005-05-28 22:54:36 +00:00
|
|
|
/**
|
|
|
|
* Checks if c is alphabetic, or a decimal digit; implements UCHAR_POSIX_ALNUM.
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
U_CFUNC UBool
|
|
|
|
u_isalnumPOSIX(UChar32 c) {
|
|
|
|
return (UBool)(u_isUAlphabetic(c) || u_isdigit(c));
|
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if ch is a unicode character with assigned character type.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isdefined(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checks if the Unicode character is a base form character that can take a diacritic.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isbase(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&(U_GC_L_MASK|U_GC_N_MASK|U_GC_MC_MASK|U_GC_ME_MASK))!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checks if the Unicode character is a control character.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_iscntrl(UChar32 c) {
|
2002-02-24 21:00:19 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&(U_GC_CC_MASK|U_GC_CF_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK))!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2003-02-09 21:02:26 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isISOControl(UChar32 c) {
|
|
|
|
return (uint32_t)c<=0x9f && (c<=0x1f || c>=0x7f);
|
|
|
|
}
|
|
|
|
|
2002-02-24 21:00:19 +00:00
|
|
|
/* Some control characters that are used as space. */
|
|
|
|
#define IS_THAT_CONTROL_SPACE(c) \
|
2003-02-11 23:30:09 +00:00
|
|
|
(c<=0x9f && ((c>=TAB && c<=CR) || (c>=0x1c && c <=0x1f) || c==NL))
|
2002-02-24 21:00:19 +00:00
|
|
|
|
2010-02-26 20:12:09 +00:00
|
|
|
/* Java has decided that U+0085 New Line is not whitespace any more. */
|
|
|
|
#define IS_THAT_ASCII_CONTROL_SPACE(c) \
|
|
|
|
(c<=0x1f && c>=TAB && (c<=CR || c>=0x1c))
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if the Unicode character is a space character.*/
|
2001-11-21 01:02:11 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isspace(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&U_GC_Z_MASK)!=0 || IS_THAT_CONTROL_SPACE(c));
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2003-02-09 21:02:26 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isJavaSpaceChar(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&U_GC_Z_MASK)!=0);
|
2003-02-09 21:02:26 +00:00
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if the Unicode character is a whitespace character.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isWhitespace(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-09 21:02:26 +00:00
|
|
|
return (UBool)(
|
2003-02-11 23:30:09 +00:00
|
|
|
((CAT_MASK(props)&U_GC_Z_MASK)!=0 &&
|
2003-02-09 21:02:26 +00:00
|
|
|
c!=NBSP && c!=FIGURESP && c!=NNBSP) || /* exclude no-break spaces */
|
2010-02-26 20:12:09 +00:00
|
|
|
IS_THAT_ASCII_CONTROL_SPACE(c)
|
2003-02-09 21:02:26 +00:00
|
|
|
);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2003-04-24 23:09:26 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isblank(UChar32 c) {
|
|
|
|
if((uint32_t)c<=0x9f) {
|
|
|
|
return c==9 || c==0x20; /* TAB or SPACE */
|
|
|
|
} else {
|
2005-05-28 22:54:36 +00:00
|
|
|
/* Zs */
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)==U_SPACE_SEPARATOR);
|
2003-04-24 23:09:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-09-11 15:04:40 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isUWhiteSpace(UChar32 c) {
|
|
|
|
return (u_getUnicodeProperties(c, 1)&U_MASK(UPROPS_WHITE_SPACE))!=0;
|
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if the Unicode character is printable.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2001-03-15 02:01:25 +00:00
|
|
|
u_isprint(UChar32 c) {
|
2002-02-24 21:00:19 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
/* comparing ==0 returns FALSE for the categories mentioned */
|
|
|
|
return (UBool)((CAT_MASK(props)&U_GC_C_MASK)==0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
2005-05-28 22:54:36 +00:00
|
|
|
/**
|
|
|
|
* Checks if c is in \p{graph}\p{blank} - \p{cntrl}.
|
|
|
|
* Implements UCHAR_POSIX_PRINT.
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
U_CFUNC UBool
|
|
|
|
u_isprintPOSIX(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
/*
|
|
|
|
* The only cntrl character in graph+blank is TAB (in blank).
|
|
|
|
* Here we implement (blank-TAB)=Zs instead of calling u_isblank().
|
|
|
|
*/
|
|
|
|
return (UBool)((GET_CATEGORY(props)==U_SPACE_SEPARATOR) || u_isgraphPOSIX(c));
|
|
|
|
}
|
|
|
|
|
2003-04-24 23:09:26 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_isgraph(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
/* comparing ==0 returns FALSE for the categories mentioned */
|
|
|
|
return (UBool)((CAT_MASK(props)&
|
|
|
|
(U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CS_MASK|U_GC_CN_MASK|U_GC_Z_MASK))
|
|
|
|
==0);
|
|
|
|
}
|
|
|
|
|
2005-05-28 22:54:36 +00:00
|
|
|
/**
|
|
|
|
* Checks if c is in
|
|
|
|
* [^\p{space}\p{gc=Control}\p{gc=Surrogate}\p{gc=Unassigned}]
|
|
|
|
* with space=\p{Whitespace} and Control=Cc.
|
|
|
|
* Implements UCHAR_POSIX_GRAPH.
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
U_CFUNC UBool
|
|
|
|
u_isgraphPOSIX(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
/* \p{space}\p{gc=Control} == \p{gc=Z}\p{Control} */
|
|
|
|
/* comparing ==0 returns FALSE for the categories mentioned */
|
|
|
|
return (UBool)((CAT_MASK(props)&
|
|
|
|
(U_GC_CC_MASK|U_GC_CS_MASK|U_GC_CN_MASK|U_GC_Z_MASK))
|
|
|
|
==0);
|
|
|
|
}
|
|
|
|
|
2003-04-24 23:09:26 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
|
|
|
u_ispunct(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)((CAT_MASK(props)&U_GC_P_MASK)!=0);
|
|
|
|
}
|
|
|
|
|
2000-05-18 17:47:11 +00:00
|
|
|
/* Checks if the Unicode character can start a Unicode identifier.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isIDStart(UChar32 c) {
|
|
|
|
/* same as u_isalpha() */
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&(U_GC_L_MASK|U_GC_NL_MASK))!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checks if the Unicode character can be a Unicode identifier part other than starting the
|
|
|
|
identifier.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isIDPart(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2000-08-08 23:26:10 +00:00
|
|
|
return (UBool)(
|
2003-02-11 23:30:09 +00:00
|
|
|
(CAT_MASK(props)&
|
|
|
|
(U_GC_ND_MASK|U_GC_NL_MASK|
|
|
|
|
U_GC_L_MASK|
|
|
|
|
U_GC_PC_MASK|U_GC_MC_MASK|U_GC_MN_MASK)
|
2000-05-18 17:47:11 +00:00
|
|
|
)!=0 ||
|
2000-08-08 23:26:10 +00:00
|
|
|
u_isIDIgnorable(c));
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*Checks if the Unicode character can be ignorable in a Java or Unicode identifier.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isIDIgnorable(UChar32 c) {
|
2003-02-09 21:02:26 +00:00
|
|
|
if(c<=0x9f) {
|
2010-02-26 20:12:09 +00:00
|
|
|
return u_isISOControl(c) && !IS_THAT_ASCII_CONTROL_SPACE(c);
|
2003-02-09 21:02:26 +00:00
|
|
|
} else {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return (UBool)(GET_CATEGORY(props)==U_FORMAT_CHAR);
|
|
|
|
}
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*Checks if the Unicode character can start a Java identifier.*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isJavaIDStart(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2003-02-11 23:30:09 +00:00
|
|
|
return (UBool)((CAT_MASK(props)&(U_GC_L_MASK|U_GC_SC_MASK|U_GC_PC_MASK))!=0);
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*Checks if the Unicode character can be a Java identifier part other than starting the
|
|
|
|
* identifier.
|
|
|
|
*/
|
2000-05-18 22:08:39 +00:00
|
|
|
U_CAPI UBool U_EXPORT2
|
2000-05-18 17:47:11 +00:00
|
|
|
u_isJavaIDPart(UChar32 c) {
|
2001-12-06 01:23:47 +00:00
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
2000-08-08 23:26:10 +00:00
|
|
|
return (UBool)(
|
2003-02-11 23:30:09 +00:00
|
|
|
(CAT_MASK(props)&
|
|
|
|
(U_GC_ND_MASK|U_GC_NL_MASK|
|
|
|
|
U_GC_L_MASK|
|
|
|
|
U_GC_SC_MASK|U_GC_PC_MASK|
|
|
|
|
U_GC_MC_MASK|U_GC_MN_MASK)
|
2000-05-18 17:47:11 +00:00
|
|
|
)!=0 ||
|
2000-08-08 23:26:10 +00:00
|
|
|
u_isIDIgnorable(c));
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U_CAPI int32_t U_EXPORT2
|
|
|
|
u_charDigitValue(UChar32 c) {
|
2005-01-02 00:22:48 +00:00
|
|
|
uint32_t props;
|
2009-11-13 19:25:21 +00:00
|
|
|
int32_t value;
|
2001-12-06 01:23:47 +00:00
|
|
|
GET_PROPS(c, props);
|
2009-11-13 19:25:21 +00:00
|
|
|
value=(int32_t)GET_NUMERIC_TYPE_VALUE(props)-UPROPS_NTV_DECIMAL_START;
|
|
|
|
if(value<=9) {
|
|
|
|
return value;
|
2005-01-02 00:22:48 +00:00
|
|
|
} else {
|
|
|
|
return -1;
|
2000-05-18 17:47:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-07-04 00:17:12 +00:00
|
|
|
U_CAPI double U_EXPORT2
|
|
|
|
u_getNumericValue(UChar32 c) {
|
2009-11-13 19:25:21 +00:00
|
|
|
uint32_t props;
|
|
|
|
int32_t ntv;
|
2002-07-04 00:17:12 +00:00
|
|
|
GET_PROPS(c, props);
|
2009-11-13 19:25:21 +00:00
|
|
|
ntv=(int32_t)GET_NUMERIC_TYPE_VALUE(props);
|
2002-07-04 00:17:12 +00:00
|
|
|
|
2009-11-13 19:25:21 +00:00
|
|
|
if(ntv==UPROPS_NTV_NONE) {
|
2002-07-04 00:17:12 +00:00
|
|
|
return U_NO_NUMERIC_VALUE;
|
2009-11-13 19:25:21 +00:00
|
|
|
} else if(ntv<UPROPS_NTV_DIGIT_START) {
|
|
|
|
/* decimal digit */
|
|
|
|
return ntv-UPROPS_NTV_DECIMAL_START;
|
|
|
|
} else if(ntv<UPROPS_NTV_NUMERIC_START) {
|
|
|
|
/* other digit */
|
|
|
|
return ntv-UPROPS_NTV_DIGIT_START;
|
|
|
|
} else if(ntv<UPROPS_NTV_FRACTION_START) {
|
|
|
|
/* small integer */
|
|
|
|
return ntv-UPROPS_NTV_NUMERIC_START;
|
|
|
|
} else if(ntv<UPROPS_NTV_LARGE_START) {
|
|
|
|
/* fraction */
|
|
|
|
int32_t numerator=(ntv>>4)-12;
|
|
|
|
int32_t denominator=(ntv&0xf)+1;
|
|
|
|
return (double)numerator/denominator;
|
|
|
|
} else if(ntv<UPROPS_NTV_RESERVED_START) {
|
|
|
|
/* large, single-significant-digit integer */
|
2005-01-02 00:22:48 +00:00
|
|
|
double numValue;
|
2009-11-13 19:25:21 +00:00
|
|
|
int32_t mant=(ntv>>5)-14;
|
|
|
|
int32_t exp=(ntv&0x1f)+2;
|
2005-01-02 00:22:48 +00:00
|
|
|
numValue=mant;
|
|
|
|
|
|
|
|
/* multiply by 10^exp without math.h */
|
|
|
|
while(exp>=4) {
|
|
|
|
numValue*=10000.;
|
|
|
|
exp-=4;
|
|
|
|
}
|
|
|
|
switch(exp) {
|
|
|
|
case 3:
|
|
|
|
numValue*=1000.;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
numValue*=100.;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
numValue*=10.;
|
|
|
|
break;
|
|
|
|
case 0:
|
|
|
|
default:
|
|
|
|
break;
|
2002-07-04 00:17:12 +00:00
|
|
|
}
|
2005-01-02 00:22:48 +00:00
|
|
|
|
|
|
|
return numValue;
|
2009-11-13 19:25:21 +00:00
|
|
|
} else {
|
|
|
|
/* reserved */
|
|
|
|
return U_NO_NUMERIC_VALUE;
|
2002-07-04 00:17:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-11-12 23:01:17 +00:00
|
|
|
U_CAPI int32_t U_EXPORT2
|
2001-09-21 00:27:17 +00:00
|
|
|
u_digit(UChar32 ch, int8_t radix) {
|
|
|
|
int8_t value;
|
|
|
|
if((uint8_t)(radix-2)<=(36-2)) {
|
|
|
|
value=(int8_t)u_charDigitValue(ch);
|
|
|
|
if(value<0) {
|
|
|
|
/* ch is not a decimal digit, try latin letters */
|
|
|
|
if(ch>=0x61 && ch<=0x7A) {
|
|
|
|
value=(int8_t)(ch-0x57); /* ch - 'a' + 10 */
|
|
|
|
} else if(ch>=0x41 && ch<=0x5A) {
|
|
|
|
value=(int8_t)(ch-0x37); /* ch - 'A' + 10 */
|
2003-04-24 23:09:26 +00:00
|
|
|
} else if(ch>=0xFF41 && ch<=0xFF5A) {
|
|
|
|
value=(int8_t)(ch-0xFF37); /* fullwidth ASCII a-z */
|
|
|
|
} else if(ch>=0xFF21 && ch<=0xFF3A) {
|
|
|
|
value=(int8_t)(ch-0xFF17); /* fullwidth ASCII A-Z */
|
2001-09-21 00:27:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
value=-1; /* invalid radix */
|
|
|
|
}
|
|
|
|
return (int8_t)((value<radix) ? value : -1);
|
|
|
|
}
|
|
|
|
|
|
|
|
U_CAPI UChar32 U_EXPORT2
|
|
|
|
u_forDigit(int32_t digit, int8_t radix) {
|
|
|
|
if((uint8_t)(radix-2)>(36-2) || (uint32_t)digit>=(uint32_t)radix) {
|
|
|
|
return 0;
|
|
|
|
} else if(digit<10) {
|
|
|
|
return (UChar32)(0x30+digit);
|
|
|
|
} else {
|
|
|
|
return (UChar32)((0x61-10)+digit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-07-01 22:19:14 +00:00
|
|
|
/* miscellaneous, and support for uprops.cpp -------------------------------- */
|
2002-11-06 00:52:44 +00:00
|
|
|
|
2001-11-21 01:02:11 +00:00
|
|
|
U_CAPI void U_EXPORT2
|
|
|
|
u_getUnicodeVersion(UVersionInfo versionArray) {
|
2000-04-24 22:44:06 +00:00
|
|
|
if(versionArray!=NULL) {
|
2005-04-30 03:06:58 +00:00
|
|
|
uprv_memcpy(versionArray, dataVersion, U_MAX_VERSION_LENGTH);
|
2000-04-24 22:44:06 +00:00
|
|
|
}
|
1999-08-16 21:50:52 +00:00
|
|
|
}
|
2000-11-16 21:43:12 +00:00
|
|
|
|
2002-02-25 22:40:32 +00:00
|
|
|
U_CFUNC uint32_t
|
2011-07-01 22:19:14 +00:00
|
|
|
u_getMainProperties(UChar32 c) {
|
|
|
|
uint32_t props;
|
|
|
|
GET_PROPS(c, props);
|
|
|
|
return props;
|
|
|
|
}
|
2002-02-25 22:40:32 +00:00
|
|
|
|
2011-07-01 22:19:14 +00:00
|
|
|
U_CFUNC uint32_t
|
|
|
|
u_getUnicodeProperties(UChar32 c, int32_t column) {
|
|
|
|
U_ASSERT(column>=0);
|
|
|
|
if(column>=propsVectorsColumns) {
|
2002-02-25 22:40:32 +00:00
|
|
|
return 0;
|
2002-07-04 00:17:12 +00:00
|
|
|
} else {
|
2011-07-01 22:19:14 +00:00
|
|
|
uint16_t vecIndex=UTRIE2_GET16(&propsVectorsTrie, c);
|
2002-07-04 00:17:12 +00:00
|
|
|
return propsVectors[vecIndex+column];
|
2002-02-25 22:40:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-07-04 16:41:49 +00:00
|
|
|
U_CFUNC int32_t
|
2003-03-07 21:49:09 +00:00
|
|
|
uprv_getMaxValues(int32_t column) {
|
2010-09-21 00:12:49 +00:00
|
|
|
switch(column) {
|
|
|
|
case 0:
|
|
|
|
return indexes[UPROPS_MAX_VALUES_INDEX];
|
|
|
|
case 2:
|
|
|
|
return indexes[UPROPS_MAX_VALUES_2_INDEX];
|
|
|
|
default:
|
2002-07-04 16:41:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-09-11 15:04:40 +00:00
|
|
|
U_CAPI void U_EXPORT2
|
|
|
|
u_charAge(UChar32 c, UVersionInfo versionArray) {
|
|
|
|
if(versionArray!=NULL) {
|
|
|
|
uint32_t version=u_getUnicodeProperties(c, 0)>>UPROPS_AGE_SHIFT;
|
|
|
|
versionArray[0]=(uint8_t)(version>>4);
|
|
|
|
versionArray[1]=(uint8_t)(version&0xf);
|
|
|
|
versionArray[2]=versionArray[3]=0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
U_CAPI UScriptCode U_EXPORT2
|
|
|
|
uscript_getScript(UChar32 c, UErrorCode *pErrorCode) {
|
2010-09-21 00:12:49 +00:00
|
|
|
uint32_t scriptX;
|
2004-09-11 15:04:40 +00:00
|
|
|
if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
|
2005-09-15 00:01:03 +00:00
|
|
|
return USCRIPT_INVALID_CODE;
|
2004-09-11 15:04:40 +00:00
|
|
|
}
|
|
|
|
if((uint32_t)c>0x10ffff) {
|
|
|
|
*pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
|
2005-09-15 00:01:03 +00:00
|
|
|
return USCRIPT_INVALID_CODE;
|
2004-09-11 15:04:40 +00:00
|
|
|
}
|
2010-09-21 00:12:49 +00:00
|
|
|
scriptX=u_getUnicodeProperties(c, 0)&UPROPS_SCRIPT_X_MASK;
|
|
|
|
if(scriptX<UPROPS_SCRIPT_X_WITH_COMMON) {
|
|
|
|
return (UScriptCode)scriptX;
|
|
|
|
} else if(scriptX<UPROPS_SCRIPT_X_WITH_INHERITED) {
|
|
|
|
return USCRIPT_COMMON;
|
|
|
|
} else if(scriptX<UPROPS_SCRIPT_X_WITH_OTHER) {
|
|
|
|
return USCRIPT_INHERITED;
|
|
|
|
} else {
|
|
|
|
return (UScriptCode)scriptExtensions[scriptX&UPROPS_SCRIPT_MASK];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
U_DRAFT UBool U_EXPORT2
|
|
|
|
uscript_hasScript(UChar32 c, UScriptCode sc) {
|
|
|
|
UScriptCode script;
|
|
|
|
const uint16_t *scx;
|
|
|
|
uint32_t scriptX=u_getUnicodeProperties(c, 0)&UPROPS_SCRIPT_X_MASK;
|
|
|
|
if(scriptX<UPROPS_SCRIPT_X_WITH_COMMON) {
|
|
|
|
return sc==(UScriptCode)scriptX;
|
|
|
|
}
|
2004-09-11 15:04:40 +00:00
|
|
|
|
2010-09-21 00:12:49 +00:00
|
|
|
scx=scriptExtensions+(scriptX&UPROPS_SCRIPT_MASK);
|
|
|
|
if(scriptX<UPROPS_SCRIPT_X_WITH_INHERITED) {
|
|
|
|
script=USCRIPT_COMMON;
|
|
|
|
} else if(scriptX<UPROPS_SCRIPT_X_WITH_OTHER) {
|
|
|
|
script=USCRIPT_INHERITED;
|
|
|
|
} else {
|
|
|
|
script=(UScriptCode)scx[0];
|
|
|
|
scx=scriptExtensions+scx[1];
|
|
|
|
}
|
|
|
|
if(sc==script) {
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
while(sc>*scx) {
|
|
|
|
++scx;
|
|
|
|
}
|
|
|
|
return sc==(*scx&0x7fff);
|
|
|
|
}
|
|
|
|
|
|
|
|
U_DRAFT int32_t U_EXPORT2
|
|
|
|
uscript_getScriptExtensions(UChar32 c,
|
|
|
|
UScriptCode *scripts, int32_t capacity,
|
|
|
|
UErrorCode *pErrorCode) {
|
|
|
|
uint32_t scriptX;
|
|
|
|
int32_t length;
|
|
|
|
const uint16_t *scx;
|
|
|
|
uint16_t sx;
|
|
|
|
if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if(capacity<0 || (capacity>0 && scripts==NULL)) {
|
|
|
|
*pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
scriptX=u_getUnicodeProperties(c, 0)&UPROPS_SCRIPT_X_MASK;
|
|
|
|
if(scriptX<UPROPS_SCRIPT_X_WITH_COMMON) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
length=0;
|
|
|
|
scx=scriptExtensions+(scriptX&UPROPS_SCRIPT_MASK);
|
|
|
|
if(scriptX>=UPROPS_SCRIPT_X_WITH_OTHER) {
|
|
|
|
scx=scriptExtensions+scx[1];
|
|
|
|
}
|
|
|
|
do {
|
|
|
|
sx=*scx++;
|
|
|
|
if(length<capacity) {
|
|
|
|
scripts[length]=sx&0x7fff;
|
|
|
|
}
|
|
|
|
++length;
|
|
|
|
} while(sx<0x8000);
|
|
|
|
if(length>capacity) {
|
|
|
|
*pErrorCode=U_BUFFER_OVERFLOW_ERROR;
|
|
|
|
}
|
|
|
|
return length;
|
2004-09-11 15:04:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U_CAPI UBlockCode U_EXPORT2
|
|
|
|
ublock_getCode(UChar32 c) {
|
|
|
|
return (UBlockCode)((u_getUnicodeProperties(c, 0)&UPROPS_BLOCK_MASK)>>UPROPS_BLOCK_SHIFT);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* property starts for UnicodeSet ------------------------------------------- */
|
|
|
|
|
2002-11-06 00:52:44 +00:00
|
|
|
static UBool U_CALLCONV
|
2008-10-22 19:50:07 +00:00
|
|
|
_enumPropertyStartsRange(const void *context, UChar32 start, UChar32 end, uint32_t value) {
|
2002-11-06 00:52:44 +00:00
|
|
|
/* add the start code point to the USet */
|
2004-12-02 04:18:35 +00:00
|
|
|
const USetAdder *sa=(const USetAdder *)context;
|
2004-09-07 17:59:53 +00:00
|
|
|
sa->add(sa->set, start);
|
2002-11-06 00:52:44 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2004-09-07 17:59:53 +00:00
|
|
|
#define USET_ADD_CP_AND_NEXT(sa, cp) sa->add(sa->set, cp); sa->add(sa->set, cp+1)
|
2002-11-06 00:52:44 +00:00
|
|
|
|
2007-06-10 20:11:28 +00:00
|
|
|
U_CFUNC void U_EXPORT2
|
2004-12-02 04:18:35 +00:00
|
|
|
uchar_addPropertyStarts(const USetAdder *sa, UErrorCode *pErrorCode) {
|
2004-09-13 23:33:22 +00:00
|
|
|
if(U_FAILURE(*pErrorCode)) {
|
|
|
|
return;
|
|
|
|
}
|
2003-03-08 02:00:06 +00:00
|
|
|
|
2005-01-10 18:02:54 +00:00
|
|
|
/* add the start code point of each same-value range of the main trie */
|
2008-10-22 19:50:07 +00:00
|
|
|
utrie2_enum(&propsTrie, NULL, _enumPropertyStartsRange, sa);
|
2002-11-06 00:52:44 +00:00
|
|
|
|
|
|
|
/* add code points with hardcoded properties, plus the ones following them */
|
|
|
|
|
2005-05-28 22:54:36 +00:00
|
|
|
/* add for u_isblank() */
|
|
|
|
USET_ADD_CP_AND_NEXT(sa, TAB);
|
|
|
|
|
2002-11-06 00:52:44 +00:00
|
|
|
/* add for IS_THAT_CONTROL_SPACE() */
|
2005-05-28 22:54:36 +00:00
|
|
|
sa->add(sa->set, CR+1); /* range TAB..CR */
|
2004-09-07 17:59:53 +00:00
|
|
|
sa->add(sa->set, 0x1c);
|
|
|
|
sa->add(sa->set, 0x1f+1);
|
|
|
|
USET_ADD_CP_AND_NEXT(sa, NL);
|
2002-11-06 00:52:44 +00:00
|
|
|
|
|
|
|
/* add for u_isIDIgnorable() what was not added above */
|
2004-09-07 17:59:53 +00:00
|
|
|
sa->add(sa->set, DEL); /* range DEL..NBSP-1, NBSP added below */
|
|
|
|
sa->add(sa->set, HAIRSP);
|
|
|
|
sa->add(sa->set, RLM+1);
|
|
|
|
sa->add(sa->set, INHSWAP);
|
|
|
|
sa->add(sa->set, NOMDIG+1);
|
|
|
|
USET_ADD_CP_AND_NEXT(sa, ZWNBSP);
|
2002-11-06 00:52:44 +00:00
|
|
|
|
|
|
|
/* add no-break spaces for u_isWhitespace() what was not added above */
|
2004-09-07 17:59:53 +00:00
|
|
|
USET_ADD_CP_AND_NEXT(sa, NBSP);
|
|
|
|
USET_ADD_CP_AND_NEXT(sa, FIGURESP);
|
|
|
|
USET_ADD_CP_AND_NEXT(sa, NNBSP);
|
2002-11-06 00:52:44 +00:00
|
|
|
|
|
|
|
/* add for u_digit() */
|
2004-09-07 17:59:53 +00:00
|
|
|
sa->add(sa->set, U_a);
|
|
|
|
sa->add(sa->set, U_z+1);
|
|
|
|
sa->add(sa->set, U_A);
|
|
|
|
sa->add(sa->set, U_Z+1);
|
2005-01-10 18:02:54 +00:00
|
|
|
sa->add(sa->set, U_FW_a);
|
|
|
|
sa->add(sa->set, U_FW_z+1);
|
|
|
|
sa->add(sa->set, U_FW_A);
|
|
|
|
sa->add(sa->set, U_FW_Z+1);
|
|
|
|
|
|
|
|
/* add for u_isxdigit() */
|
|
|
|
sa->add(sa->set, U_f+1);
|
|
|
|
sa->add(sa->set, U_F+1);
|
|
|
|
sa->add(sa->set, U_FW_f+1);
|
|
|
|
sa->add(sa->set, U_FW_F+1);
|
2002-11-06 00:52:44 +00:00
|
|
|
|
|
|
|
/* add for UCHAR_DEFAULT_IGNORABLE_CODE_POINT what was not added above */
|
2004-09-07 17:59:53 +00:00
|
|
|
sa->add(sa->set, WJ); /* range WJ..NOMDIG */
|
|
|
|
sa->add(sa->set, 0xfff0);
|
|
|
|
sa->add(sa->set, 0xfffb+1);
|
|
|
|
sa->add(sa->set, 0xe0000);
|
|
|
|
sa->add(sa->set, 0xe0fff+1);
|
2002-11-06 00:52:44 +00:00
|
|
|
|
|
|
|
/* add for UCHAR_GRAPHEME_BASE and others */
|
2004-09-07 17:59:53 +00:00
|
|
|
USET_ADD_CP_AND_NEXT(sa, CGJ);
|
2000-11-16 21:43:12 +00:00
|
|
|
}
|
2005-01-10 18:02:54 +00:00
|
|
|
|
2007-06-03 06:08:46 +00:00
|
|
|
U_CFUNC void U_EXPORT2
|
2005-01-10 18:02:54 +00:00
|
|
|
upropsvec_addPropertyStarts(const USetAdder *sa, UErrorCode *pErrorCode) {
|
|
|
|
if(U_FAILURE(*pErrorCode)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* add the start code point of each same-value range of the properties vectors trie */
|
|
|
|
if(propsVectorsColumns>0) {
|
|
|
|
/* if propsVectorsColumns==0 then the properties vectors trie may not be there at all */
|
2008-10-22 19:50:07 +00:00
|
|
|
utrie2_enum(&propsVectorsTrie, NULL, _enumPropertyStartsRange, sa);
|
2005-01-10 18:02:54 +00:00
|
|
|
}
|
|
|
|
}
|