OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************** | 2 ********************************************************************** |
3 * Copyright (C) 1999-2011, International Business Machines | 3 * Copyright (C) 1999-2015, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************** | 5 ********************************************************************** |
6 * file name: ustr_imp.h | 6 * file name: ustr_imp.h |
7 * encoding: US-ASCII | 7 * encoding: US-ASCII |
8 * tab size: 8 (not used) | 8 * tab size: 8 (not used) |
9 * indentation:4 | 9 * indentation:4 |
10 * | 10 * |
11 * created on: 2001jan30 | 11 * created on: 2001jan30 |
12 * created by: Markus W. Scherer | 12 * created by: Markus W. Scherer |
13 */ | 13 */ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 * Compare strings case-insensitively, | 56 * Compare strings case-insensitively, |
57 * in code point order or code unit order. | 57 * in code point order or code unit order. |
58 */ | 58 */ |
59 U_CFUNC int32_t | 59 U_CFUNC int32_t |
60 u_strcmpFold(const UChar *s1, int32_t length1, | 60 u_strcmpFold(const UChar *s1, int32_t length1, |
61 const UChar *s2, int32_t length2, | 61 const UChar *s2, int32_t length2, |
62 uint32_t options, | 62 uint32_t options, |
63 UErrorCode *pErrorCode); | 63 UErrorCode *pErrorCode); |
64 | 64 |
65 /** | 65 /** |
| 66 * Interanl API, used for detecting length of |
| 67 * shared prefix case-insensitively. |
| 68 * @param s1 input string 1 |
| 69 * @param length1 length of string 1, or -1 (NULL terminated) |
| 70 * @param s2 input string 2 |
| 71 * @param length2 length of string 2, or -1 (NULL terminated) |
| 72 * @param options compare options |
| 73 * @param matchLen1 (output) length of partial prefix match in s1 |
| 74 * @param matchLen2 (output) length of partial prefix match in s2 |
| 75 * @param pErrorCode receives error status |
| 76 */ |
| 77 U_CAPI void |
| 78 u_caseInsensitivePrefixMatch(const UChar *s1, int32_t length1, |
| 79 const UChar *s2, int32_t length2, |
| 80 uint32_t options, |
| 81 int32_t *matchLen1, int32_t *matchLen2, |
| 82 UErrorCode *pErrorCode); |
| 83 |
| 84 /** |
66 * Are the Unicode properties loaded? | 85 * Are the Unicode properties loaded? |
67 * This must be used before internal functions are called that do | 86 * This must be used before internal functions are called that do |
68 * not perform this check. | 87 * not perform this check. |
69 * Generate a debug assertion failure if data is not loaded. | 88 * Generate a debug assertion failure if data is not loaded. |
70 */ | 89 */ |
71 U_CFUNC UBool | 90 U_CFUNC UBool |
72 uprv_haveProperties(UErrorCode *pErrorCode); | 91 uprv_haveProperties(UErrorCode *pErrorCode); |
73 | 92 |
74 /** | 93 /** |
75 * Load the Unicode property data. | 94 * Load the Unicode property data. |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 u_terminateUChar32s(UChar32 *dest, int32_t destCapacity, int32_t length, UErrorC
ode *pErrorCode); | 257 u_terminateUChar32s(UChar32 *dest, int32_t destCapacity, int32_t length, UErrorC
ode *pErrorCode); |
239 | 258 |
240 /** | 259 /** |
241 * NUL-terminate a wchar_t * string if possible. | 260 * NUL-terminate a wchar_t * string if possible. |
242 * Same as u_terminateUChars() but for a different string type. | 261 * Same as u_terminateUChars() but for a different string type. |
243 */ | 262 */ |
244 U_CAPI int32_t U_EXPORT2 | 263 U_CAPI int32_t U_EXPORT2 |
245 u_terminateWChars(wchar_t *dest, int32_t destCapacity, int32_t length, UErrorCod
e *pErrorCode); | 264 u_terminateWChars(wchar_t *dest, int32_t destCapacity, int32_t length, UErrorCod
e *pErrorCode); |
246 | 265 |
247 #endif | 266 #endif |
OLD | NEW |