Home
last modified time | relevance | path

Searched refs:uprv_min (Results 1 – 25 of 48) sorted by relevance

12

/external/chromium_org/third_party/icu/source/common/
Ducnvdisp.c68 u_memcpy(displayName, name, uprv_min(length, displayNameCapacity)*U_SIZEOF_UCHAR); in ucnv_getDisplayName()
72 …u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapaci… in ucnv_getDisplayName()
Duloc_tag.c618 uprv_memcpy(bcpKey, bcpKeyBuf, uprv_min(resultLen, bcpKeyCapacity)); in _ldmlKeyToBCP47()
692 uprv_memcpy(key, resKey, uprv_min(resultLen, keyCapacity)); in _bcp47ToLDMLKey()
810 uprv_memcpy(bcpType, bcpTypeBuf, uprv_min(resultLen, bcpTypeCapacity)); in _ldmlTypeToBCP47()
908 copyLen = uprv_min(resultLen, typeCapacity); in _bcp47ToLDMLType()
946 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen)); in _appendLanguageToLanguageTag()
956 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen)); in _appendLanguageToLanguageTag()
969 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendLanguageToLanguageTag()
1010 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendScriptToLanguageTag()
1052 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendRegionToLanguageTag()
1157 … uprv_memcpy(appendAt + reslen, var->variant, uprv_min(varLen, capacity - reslen)); in _appendVariantsToLanguageTag()
[all …]
Dumath.c20 uprv_min(int32_t x, int32_t y) in uprv_min() function
Dputilimp.h122 U_INTERNAL int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
Duvectr64.cpp53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
Duvectr32.cpp56 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
Dlocdispnames.cpp331 int32_t copyLength=uprv_min(length, destCapacity); in _getStringOrCopyKey()
338 u_charsToUChars(substitute, dest, uprv_min(length, destCapacity)); in _getStringOrCopyKey()
/external/icu/icu4c/source/common/
Ducnvdisp.c68 u_memcpy(displayName, name, uprv_min(length, displayNameCapacity)*U_SIZEOF_UCHAR); in ucnv_getDisplayName()
72 …u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapaci… in ucnv_getDisplayName()
Duloc_tag.c681 uprv_memcpy(bcpKey, bcpKeyBuf, uprv_min(resultLen, bcpKeyCapacity)); in _ldmlKeyToBCP47()
755 uprv_memcpy(key, resKey, uprv_min(resultLen, keyCapacity)); in _bcp47ToLDMLKey()
873 uprv_memcpy(bcpType, bcpTypeBuf, uprv_min(resultLen, bcpTypeCapacity)); in _ldmlTypeToBCP47()
979 copyLen = uprv_min(resultLen, typeCapacity); in _bcp47ToLDMLType()
1017 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen)); in _appendLanguageToLanguageTag()
1027 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen)); in _appendLanguageToLanguageTag()
1040 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendLanguageToLanguageTag()
1081 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendScriptToLanguageTag()
1123 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen)); in _appendRegionToLanguageTag()
1231 … uprv_memcpy(appendAt + reslen, var->variant, uprv_min(varLen, capacity - reslen)); in _appendVariantsToLanguageTag()
[all …]
Dumath.c20 uprv_min(int32_t x, int32_t y) in uprv_min() function
Duvectr64.cpp53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
Dputilimp.h366 U_INTERNAL int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
Duvectr32.cpp56 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
Dlocdispnames.cpp332 int32_t copyLength=uprv_min(length, destCapacity); in _getStringOrCopyKey()
339 u_charsToUChars(substitute, dest, uprv_min(length, destCapacity)); in _getStringOrCopyKey()
/external/chromium_org/third_party/icu/source/i18n/
Dtblcoll.cpp340 …ComparisonResult(compare(source.getBuffer(), uprv_min(length,source.length()), target.getBuffer(),… in compare()
349 …return compare(source.getBuffer(), uprv_min(length,source.length()), target.getBuffer(), uprv_min(… in compare()
Drbt_rule.cpp458 pos.start = uprv_max(minOText, uprv_min(uprv_min(oText, pos.limit), newStart)); in matchAndReplace()
Drbt_set.cpp146 len = uprv_min(r.length(), U_PARSE_CONTEXT_LEN-1); in maskingError()
153 len = uprv_min(r.length(), U_PARSE_CONTEXT_LEN-1); in maskingError()
Dnumfmt.cpp939 fMaxIntegerDigits = uprv_max(0, uprv_min(newValue, gMaxIntegerDigits)); in setMaximumIntegerDigits()
961 fMinIntegerDigits = uprv_max(0, uprv_min(newValue, gMinIntegerDigits)); in setMinimumIntegerDigits()
983 fMaxFractionDigits = uprv_max(0, uprv_min(newValue, gMaxIntegerDigits)); in setMaximumFractionDigits()
1005 fMinFractionDigits = uprv_max(0, uprv_min(newValue, gMinIntegerDigits)); in setMinimumFractionDigits()
Danytrans.cpp256 pos.limit = uprv_min(allLimit, it.limit); in handleTransliterate()
/external/icu/icu4c/source/i18n/
Drbt_set.cpp147 len = uprv_min(r.length(), U_PARSE_CONTEXT_LEN-1); in maskingError()
154 len = uprv_min(r.length(), U_PARSE_CONTEXT_LEN-1); in maskingError()
Drbt_rule.cpp459 pos.start = uprv_max(minOText, uprv_min(uprv_min(oText, pos.limit), newStart)); in matchAndReplace()
Dnumfmt.cpp1094 fMaxIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits)); in setMaximumIntegerDigits()
1116 fMinIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits)); in setMinimumIntegerDigits()
1138 fMaxFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits)); in setMaximumFractionDigits()
1160 fMinFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits)); in setMinimumFractionDigits()
Danytrans.cpp258 pos.limit = uprv_min(allLimit, it.limit); in handleTransliterate()
/external/chromium_org/third_party/icu/patches/
Duloc.patch46 …int32_t variantLen = _deleteVariant(variant, uprv_min(variantSize, (nameCapacity-len)), variantToC…
/external/icu/icu4c/source/tools/toolutil/
Dudbgutil.cpp392 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic()
405 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer()
411 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer()

12