Home
last modified time | relevance | path

Searched refs:desiredCapacity (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/common/
Dbytesinkutil.cpp28 int32_t desiredCapacity = s16Length - i; in appendChange() local
29 if (desiredCapacity < (INT32_MAX / 3)) { in appendChange()
30 desiredCapacity *= 3; // max 3 UTF-8 bytes per UTF-16 code unit in appendChange()
31 } else if (desiredCapacity < (INT32_MAX / 2)) { in appendChange()
32 desiredCapacity *= 2; in appendChange()
34 desiredCapacity = INT32_MAX; in appendChange()
36 char *buffer = sink.GetAppendBuffer(U8_MAX_LENGTH, desiredCapacity, in appendChange()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DBOCSU.java137 …ate static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapacity) { in ensureAppendCapacity() argument
140 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()
141 sink.ensureCapacity(sink.size + desiredCapacity); in ensureAppendCapacity()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DBOCSU.java136 …ate static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapacity) { in ensureAppendCapacity() argument
139 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()
140 sink.ensureCapacity(sink.size + desiredCapacity); in ensureAppendCapacity()