Searched refs:desiredCapacity (Results 1 – 5 of 5) sorted by relevance
/third_party/node/deps/icu-small/source/common/ |
D | bytesinkutil.cpp | 28 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()
|
/third_party/icu/icu4c/source/common/ |
D | bytesinkutil.cpp | 28 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()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | bytesinkutil.cpp | 28 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()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | BOCSU.java | 137 …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()
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | BOCSU.java | 136 …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()
|