Home
last modified time | relevance | path

Searched refs:resLen (Results 1 – 13 of 13) sorted by relevance

/external/icu/icu4c/source/i18n/
Dgender.cpp145 int32_t resLen = 0; in loadInstance() local
148 const UChar* s = ures_getStringByKey(locRes.getAlias(), curLocaleName, &resLen, &key_status); in loadInstance()
155 resLen = 0; in loadInstance()
156 s = ures_getStringByKey(locRes.getAlias(), parentLocaleName, &resLen, &key_status); in loadInstance()
164 u_UCharsToChars(s, type_str, resLen + 1); in loadInstance()
Dplurrule.cpp811 int32_t resLen=0; in getRuleFromResource() local
813 const UChar* s = ures_getStringByKey(locRes.getAlias(), curLocaleName, &resLen, &errCode); in getRuleFromResource()
824 resLen=0; in getRuleFromResource()
825 s = ures_getStringByKey(locRes.getAlias(), parentLocaleName, &resLen, &status); in getRuleFromResource()
838 u_UCharsToChars(s, setKey, resLen + 1); in getRuleFromResource()
/external/icu/icu4c/source/common/
Dlocmap.cpp1132 int32_t resLen = static_cast<int32_t>(uprv_strlen(pPosixID)); in uprv_convertToPosix() local
1133 int32_t copyLen = resLen <= posixIDCapacity ? resLen : posixIDCapacity; in uprv_convertToPosix()
1135 if (resLen < posixIDCapacity) { in uprv_convertToPosix()
1136 posixID[resLen] = 0; in uprv_convertToPosix()
1140 } else if (resLen == posixIDCapacity) { in uprv_convertToPosix()
1145 return resLen; in uprv_convertToPosix()
Dloclikely.cpp60 int32_t resLen = 0; in findLikelySubtags() local
78 s = ures_getStringByKey(subtags.getAlias(), localeID, &resLen, &tmpErr); in findLikelySubtags()
89 else if (resLen >= bufferLength) { in findLikelySubtags()
94 u_UCharsToChars(s, buffer, resLen + 1); in findLikelySubtags()
95 if (resLen >= 3 && in findLikelySubtags()
97 (resLen == 3 || buffer[3] == '_')) { in findLikelySubtags()
98 uprv_memmove(buffer, buffer + 3, resLen - 3 + 1); in findLikelySubtags()
Ducurr.cpp525 int32_t resLen = uloc_getKeywordValue(locale, "currency", in ucurr_forLocale() local
527 if (U_SUCCESS(localStatus) && resLen == 3 && uprv_isInvariantString(currency, resLen)) { in ucurr_forLocale()
528 if (resLen < buffCapacity) { in ucurr_forLocale()
530 u_charsToUChars(currency, buff, resLen); in ucurr_forLocale()
532 return u_terminateUChars(buff, buffCapacity, resLen, ec); in ucurr_forLocale()
548 resLen = u_strlen(result); in ucurr_forLocale()
549 return u_terminateUChars(buff, buffCapacity, resLen, ec); in ucurr_forLocale()
570 s = ures_getStringByKey(currencyReq, "id", &resLen, &localStatus); in ucurr_forLocale()
588 if(buffCapacity > resLen) { in ucurr_forLocale()
592 return u_terminateUChars(buff, buffCapacity, resLen, ec); in ucurr_forLocale()
[all …]
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp4944 int32_t resLen = 0; in TestCurrencyByDate() local
4954 resLen = ucurr_forLocaleAndDate("eo_AM", date, index, TMP, 4, &status); in TestCurrencyByDate()
4955 if (resLen != 0) { in TestCurrencyByDate()
4966 resLen = ucurr_forLocaleAndDate("eo_AM", date, index, TMP, 4, &status); in TestCurrencyByDate()
4979 resLen = ucurr_forLocaleAndDate("eo_AM", date, index, TMP, 4, &status); in TestCurrencyByDate()
4992 resLen = ucurr_forLocaleAndDate("eo_AM", date, index, TMP, 4, &status); in TestCurrencyByDate()
5006 resLen = ucurr_forLocaleAndDate("eo_AD", date, 1, TMP, 4, &status); in TestCurrencyByDate()
5012 resLen = ucurr_forLocaleAndDate("eo_AD", date, 2, TMP, 4, &status); in TestCurrencyByDate()
5018 resLen = ucurr_forLocaleAndDate("eo_AD", date, 3, TMP, 4, &status); in TestCurrencyByDate()
5024 resLen = ucurr_forLocaleAndDate("eo_AD", date, 4, TMP, 4, &status); in TestCurrencyByDate()
[all …]
Ducaconf.cpp225 int32_t resLen = withSortKeys ? coll->getSortKey(buffer, buflen, newSk, 1024) : 0; in testConformance() local
268 prettify(CollationKey(newSk, resLen), newS); in testConformance()
288 oldLen = resLen; in testConformance()
Dtsmthred.cpp751 int32_t resLen = coll->getSortKey(lines[i].buff, lines[i].buflen, newSk, 1024); in run() local
784 oldLen = resLen; in run()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestReorderingMode.java624 int i, srcLen, resLen, index; in checkMaps() local
651 resLen = bidi.getResultLength(); in checkMaps()
686 getIndexMap = new int[resLen]; in checkMaps()
687 for (i = 0; i < resLen; i++) { in checkMaps()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestReorderingMode.java627 int i, srcLen, resLen, index; in checkMaps() local
654 resLen = bidi.getResultLength(); in checkMaps()
689 getIndexMap = new int[resLen]; in checkMaps()
690 for (i = 0; i < resLen; i++) { in checkMaps()
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
DAbbreviatorTest.java134 int resLen = result.length(); in assertUsefulness() local
138 …e("filename=[" + filename + "], result=[" + result + "] resultLength=" + resLen + " fixedLength=" … in assertUsefulness()
/external/icu/icu4c/source/test/cintltst/
Dcbiditst.c4651 int32_t i, srcLen, resLen, idx; in checkMaps() local
4693 resLen = ubidi_getResultLength(pBiDi); in checkMaps()
4696 if (memcmp(expectedVisualMap, actualVisualMap, resLen * sizeof(int32_t))) { in checkMaps()
4711 formatMap(expectedVisualMap, resLen, expChars), in checkMaps()
4712 formatMap(actualVisualMap, resLen, actChars), in checkMaps()
4749 for (i = 0; i < resLen; i++) { in checkMaps()
4754 if (memcmp(actualVisualMap, getIndexMap, resLen * sizeof(int32_t))) { in checkMaps()
4769 formatMap(actualVisualMap, resLen, actChars), in checkMaps()
4770 formatMap(getIndexMap, resLen, gotChars), in checkMaps()
/external/starlark-go/starlark/
Dlibrary.go2077 resLen := len(res)
2078 for i := 0; i < resLen/2; i++ {
2079 res[i], res[resLen-1-i] = res[resLen-1-i], res[i]