Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 25 of 53) sorted by relevance

123

/third_party/icu/icu4c/source/layoutex/
DRunArrays.cpp21 RunArray::RunArray(le_int32 initialCapacity) in RunArray() argument
22 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray()
24 if (initialCapacity > 0) { in RunArray()
78 FontRuns::FontRuns(le_int32 initialCapacity) in FontRuns() argument
79 : RunArray(initialCapacity), fFonts(NULL) in FontRuns()
81 if (initialCapacity > 0) { in FontRuns()
82 fFonts = LE_NEW_ARRAY(const LEFontInstance *, initialCapacity); in FontRuns()
130 LocaleRuns::LocaleRuns(le_int32 initialCapacity) in LocaleRuns() argument
131 : RunArray(initialCapacity), fLocales(NULL) in LocaleRuns()
133 if (initialCapacity > 0) { in LocaleRuns()
[all …]
Dplruns.cpp29 pl_openEmptyFontRuns(le_int32 initialCapacity) in pl_openEmptyFontRuns() argument
31 return (pl_fontRuns *) new FontRuns(initialCapacity); in pl_openEmptyFontRuns()
125 pl_openEmptyValueRuns(le_int32 initialCapacity) in pl_openEmptyValueRuns() argument
127 return (pl_valueRuns *) new ValueRuns(initialCapacity); in pl_openEmptyValueRuns()
244 ULocRuns(le_int32 initialCapacity);
347 ULocRuns::ULocRuns(le_int32 initialCapacity) in ULocRuns() argument
348 : LocaleRuns(initialCapacity), fLocaleNames(NULL) in ULocRuns()
350 if(initialCapacity > 0) { in ULocRuns()
351 fLocaleNames = LE_NEW_ARRAY(const char *, initialCapacity); in ULocRuns()
418 pl_openEmptyLocaleRuns(le_int32 initialCapacity) in pl_openEmptyLocaleRuns() argument
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Duvectr64.cpp35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
41 _init(initialCapacity, status); in UVector64()
46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
48 if (initialCapacity < 1) { in _init()
49 initialCapacity = DEFAULT_CAPACITY; in _init()
51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
52 initialCapacity = maxCapacity; in _init()
54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
44 _init(initialCapacity, status); in UVector32()
49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
51 if (initialCapacity < 1) { in _init()
52 initialCapacity = DEFAULT_CAPACITY; in _init()
54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
55 initialCapacity = maxCapacity; in _init()
57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp21 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
22 UVector(initialCapacity, status) in UStack()
31 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
32 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp42 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
49 _init(initialCapacity, status); in UVector()
62 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument
69 _init(initialCapacity, status); in UVector()
72 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
77 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init()
78 initialCapacity = DEFAULT_CAPACITY; in _init()
80 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
84 capacity = initialCapacity; in _init()
Duvector.h97 UVector(int32_t initialCapacity, UErrorCode &status);
101 UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
266 void _init(int32_t initialCapacity, UErrorCode &status);
301 UStack(int32_t initialCapacity, UErrorCode &status);
305 UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
/third_party/skia/third_party/externals/icu/source/common/
Duvectr64.cpp35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
41 _init(initialCapacity, status); in UVector64()
46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
48 if (initialCapacity < 1) { in _init()
49 initialCapacity = DEFAULT_CAPACITY; in _init()
51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
52 initialCapacity = maxCapacity; in _init()
54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
44 _init(initialCapacity, status); in UVector32()
49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
51 if (initialCapacity < 1) { in _init()
52 initialCapacity = DEFAULT_CAPACITY; in _init()
54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
55 initialCapacity = maxCapacity; in _init()
57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp21 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
22 UVector(initialCapacity, status) in UStack()
31 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
32 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp42 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
49 _init(initialCapacity, status); in UVector()
62 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument
69 _init(initialCapacity, status); in UVector()
72 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
77 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init()
78 initialCapacity = DEFAULT_CAPACITY; in _init()
80 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
84 capacity = initialCapacity; in _init()
Duvector.h97 UVector(int32_t initialCapacity, UErrorCode &status);
101 UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
266 void _init(int32_t initialCapacity, UErrorCode &status);
301 UStack(int32_t initialCapacity, UErrorCode &status);
305 UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
/third_party/node/deps/icu-small/source/common/
Duvectr64.cpp35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
41 _init(initialCapacity, status); in UVector64()
46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
48 if (initialCapacity < 1) { in _init()
49 initialCapacity = DEFAULT_CAPACITY; in _init()
51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
52 initialCapacity = maxCapacity; in _init()
54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
44 _init(initialCapacity, status); in UVector32()
49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
51 if (initialCapacity < 1) { in _init()
52 initialCapacity = DEFAULT_CAPACITY; in _init()
54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
55 initialCapacity = maxCapacity; in _init()
57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp21 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
22 UVector(initialCapacity, status) in UStack()
31 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
32 UVector(d, c, initialCapacity, status) in UStack()
/third_party/icu/icu4c/source/common/
Duvectr64.cpp35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
41 _init(initialCapacity, status); in UVector64()
46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
48 if (initialCapacity < 1) { in _init()
49 initialCapacity = DEFAULT_CAPACITY; in _init()
51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
52 initialCapacity = maxCapacity; in _init()
54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
44 _init(initialCapacity, status); in UVector32()
49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
51 if (initialCapacity < 1) { in _init()
52 initialCapacity = DEFAULT_CAPACITY; in _init()
54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
55 initialCapacity = maxCapacity; in _init()
57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp21 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
22 UVector(initialCapacity, status) in UStack()
31 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
32 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp42 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
49 _init(initialCapacity, status); in UVector()
62 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument
69 _init(initialCapacity, status); in UVector()
72 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
77 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init()
78 initialCapacity = DEFAULT_CAPACITY; in _init()
80 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
84 capacity = initialCapacity; in _init()
Duvector.h97 UVector(int32_t initialCapacity, UErrorCode &status);
101 UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
266 void _init(int32_t initialCapacity, UErrorCode &status);
301 UStack(int32_t initialCapacity, UErrorCode &status);
305 UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
/third_party/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/
DFlexBuffersBenchmark.kt40 var initialCapacity = 1024 variable in com.google.flatbuffers.kotlin.benchmark.FlexBuffersBenchmark
53 val kBuilder = FlexBuffersBuilder(initialCapacity, FlexBuffersBuilder.SHARE_KEYS_AND_STRINGS) in mapKotlin()
76 …val jBuilder = com.google.flatbuffers.FlexBuffersBuilder(ArrayReadWriteBuf(initialCapacity), BUILD… in mapJava()
106 val kBuilder = FlexBuffersBuilder(initialCapacity, FlexBuffersBuilder.SHARE_KEYS_AND_STRINGS) in intArrayKotlin()
114 …val jBuilder = com.google.flatbuffers.FlexBuffersBuilder(ArrayReadWriteBuf(initialCapacity), BUILD… in intArrayJava()
130 val kBuilder = FlexBuffersBuilder(initialCapacity, FlexBuffersBuilder.SHARE_KEYS_AND_STRINGS) in stringArrayKotlin()
140 …val jBuilder = com.google.flatbuffers.FlexBuffersBuilder(ArrayReadWriteBuf(initialCapacity), BUILD… in stringArrayJava()
152 val kBuilder = FlexBuffersBuilder(initialCapacity, FlexBuffersBuilder.SHARE_KEYS_AND_STRINGS) in stringMapKotlin()
169 val kBuilder = FlexBuffersBuilder(initialCapacity, FlexBuffersBuilder.SHARE_KEYS_AND_STRINGS) in stringMapBytIndexKotlin()
184 …val jBuilder = com.google.flatbuffers.FlexBuffersBuilder(ArrayReadWriteBuf(initialCapacity), BUILD… in stringMapJava()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Buffers/
DArrayBufferWriter.cs76 public ArrayBufferWriter(int initialCapacity) in ArrayBufferWriter() argument
78 if (initialCapacity <= 0) in ArrayBufferWriter()
79 throw new ArgumentException(nameof(initialCapacity)); in ArrayBufferWriter()
81 _buffer = new T[initialCapacity]; in ArrayBufferWriter()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DSimpleCache.java37 public SimpleCache(int cacheType, int initialCapacity) { in SimpleCache() argument
41 if (initialCapacity > 0) { in SimpleCache()
42 capacity = initialCapacity; in SimpleCache()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleCache.java33 public SimpleCache(int cacheType, int initialCapacity) { in SimpleCache() argument
37 if (initialCapacity > 0) { in SimpleCache()
38 capacity = initialCapacity; in SimpleCache()
/third_party/icu/icu4c/source/layoutex/layout/
Dplruns.h78 pl_openEmptyFontRuns(le_int32 initialCapacity);
211 pl_openEmptyValueRuns(le_int32 initialCapacity);
343 pl_openEmptyLocaleRuns(le_int32 initialCapacity);

123