Home
last modified time | relevance | path

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

12

/external/icu/icu4c/source/common/
Ducnvdisp.cpp70 u_memcpy(displayName, name, uprv_min(length, displayNameCapacity)*U_SIZEOF_UCHAR); in ucnv_getDisplayName()
74 …u_charsToUChars(cnv->sharedData->staticData->name, displayName, uprv_min(length, displayNameCapaci… in ucnv_getDisplayName()
Dumath.cpp22 uprv_min(int32_t x, int32_t y) in uprv_min() function
Duvectr64.cpp55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
Dputilimp.h299 U_CAPI int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
Duvectr32.cpp58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
Dlocdispnames.cpp334 int32_t copyLength=uprv_min(length, destCapacity); in _getStringOrCopyKey()
341 u_charsToUChars(substitute, dest, uprv_min(length, destCapacity)); in _getStringOrCopyKey()
Duloc.cpp1667 uprv_memmove(parent, localeID, uprv_min(i, parentCapacity)); in uloc_getParent()
1669 uprv_memcpy(parent, localeID, uprv_min(i, parentCapacity)); in uloc_getParent()
Duloc_tag.cpp1935 … uprv_memcpy(tmpAppend + reslen, PRIVUSE_VARIANT_PREFIX, uprv_min(len, capacity - reslen)); in _appendPrivateuseToLanguageTag()
1948 … uprv_memcpy(tmpAppend + reslen, pPriv, uprv_min(len, capacity - reslen)); in _appendPrivateuseToLanguageTag()
Dushape.cpp1640 u_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)); in u_shapeArabic()
Dputil.cpp2083 size_t localeCapacity = uprv_min(sizeof(localeBuf), (name-localeName)+1);
/external/icu/icu4c/source/i18n/
Dnumber_patternstring.cpp673 int32_t grouping1 = uprv_max(0, uprv_min(properties.groupingSize, dosMax)); in propertiesToPatternString()
674 int32_t grouping2 = uprv_max(0, uprv_min(properties.secondaryGroupingSize, dosMax)); in propertiesToPatternString()
676 int32_t paddingWidth = uprv_min(properties.formatWidth, dosMax); in propertiesToPatternString()
679 int32_t minInt = uprv_max(0, uprv_min(properties.minimumIntegerDigits, dosMax)); in propertiesToPatternString()
680 int32_t maxInt = uprv_min(properties.maximumIntegerDigits, dosMax); in propertiesToPatternString()
681 int32_t minFrac = uprv_max(0, uprv_min(properties.minimumFractionDigits, dosMax)); in propertiesToPatternString()
682 int32_t maxFrac = uprv_min(properties.maximumFractionDigits, dosMax); in propertiesToPatternString()
683 int32_t minSig = uprv_min(properties.minimumSignificantDigits, dosMax); in propertiesToPatternString()
684 int32_t maxSig = uprv_min(properties.maximumSignificantDigits, dosMax); in propertiesToPatternString()
686 int32_t exponentDigits = uprv_min(properties.minimumExponentDigits, dosMax); in propertiesToPatternString()
[all …]
Dformattedval_iterimpl.cpp105 s1a = uprv_min(s1a, fFields.elementAti(i * 4 + 2)); in addOverlapSpans()
107 s2a = uprv_min(s2a, fFields.elementAti(j * 4 + 2)); in addOverlapSpans()
Drbt_rule.cpp461 pos.start = uprv_max(minOText, uprv_min(uprv_min(oText, pos.limit), newStart)); in matchAndReplace()
Drbt_set.cpp149 len = uprv_min(r.length(), U_PARSE_CONTEXT_LEN-1); in maskingError()
156 len = uprv_min(r.length(), U_PARSE_CONTEXT_LEN-1); in maskingError()
Dstring_segment.cpp115 for (; offset < uprv_min(length(), other.length());) { in getPrefixLengthInternal()
Dnumfmt.cpp1107 fMaxIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits)); in setMaximumIntegerDigits()
1129 fMinIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits)); in setMinimumIntegerDigits()
1151 fMaxFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits)); in setMaximumFractionDigits()
1173 fMinFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits)); in setMinimumFractionDigits()
Danytrans.cpp264 pos.limit = uprv_min(allLimit, it.limit); in handleTransliterate()
Dnumber_rounding.cpp433 roundingMag = uprv_min(roundingMag, candidate); in apply()
Drbt_pars.cpp1492 stop = uprv_min(pos + LEN, rule.length()); in syntaxError()
/external/icu/icu4c/source/test/intltest/
Dformatted_string_builder_test.cpp83 int start = uprv_min(1, str.length()); in testInsertAppendUnicodeString()
84 int end = uprv_min(10, str.length()); in testInsertAppendUnicodeString()
/external/icu/icu4c/source/tools/toolutil/
Dudbgutil.cpp405 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity)); in paramStatic()
418 uprv_strncpy(target,str,uprv_min(len,targetCapacity)); in stringToStringBuffer()
424 uprv_strncpy(target,s,uprv_min(len,targetCapacity)); in stringToStringBuffer()
/external/icu/libicu/cts_headers/
Dputilimp.h299 U_CAPI int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
/external/icu/icu4c/source/test/cintltst/
Dputiltst.c106 doAssert(uprv_min(-4, 2), -4, "uprv_min(-4, 2) failed."); in TestPUtilAPI()
/external/icu/libicu/cts_headers/unicode/
Durename.h1441 #define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min) macro
/external/icu/libicu/ndk_headers/unicode/
Durename.h1441 #define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min) macro

12