• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 /* Run external/icu/tools/icu4c_srcgen/generate_libandroidicu.py to regenerate */
3 // © 2018 and later: Unicode, Inc. and others.
4 // License & terms of use: http://www.unicode.org/copyright.html
5 
6 #include <unicode/icudataver.h>
7 #include <unicode/putil.h>
8 #include <unicode/ubidi.h>
9 #include <unicode/ubiditransform.h>
10 #include <unicode/ubrk.h>
11 #include <unicode/ucal.h>
12 #include <unicode/ucasemap.h>
13 #include <unicode/ucat.h>
14 #include <unicode/uchar.h>
15 #include <unicode/uclean.h>
16 #include <unicode/ucnv.h>
17 #include <unicode/ucnv_cb.h>
18 #include <unicode/ucnv_err.h>
19 #include <unicode/ucnvsel.h>
20 #include <unicode/ucol.h>
21 #include <unicode/ucoleitr.h>
22 #include <unicode/ucpmap.h>
23 #include <unicode/ucptrie.h>
24 #include <unicode/ucsdet.h>
25 #include <unicode/ucurr.h>
26 #include <unicode/udat.h>
27 #include <unicode/udata.h>
28 #include <unicode/udateintervalformat.h>
29 #include <unicode/udatpg.h>
30 #include <unicode/uenum.h>
31 #include <unicode/ufieldpositer.h>
32 #include <unicode/uformattable.h>
33 #include <unicode/uformattedvalue.h>
34 #include <unicode/ugender.h>
35 #include <unicode/uidna.h>
36 #include <unicode/uiter.h>
37 #include <unicode/uldnames.h>
38 #include <unicode/ulistformatter.h>
39 #include <unicode/uloc.h>
40 #include <unicode/ulocdata.h>
41 #include <unicode/umsg.h>
42 #include <unicode/umutablecptrie.h>
43 #include <unicode/unorm2.h>
44 #include <unicode/unum.h>
45 #include <unicode/unumberformatter.h>
46 #include <unicode/unumsys.h>
47 #include <unicode/upluralrules.h>
48 #include <unicode/uregex.h>
49 #include <unicode/uregion.h>
50 #include <unicode/ureldatefmt.h>
51 #include <unicode/ures.h>
52 #include <unicode/uscript.h>
53 #include <unicode/usearch.h>
54 #include <unicode/uset.h>
55 #include <unicode/ushape.h>
56 #include <unicode/uspoof.h>
57 #include <unicode/usprep.h>
58 #include <unicode/ustring.h>
59 #include <unicode/utext.h>
60 #include <unicode/utmscale.h>
61 #include <unicode/utrace.h>
62 #include <unicode/utrans.h>
63 #include <unicode/utypes.h>
64 #include <unicode/uversion.h>
65 
66 extern "C" {
UCNV_FROM_U_CALLBACK_STOP_android(const void * context,UConverterFromUnicodeArgs * fromUArgs,const UChar * codeUnits,int32_t length,UChar32 codePoint,UConverterCallbackReason reason,UErrorCode * err)67 void UCNV_FROM_U_CALLBACK_STOP_android(const void * context, UConverterFromUnicodeArgs * fromUArgs, const UChar * codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) {
68   UCNV_FROM_U_CALLBACK_STOP(context, fromUArgs, codeUnits, length, codePoint, reason, err);
69 }
UCNV_TO_U_CALLBACK_STOP_android(const void * context,UConverterToUnicodeArgs * toUArgs,const char * codeUnits,int32_t length,UConverterCallbackReason reason,UErrorCode * err)70 void UCNV_TO_U_CALLBACK_STOP_android(const void * context, UConverterToUnicodeArgs * toUArgs, const char * codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) {
71   UCNV_TO_U_CALLBACK_STOP(context, toUArgs, codeUnits, length, reason, err);
72 }
u_charDirection_android(UChar32 c)73 UCharDirection u_charDirection_android(UChar32 c) {
74   return u_charDirection(c);
75 }
u_charMirror_android(UChar32 c)76 UChar32 u_charMirror_android(UChar32 c) {
77   return u_charMirror(c);
78 }
u_charName_android(UChar32 code,UCharNameChoice nameChoice,char * buffer,int32_t bufferLength,UErrorCode * pErrorCode)79 int32_t u_charName_android(UChar32 code, UCharNameChoice nameChoice, char * buffer, int32_t bufferLength, UErrorCode * pErrorCode) {
80   return u_charName(code, nameChoice, buffer, bufferLength, pErrorCode);
81 }
u_charType_android(UChar32 c)82 int8_t u_charType_android(UChar32 c) {
83   return u_charType(c);
84 }
u_countChar32_android(const UChar * s,int32_t length)85 int32_t u_countChar32_android(const UChar * s, int32_t length) {
86   return u_countChar32(s, length);
87 }
u_digit_android(UChar32 ch,int8_t radix)88 int32_t u_digit_android(UChar32 ch, int8_t radix) {
89   return u_digit(ch, radix);
90 }
u_errorName_android(UErrorCode code)91 const char * u_errorName_android(UErrorCode code) {
92   return u_errorName(code);
93 }
u_foldCase_android(UChar32 c,uint32_t options)94 UChar32 u_foldCase_android(UChar32 c, uint32_t options) {
95   return u_foldCase(c, options);
96 }
u_getCombiningClass_android(UChar32 c)97 uint8_t u_getCombiningClass_android(UChar32 c) {
98   return u_getCombiningClass(c);
99 }
u_getIntPropertyMaxValue_android(UProperty which)100 int32_t u_getIntPropertyMaxValue_android(UProperty which) {
101   return u_getIntPropertyMaxValue(which);
102 }
u_getIntPropertyValue_android(UChar32 c,UProperty which)103 int32_t u_getIntPropertyValue_android(UChar32 c, UProperty which) {
104   return u_getIntPropertyValue(c, which);
105 }
u_getNumericValue_android(UChar32 c)106 double u_getNumericValue_android(UChar32 c) {
107   return u_getNumericValue(c);
108 }
u_hasBinaryProperty_android(UChar32 c,UProperty which)109 UBool u_hasBinaryProperty_android(UChar32 c, UProperty which) {
110   return u_hasBinaryProperty(c, which);
111 }
u_isIDIgnorable_android(UChar32 c)112 UBool u_isIDIgnorable_android(UChar32 c) {
113   return u_isIDIgnorable(c);
114 }
u_isIDPart_android(UChar32 c)115 UBool u_isIDPart_android(UChar32 c) {
116   return u_isIDPart(c);
117 }
u_isIDStart_android(UChar32 c)118 UBool u_isIDStart_android(UChar32 c) {
119   return u_isIDStart(c);
120 }
u_isJavaSpaceChar_android(UChar32 c)121 UBool u_isJavaSpaceChar_android(UChar32 c) {
122   return u_isJavaSpaceChar(c);
123 }
u_isMirrored_android(UChar32 c)124 UBool u_isMirrored_android(UChar32 c) {
125   return u_isMirrored(c);
126 }
u_isUAlphabetic_android(UChar32 c)127 UBool u_isUAlphabetic_android(UChar32 c) {
128   return u_isUAlphabetic(c);
129 }
u_isUWhiteSpace_android(UChar32 c)130 UBool u_isUWhiteSpace_android(UChar32 c) {
131   return u_isUWhiteSpace(c);
132 }
u_isWhitespace_android(UChar32 c)133 UBool u_isWhitespace_android(UChar32 c) {
134   return u_isWhitespace(c);
135 }
u_isalnum_android(UChar32 c)136 UBool u_isalnum_android(UChar32 c) {
137   return u_isalnum(c);
138 }
u_isalpha_android(UChar32 c)139 UBool u_isalpha_android(UChar32 c) {
140   return u_isalpha(c);
141 }
u_iscntrl_android(UChar32 c)142 UBool u_iscntrl_android(UChar32 c) {
143   return u_iscntrl(c);
144 }
u_isdefined_android(UChar32 c)145 UBool u_isdefined_android(UChar32 c) {
146   return u_isdefined(c);
147 }
u_isdigit_android(UChar32 c)148 UBool u_isdigit_android(UChar32 c) {
149   return u_isdigit(c);
150 }
u_islower_android(UChar32 c)151 UBool u_islower_android(UChar32 c) {
152   return u_islower(c);
153 }
u_ispunct_android(UChar32 c)154 UBool u_ispunct_android(UChar32 c) {
155   return u_ispunct(c);
156 }
u_isspace_android(UChar32 c)157 UBool u_isspace_android(UChar32 c) {
158   return u_isspace(c);
159 }
u_istitle_android(UChar32 c)160 UBool u_istitle_android(UChar32 c) {
161   return u_istitle(c);
162 }
u_isupper_android(UChar32 c)163 UBool u_isupper_android(UChar32 c) {
164   return u_isupper(c);
165 }
u_strFromUTF8_android(UChar * dest,int32_t destCapacity,int32_t * pDestLength,const char * src,int32_t srcLength,UErrorCode * pErrorCode)166 UChar * u_strFromUTF8_android(UChar * dest, int32_t destCapacity, int32_t * pDestLength, const char * src, int32_t srcLength, UErrorCode * pErrorCode) {
167   return u_strFromUTF8(dest, destCapacity, pDestLength, src, srcLength, pErrorCode);
168 }
u_strFromUTF8WithSub_android(UChar * dest,int32_t destCapacity,int32_t * pDestLength,const char * src,int32_t srcLength,UChar32 subchar,int32_t * pNumSubstitutions,UErrorCode * pErrorCode)169 UChar * u_strFromUTF8WithSub_android(UChar * dest, int32_t destCapacity, int32_t * pDestLength, const char * src, int32_t srcLength, UChar32 subchar, int32_t * pNumSubstitutions, UErrorCode * pErrorCode) {
170   return u_strFromUTF8WithSub(dest, destCapacity, pDestLength, src, srcLength, subchar, pNumSubstitutions, pErrorCode);
171 }
u_strToLower_android(UChar * dest,int32_t destCapacity,const UChar * src,int32_t srcLength,const char * locale,UErrorCode * pErrorCode)172 int32_t u_strToLower_android(UChar * dest, int32_t destCapacity, const UChar * src, int32_t srcLength, const char * locale, UErrorCode * pErrorCode) {
173   return u_strToLower(dest, destCapacity, src, srcLength, locale, pErrorCode);
174 }
u_strToUTF8_android(char * dest,int32_t destCapacity,int32_t * pDestLength,const UChar * src,int32_t srcLength,UErrorCode * pErrorCode)175 char * u_strToUTF8_android(char * dest, int32_t destCapacity, int32_t * pDestLength, const UChar * src, int32_t srcLength, UErrorCode * pErrorCode) {
176   return u_strToUTF8(dest, destCapacity, pDestLength, src, srcLength, pErrorCode);
177 }
u_strToUpper_android(UChar * dest,int32_t destCapacity,const UChar * src,int32_t srcLength,const char * locale,UErrorCode * pErrorCode)178 int32_t u_strToUpper_android(UChar * dest, int32_t destCapacity, const UChar * src, int32_t srcLength, const char * locale, UErrorCode * pErrorCode) {
179   return u_strToUpper(dest, destCapacity, src, srcLength, locale, pErrorCode);
180 }
u_tolower_android(UChar32 c)181 UChar32 u_tolower_android(UChar32 c) {
182   return u_tolower(c);
183 }
u_totitle_android(UChar32 c)184 UChar32 u_totitle_android(UChar32 c) {
185   return u_totitle(c);
186 }
u_toupper_android(UChar32 c)187 UChar32 u_toupper_android(UChar32 c) {
188   return u_toupper(c);
189 }
ubidi_close_android(UBiDi * pBiDi)190 void ubidi_close_android(UBiDi * pBiDi) {
191   ubidi_close(pBiDi);
192 }
ubidi_countRuns_android(UBiDi * pBiDi,UErrorCode * pErrorCode)193 int32_t ubidi_countRuns_android(UBiDi * pBiDi, UErrorCode * pErrorCode) {
194   return ubidi_countRuns(pBiDi, pErrorCode);
195 }
ubidi_getLength_android(const UBiDi * pBiDi)196 int32_t ubidi_getLength_android(const UBiDi * pBiDi) {
197   return ubidi_getLength(pBiDi);
198 }
ubidi_getLevelAt_android(const UBiDi * pBiDi,int32_t charIndex)199 UBiDiLevel ubidi_getLevelAt_android(const UBiDi * pBiDi, int32_t charIndex) {
200   return ubidi_getLevelAt(pBiDi, charIndex);
201 }
ubidi_getParaLevel_android(const UBiDi * pBiDi)202 UBiDiLevel ubidi_getParaLevel_android(const UBiDi * pBiDi) {
203   return ubidi_getParaLevel(pBiDi);
204 }
ubidi_getVisualRun_android(UBiDi * pBiDi,int32_t runIndex,int32_t * pLogicalStart,int32_t * pLength)205 UBiDiDirection ubidi_getVisualRun_android(UBiDi * pBiDi, int32_t runIndex, int32_t * pLogicalStart, int32_t * pLength) {
206   return ubidi_getVisualRun(pBiDi, runIndex, pLogicalStart, pLength);
207 }
ubidi_open_android()208 UBiDi * ubidi_open_android() {
209   return ubidi_open();
210 }
ubidi_openSized_android(int32_t maxLength,int32_t maxRunCount,UErrorCode * pErrorCode)211 UBiDi * ubidi_openSized_android(int32_t maxLength, int32_t maxRunCount, UErrorCode * pErrorCode) {
212   return ubidi_openSized(maxLength, maxRunCount, pErrorCode);
213 }
ubidi_reorderVisual_android(const UBiDiLevel * levels,int32_t length,int32_t * indexMap)214 void ubidi_reorderVisual_android(const UBiDiLevel * levels, int32_t length, int32_t * indexMap) {
215   ubidi_reorderVisual(levels, length, indexMap);
216 }
ubidi_setClassCallback_android(UBiDi * pBiDi,UBiDiClassCallback * newFn,const void * newContext,UBiDiClassCallback ** oldFn,const void ** oldContext,UErrorCode * pErrorCode)217 void ubidi_setClassCallback_android(UBiDi * pBiDi, UBiDiClassCallback * newFn, const void * newContext, UBiDiClassCallback ** oldFn, const void ** oldContext, UErrorCode * pErrorCode) {
218   ubidi_setClassCallback(pBiDi, newFn, newContext, oldFn, oldContext, pErrorCode);
219 }
ubidi_setPara_android(UBiDi * pBiDi,const UChar * text,int32_t length,UBiDiLevel paraLevel,UBiDiLevel * embeddingLevels,UErrorCode * pErrorCode)220 void ubidi_setPara_android(UBiDi * pBiDi, const UChar * text, int32_t length, UBiDiLevel paraLevel, UBiDiLevel * embeddingLevels, UErrorCode * pErrorCode) {
221   ubidi_setPara(pBiDi, text, length, paraLevel, embeddingLevels, pErrorCode);
222 }
ubrk_close_android(UBreakIterator * bi)223 void ubrk_close_android(UBreakIterator * bi) {
224   ubrk_close(bi);
225 }
ubrk_current_android(const UBreakIterator * bi)226 int32_t ubrk_current_android(const UBreakIterator * bi) {
227   return ubrk_current(bi);
228 }
ubrk_first_android(UBreakIterator * bi)229 int32_t ubrk_first_android(UBreakIterator * bi) {
230   return ubrk_first(bi);
231 }
ubrk_following_android(UBreakIterator * bi,int32_t offset)232 int32_t ubrk_following_android(UBreakIterator * bi, int32_t offset) {
233   return ubrk_following(bi, offset);
234 }
ubrk_getRuleStatus_android(UBreakIterator * bi)235 int32_t ubrk_getRuleStatus_android(UBreakIterator * bi) {
236   return ubrk_getRuleStatus(bi);
237 }
ubrk_isBoundary_android(UBreakIterator * bi,int32_t offset)238 UBool ubrk_isBoundary_android(UBreakIterator * bi, int32_t offset) {
239   return ubrk_isBoundary(bi, offset);
240 }
ubrk_next_android(UBreakIterator * bi)241 int32_t ubrk_next_android(UBreakIterator * bi) {
242   return ubrk_next(bi);
243 }
ubrk_open_android(UBreakIteratorType type,const char * locale,const UChar * text,int32_t textLength,UErrorCode * status)244 UBreakIterator * ubrk_open_android(UBreakIteratorType type, const char * locale, const UChar * text, int32_t textLength, UErrorCode * status) {
245   return ubrk_open(type, locale, text, textLength, status);
246 }
ubrk_preceding_android(UBreakIterator * bi,int32_t offset)247 int32_t ubrk_preceding_android(UBreakIterator * bi, int32_t offset) {
248   return ubrk_preceding(bi, offset);
249 }
ubrk_setUText_android(UBreakIterator * bi,UText * text,UErrorCode * status)250 void ubrk_setUText_android(UBreakIterator * bi, UText * text, UErrorCode * status) {
251   ubrk_setUText(bi, text, status);
252 }
ucnv_close_android(UConverter * converter)253 void ucnv_close_android(UConverter * converter) {
254   ucnv_close(converter);
255 }
ucnv_convert_android(const char * toConverterName,const char * fromConverterName,char * target,int32_t targetCapacity,const char * source,int32_t sourceLength,UErrorCode * pErrorCode)256 int32_t ucnv_convert_android(const char * toConverterName, const char * fromConverterName, char * target, int32_t targetCapacity, const char * source, int32_t sourceLength, UErrorCode * pErrorCode) {
257   return ucnv_convert(toConverterName, fromConverterName, target, targetCapacity, source, sourceLength, pErrorCode);
258 }
ucnv_convertEx_android(UConverter * targetCnv,UConverter * sourceCnv,char ** target,const char * targetLimit,const char ** source,const char * sourceLimit,UChar * pivotStart,UChar ** pivotSource,UChar ** pivotTarget,const UChar * pivotLimit,UBool reset,UBool flush,UErrorCode * pErrorCode)259 void ucnv_convertEx_android(UConverter * targetCnv, UConverter * sourceCnv, char ** target, const char * targetLimit, const char ** source, const char * sourceLimit, UChar * pivotStart, UChar ** pivotSource, UChar ** pivotTarget, const UChar * pivotLimit, UBool reset, UBool flush, UErrorCode * pErrorCode) {
260   ucnv_convertEx(targetCnv, sourceCnv, target, targetLimit, source, sourceLimit, pivotStart, pivotSource, pivotTarget, pivotLimit, reset, flush, pErrorCode);
261 }
ucnv_getNextUChar_android(UConverter * converter,const char ** source,const char * sourceLimit,UErrorCode * err)262 UChar32 ucnv_getNextUChar_android(UConverter * converter, const char ** source, const char * sourceLimit, UErrorCode * err) {
263   return ucnv_getNextUChar(converter, source, sourceLimit, err);
264 }
ucnv_open_android(const char * converterName,UErrorCode * err)265 UConverter * ucnv_open_android(const char * converterName, UErrorCode * err) {
266   return ucnv_open(converterName, err);
267 }
ucnv_setFromUCallBack_android(UConverter * converter,UConverterFromUCallback newAction,const void * newContext,UConverterFromUCallback * oldAction,const void ** oldContext,UErrorCode * err)268 void ucnv_setFromUCallBack_android(UConverter * converter, UConverterFromUCallback newAction, const void * newContext, UConverterFromUCallback * oldAction, const void ** oldContext, UErrorCode * err) {
269   ucnv_setFromUCallBack(converter, newAction, newContext, oldAction, oldContext, err);
270 }
ucnv_setToUCallBack_android(UConverter * converter,UConverterToUCallback newAction,const void * newContext,UConverterToUCallback * oldAction,const void ** oldContext,UErrorCode * err)271 void ucnv_setToUCallBack_android(UConverter * converter, UConverterToUCallback newAction, const void * newContext, UConverterToUCallback * oldAction, const void ** oldContext, UErrorCode * err) {
272   ucnv_setToUCallBack(converter, newAction, newContext, oldAction, oldContext, err);
273 }
ucol_close_android(UCollator * coll)274 void ucol_close_android(UCollator * coll) {
275   ucol_close(coll);
276 }
ucol_open_android(const char * loc,UErrorCode * status)277 UCollator * ucol_open_android(const char * loc, UErrorCode * status) {
278   return ucol_open(loc, status);
279 }
ucol_setAttribute_android(UCollator * coll,UColAttribute attr,UColAttributeValue value,UErrorCode * status)280 void ucol_setAttribute_android(UCollator * coll, UColAttribute attr, UColAttributeValue value, UErrorCode * status) {
281   ucol_setAttribute(coll, attr, value, status);
282 }
ucol_strcoll_android(const UCollator * coll,const UChar * source,int32_t sourceLength,const UChar * target,int32_t targetLength)283 UCollationResult ucol_strcoll_android(const UCollator * coll, const UChar * source, int32_t sourceLength, const UChar * target, int32_t targetLength) {
284   return ucol_strcoll(coll, source, sourceLength, target, targetLength);
285 }
ucol_strcollIter_android(const UCollator * coll,UCharIterator * sIter,UCharIterator * tIter,UErrorCode * status)286 UCollationResult ucol_strcollIter_android(const UCollator * coll, UCharIterator * sIter, UCharIterator * tIter, UErrorCode * status) {
287   return ucol_strcollIter(coll, sIter, tIter, status);
288 }
ucsdet_close_android(UCharsetDetector * ucsd)289 void ucsdet_close_android(UCharsetDetector * ucsd) {
290   ucsdet_close(ucsd);
291 }
ucsdet_detect_android(UCharsetDetector * ucsd,UErrorCode * status)292 const UCharsetMatch * ucsdet_detect_android(UCharsetDetector * ucsd, UErrorCode * status) {
293   return ucsdet_detect(ucsd, status);
294 }
ucsdet_detectAll_android(UCharsetDetector * ucsd,int32_t * matchesFound,UErrorCode * status)295 const UCharsetMatch ** ucsdet_detectAll_android(UCharsetDetector * ucsd, int32_t * matchesFound, UErrorCode * status) {
296   return ucsdet_detectAll(ucsd, matchesFound, status);
297 }
ucsdet_getConfidence_android(const UCharsetMatch * ucsm,UErrorCode * status)298 int32_t ucsdet_getConfidence_android(const UCharsetMatch * ucsm, UErrorCode * status) {
299   return ucsdet_getConfidence(ucsm, status);
300 }
ucsdet_getName_android(const UCharsetMatch * ucsm,UErrorCode * status)301 const char * ucsdet_getName_android(const UCharsetMatch * ucsm, UErrorCode * status) {
302   return ucsdet_getName(ucsm, status);
303 }
ucsdet_open_android(UErrorCode * status)304 UCharsetDetector * ucsdet_open_android(UErrorCode * status) {
305   return ucsdet_open(status);
306 }
ucsdet_setText_android(UCharsetDetector * ucsd,const char * textIn,int32_t len,UErrorCode * status)307 void ucsdet_setText_android(UCharsetDetector * ucsd, const char * textIn, int32_t len, UErrorCode * status) {
308   ucsdet_setText(ucsd, textIn, len, status);
309 }
udatpg_close_android(UDateTimePatternGenerator * dtpg)310 void udatpg_close_android(UDateTimePatternGenerator * dtpg) {
311   udatpg_close(dtpg);
312 }
udatpg_getBestPattern_android(UDateTimePatternGenerator * dtpg,const UChar * skeleton,int32_t length,UChar * bestPattern,int32_t capacity,UErrorCode * pErrorCode)313 int32_t udatpg_getBestPattern_android(UDateTimePatternGenerator * dtpg, const UChar * skeleton, int32_t length, UChar * bestPattern, int32_t capacity, UErrorCode * pErrorCode) {
314   return udatpg_getBestPattern(dtpg, skeleton, length, bestPattern, capacity, pErrorCode);
315 }
udatpg_open_android(const char * locale,UErrorCode * pErrorCode)316 UDateTimePatternGenerator * udatpg_open_android(const char * locale, UErrorCode * pErrorCode) {
317   return udatpg_open(locale, pErrorCode);
318 }
uiter_setUTF8_android(UCharIterator * iter,const char * s,int32_t length)319 void uiter_setUTF8_android(UCharIterator * iter, const char * s, int32_t length) {
320   uiter_setUTF8(iter, s, length);
321 }
uloc_addLikelySubtags_android(const char * localeID,char * maximizedLocaleID,int32_t maximizedLocaleIDCapacity,UErrorCode * err)322 int32_t uloc_addLikelySubtags_android(const char * localeID, char * maximizedLocaleID, int32_t maximizedLocaleIDCapacity, UErrorCode * err) {
323   return uloc_addLikelySubtags(localeID, maximizedLocaleID, maximizedLocaleIDCapacity, err);
324 }
uloc_canonicalize_android(const char * localeID,char * name,int32_t nameCapacity,UErrorCode * err)325 int32_t uloc_canonicalize_android(const char * localeID, char * name, int32_t nameCapacity, UErrorCode * err) {
326   return uloc_canonicalize(localeID, name, nameCapacity, err);
327 }
uloc_countAvailable_android()328 int32_t uloc_countAvailable_android() {
329   return uloc_countAvailable();
330 }
uloc_forLanguageTag_android(const char * langtag,char * localeID,int32_t localeIDCapacity,int32_t * parsedLength,UErrorCode * err)331 int32_t uloc_forLanguageTag_android(const char * langtag, char * localeID, int32_t localeIDCapacity, int32_t * parsedLength, UErrorCode * err) {
332   return uloc_forLanguageTag(langtag, localeID, localeIDCapacity, parsedLength, err);
333 }
uloc_getAvailable_android(int32_t n)334 const char * uloc_getAvailable_android(int32_t n) {
335   return uloc_getAvailable(n);
336 }
uloc_getDefault_android()337 const char * uloc_getDefault_android() {
338   return uloc_getDefault();
339 }
uloc_getISO3Country_android(const char * localeID)340 const char * uloc_getISO3Country_android(const char * localeID) {
341   return uloc_getISO3Country(localeID);
342 }
uloc_getISO3Language_android(const char * localeID)343 const char * uloc_getISO3Language_android(const char * localeID) {
344   return uloc_getISO3Language(localeID);
345 }
uloc_getISOCountries_android()346 const char *const * uloc_getISOCountries_android() {
347   return uloc_getISOCountries();
348 }
uloc_getISOLanguages_android()349 const char *const * uloc_getISOLanguages_android() {
350   return uloc_getISOLanguages();
351 }
uloc_getName_android(const char * localeID,char * name,int32_t nameCapacity,UErrorCode * err)352 int32_t uloc_getName_android(const char * localeID, char * name, int32_t nameCapacity, UErrorCode * err) {
353   return uloc_getName(localeID, name, nameCapacity, err);
354 }
uloc_getScript_android(const char * localeID,char * script,int32_t scriptCapacity,UErrorCode * err)355 int32_t uloc_getScript_android(const char * localeID, char * script, int32_t scriptCapacity, UErrorCode * err) {
356   return uloc_getScript(localeID, script, scriptCapacity, err);
357 }
uloc_setDefault_android(const char * localeID,UErrorCode * status)358 void uloc_setDefault_android(const char * localeID, UErrorCode * status) {
359   uloc_setDefault(localeID, status);
360 }
uloc_toLanguageTag_android(const char * localeID,char * langtag,int32_t langtagCapacity,UBool strict,UErrorCode * err)361 int32_t uloc_toLanguageTag_android(const char * localeID, char * langtag, int32_t langtagCapacity, UBool strict, UErrorCode * err) {
362   return uloc_toLanguageTag(localeID, langtag, langtagCapacity, strict, err);
363 }
unorm2_composePair_android(const UNormalizer2 * norm2,UChar32 a,UChar32 b)364 UChar32 unorm2_composePair_android(const UNormalizer2 * norm2, UChar32 a, UChar32 b) {
365   return unorm2_composePair(norm2, a, b);
366 }
unorm2_getDecomposition_android(const UNormalizer2 * norm2,UChar32 c,UChar * decomposition,int32_t capacity,UErrorCode * pErrorCode)367 int32_t unorm2_getDecomposition_android(const UNormalizer2 * norm2, UChar32 c, UChar * decomposition, int32_t capacity, UErrorCode * pErrorCode) {
368   return unorm2_getDecomposition(norm2, c, decomposition, capacity, pErrorCode);
369 }
unorm2_getNFCInstance_android(UErrorCode * pErrorCode)370 const UNormalizer2 * unorm2_getNFCInstance_android(UErrorCode * pErrorCode) {
371   return unorm2_getNFCInstance(pErrorCode);
372 }
unorm2_getNFDInstance_android(UErrorCode * pErrorCode)373 const UNormalizer2 * unorm2_getNFDInstance_android(UErrorCode * pErrorCode) {
374   return unorm2_getNFDInstance(pErrorCode);
375 }
unorm2_getRawDecomposition_android(const UNormalizer2 * norm2,UChar32 c,UChar * decomposition,int32_t capacity,UErrorCode * pErrorCode)376 int32_t unorm2_getRawDecomposition_android(const UNormalizer2 * norm2, UChar32 c, UChar * decomposition, int32_t capacity, UErrorCode * pErrorCode) {
377   return unorm2_getRawDecomposition(norm2, c, decomposition, capacity, pErrorCode);
378 }
uregex_close_android(URegularExpression * regexp)379 void uregex_close_android(URegularExpression * regexp) {
380   uregex_close(regexp);
381 }
uregex_matches_android(URegularExpression * regexp,int32_t startIndex,UErrorCode * status)382 UBool uregex_matches_android(URegularExpression * regexp, int32_t startIndex, UErrorCode * status) {
383   return uregex_matches(regexp, startIndex, status);
384 }
uregex_open_android(const UChar * pattern,int32_t patternLength,uint32_t flags,UParseError * pe,UErrorCode * status)385 URegularExpression * uregex_open_android(const UChar * pattern, int32_t patternLength, uint32_t flags, UParseError * pe, UErrorCode * status) {
386   return uregex_open(pattern, patternLength, flags, pe, status);
387 }
uregex_setText_android(URegularExpression * regexp,const UChar * text,int32_t textLength,UErrorCode * status)388 void uregex_setText_android(URegularExpression * regexp, const UChar * text, int32_t textLength, UErrorCode * status) {
389   uregex_setText(regexp, text, textLength, status);
390 }
ures_close_android(UResourceBundle * resourceBundle)391 void ures_close_android(UResourceBundle * resourceBundle) {
392   ures_close(resourceBundle);
393 }
ures_getByIndex_android(const UResourceBundle * resourceBundle,int32_t indexR,UResourceBundle * fillIn,UErrorCode * status)394 UResourceBundle * ures_getByIndex_android(const UResourceBundle * resourceBundle, int32_t indexR, UResourceBundle * fillIn, UErrorCode * status) {
395   return ures_getByIndex(resourceBundle, indexR, fillIn, status);
396 }
ures_getByKey_android(const UResourceBundle * resourceBundle,const char * key,UResourceBundle * fillIn,UErrorCode * status)397 UResourceBundle * ures_getByKey_android(const UResourceBundle * resourceBundle, const char * key, UResourceBundle * fillIn, UErrorCode * status) {
398   return ures_getByKey(resourceBundle, key, fillIn, status);
399 }
ures_getString_android(const UResourceBundle * resourceBundle,int32_t * len,UErrorCode * status)400 const UChar * ures_getString_android(const UResourceBundle * resourceBundle, int32_t * len, UErrorCode * status) {
401   return ures_getString(resourceBundle, len, status);
402 }
ures_openDirect_android(const char * packageName,const char * locale,UErrorCode * status)403 UResourceBundle * ures_openDirect_android(const char * packageName, const char * locale, UErrorCode * status) {
404   return ures_openDirect(packageName, locale, status);
405 }
uscript_getScript_android(UChar32 codepoint,UErrorCode * err)406 UScriptCode uscript_getScript_android(UChar32 codepoint, UErrorCode * err) {
407   return uscript_getScript(codepoint, err);
408 }
uscript_getShortName_android(UScriptCode scriptCode)409 const char * uscript_getShortName_android(UScriptCode scriptCode) {
410   return uscript_getShortName(scriptCode);
411 }
utext_close_android(UText * ut)412 UText * utext_close_android(UText * ut) {
413   return utext_close(ut);
414 }
utext_openUChars_android(UText * ut,const UChar * s,int64_t length,UErrorCode * status)415 UText * utext_openUChars_android(UText * ut, const UChar * s, int64_t length, UErrorCode * status) {
416   return utext_openUChars(ut, s, length, status);
417 }
utext_openUTF8_android(UText * ut,const char * s,int64_t length,UErrorCode * status)418 UText * utext_openUTF8_android(UText * ut, const char * s, int64_t length, UErrorCode * status) {
419   return utext_openUTF8(ut, s, length, status);
420 }
utrans_close_android(UTransliterator * trans)421 void utrans_close_android(UTransliterator * trans) {
422   utrans_close(trans);
423 }
utrans_openU_android(const UChar * id,int32_t idLength,UTransDirection dir,const UChar * rules,int32_t rulesLength,UParseError * parseError,UErrorCode * pErrorCode)424 UTransliterator * utrans_openU_android(const UChar * id, int32_t idLength, UTransDirection dir, const UChar * rules, int32_t rulesLength, UParseError * parseError, UErrorCode * pErrorCode) {
425   return utrans_openU(id, idLength, dir, rules, rulesLength, parseError, pErrorCode);
426 }
utrans_transUChars_android(const UTransliterator * trans,UChar * text,int32_t * textLength,int32_t textCapacity,int32_t start,int32_t * limit,UErrorCode * status)427 void utrans_transUChars_android(const UTransliterator * trans, UChar * text, int32_t * textLength, int32_t textCapacity, int32_t start, int32_t * limit, UErrorCode * status) {
428   utrans_transUChars(trans, text, textLength, textCapacity, start, limit, status);
429 }
430 }