ICU-2329 add functions to check if a string contains only invariant characters
X-SVN-Rev: 12580
This commit is contained in:
parent
7c3cd6b0a5
commit
f9ac1f6407
@ -238,7 +238,6 @@ U_CAPI char* U_EXPORT2 uprv_tzname(int n);
|
||||
/**
|
||||
* Get UTC (GMT) time measured in seconds since 0:00 on 1/1/70.
|
||||
* @return the UTC time measured in seconds
|
||||
* @stable ICU 2.0
|
||||
* @internal
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2 uprv_getUTCtime(void);
|
||||
@ -368,10 +367,36 @@ u_charsToUChars(const char *cs, UChar *us, int32_t length);
|
||||
U_CAPI void U_EXPORT2
|
||||
u_UCharsToChars(const UChar *us, char *cs, int32_t length);
|
||||
|
||||
/**
|
||||
* Check if a char string only contains invariant characters.
|
||||
* See utypes.h for details.
|
||||
*
|
||||
* @param s Input string pointer.
|
||||
* @param length Length of the string, can be -1 if NUL-terminated.
|
||||
* @return TRUE if s contains only invariant characters.
|
||||
*
|
||||
* @internal (ICU 2.8)
|
||||
*/
|
||||
U_CAPI UBool U_EXPORT2
|
||||
uprv_isInvariantString(const char *s, int32_t length);
|
||||
|
||||
/**
|
||||
* Check if a Unicode string only contains invariant characters.
|
||||
* See utypes.h for details.
|
||||
*
|
||||
* @param s Input string pointer.
|
||||
* @param length Length of the string, can be -1 if NUL-terminated.
|
||||
* @return TRUE if s contains only invariant characters.
|
||||
*
|
||||
* @internal (ICU 2.8)
|
||||
*/
|
||||
U_CAPI UBool U_EXPORT2
|
||||
uprv_isInvariantUString(const UChar *s, int32_t length);
|
||||
|
||||
/**
|
||||
* \def U_UPPER_ORDINAL
|
||||
* Get the ordinal number of an uppercase invariant character
|
||||
* @stable ICU 2.4
|
||||
* @internal
|
||||
*/
|
||||
#if U_CHARSET_FAMILY==U_ASCII_FAMILY
|
||||
# define U_UPPER_ORDINAL(x) ((x)-'A')
|
||||
|
Loading…
Reference in New Issue
Block a user