Home
last modified time | relevance | path

Searched refs:getCapacity (Results 1 – 25 of 119) sorted by relevance

12345

/third_party/icu/icu4c/source/common/
Dcharstr.cpp126 if(sLength>=(buffer.getCapacity()-len)) { in append()
133 sLength>=(buffer.getCapacity()-len) in append()
186 int32_t appendCapacity=buffer.getCapacity()-len-1; // -1 for NUL in getAppendBuffer()
192 resultCapacity=buffer.getCapacity()-len-1; in getAppendBuffer()
225 if(capacity>buffer.getCapacity()) { in ensureCapacity()
227 desiredCapacityHint=capacity+buffer.getCapacity(); in ensureCapacity()
Dlocdispnames.cpp69 buffer, result.getCapacity(), in getDisplayLanguage()
81 buffer, result.getCapacity(), in getDisplayLanguage()
109 buffer, result.getCapacity(), in getDisplayScript()
121 buffer, result.getCapacity(), in getDisplayScript()
149 buffer, result.getCapacity(), in getDisplayCountry()
161 buffer, result.getCapacity(), in getDisplayCountry()
189 buffer, result.getCapacity(), in getDisplayVariant()
201 buffer, result.getCapacity(), in getDisplayVariant()
229 buffer, result.getCapacity(), in getDisplayName()
241 buffer, result.getCapacity(), in getDisplayName()
Dunistr_case.cpp123 capacity = getCapacity(); in caseMap()
203 getArrayStart(), getCapacity(), in caseMap()
/third_party/node/deps/icu-small/source/common/
Dcharstr.cpp126 if(sLength>=(buffer.getCapacity()-len)) { in append()
133 sLength>=(buffer.getCapacity()-len) in append()
186 int32_t appendCapacity=buffer.getCapacity()-len-1; // -1 for NUL in getAppendBuffer()
192 resultCapacity=buffer.getCapacity()-len-1; in getAppendBuffer()
225 if(capacity>buffer.getCapacity()) { in ensureCapacity()
227 desiredCapacityHint=capacity+buffer.getCapacity(); in ensureCapacity()
Dlocdispnames.cpp69 buffer, result.getCapacity(), in getDisplayLanguage()
81 buffer, result.getCapacity(), in getDisplayLanguage()
109 buffer, result.getCapacity(), in getDisplayScript()
121 buffer, result.getCapacity(), in getDisplayScript()
149 buffer, result.getCapacity(), in getDisplayCountry()
161 buffer, result.getCapacity(), in getDisplayCountry()
189 buffer, result.getCapacity(), in getDisplayVariant()
201 buffer, result.getCapacity(), in getDisplayVariant()
229 buffer, result.getCapacity(), in getDisplayName()
241 buffer, result.getCapacity(), in getDisplayName()
Dunistr_case.cpp123 capacity = getCapacity(); in caseMap()
203 getArrayStart(), getCapacity(), in caseMap()
/third_party/skia/third_party/externals/icu/source/common/
Dcharstr.cpp126 if(sLength>=(buffer.getCapacity()-len)) { in append()
133 sLength>=(buffer.getCapacity()-len) in append()
186 int32_t appendCapacity=buffer.getCapacity()-len-1; // -1 for NUL in getAppendBuffer()
192 resultCapacity=buffer.getCapacity()-len-1; in getAppendBuffer()
225 if(capacity>buffer.getCapacity()) { in ensureCapacity()
227 desiredCapacityHint=capacity+buffer.getCapacity(); in ensureCapacity()
Dlocdispnames.cpp69 buffer, result.getCapacity(), in getDisplayLanguage()
81 buffer, result.getCapacity(), in getDisplayLanguage()
109 buffer, result.getCapacity(), in getDisplayScript()
121 buffer, result.getCapacity(), in getDisplayScript()
149 buffer, result.getCapacity(), in getDisplayCountry()
161 buffer, result.getCapacity(), in getDisplayCountry()
189 buffer, result.getCapacity(), in getDisplayVariant()
201 buffer, result.getCapacity(), in getDisplayVariant()
229 buffer, result.getCapacity(), in getDisplayName()
241 buffer, result.getCapacity(), in getDisplayName()
/third_party/node/deps/icu-small/source/i18n/
Dformatted_string_builder.cpp41 for (int32_t i=0; i<getCapacity(); i++) { in FormattedStringBuilder()
71 int32_t capacity = other.getCapacity(); in operator =()
144 fZero = getCapacity() / 2; in clear()
267 U_ASSERT(getCapacity() - fZero >= fLength); in prepareForInsert()
276 } else if (index == fLength && count <= getCapacity() - fZero - fLength) { in prepareForInsert()
287 int32_t oldCapacity = getCapacity(); in prepareForInsertHelper()
363 U_ASSERT(index <= getCapacity() - fZero); in remove()
Dpluralranges.cpp93 if (fTriplesLen > result.fTriples.getCapacity()) { in copy()
115 U_ASSERT(fTriplesLen < fTriples.getCapacity()); in addPluralRange()
122 if (length > fTriples.getCapacity()) { in setCapacity()
Dsortkey.cpp65 (count > getCapacity() && reallocate(count, 0) == nullptr)) { in CollationKey()
86 if (length > getCapacity() && reallocate(length, 0) == nullptr) { in CollationKey()
159 if (length > getCapacity() && reallocate(length, 0) == nullptr) { in operator =()
Dformattedval_sbimpl.cpp296 U_ASSERT(spanIndices.getCapacity() >= spanIndicesCount); in appendSpanInfo()
297 if (spanIndices.getCapacity() == spanIndicesCount) { in appendSpanInfo()
309 U_ASSERT(spanIndices.getCapacity() >= spanIndicesCount); in prependSpanInfo()
310 if (spanIndices.getCapacity() == spanIndicesCount) { in prependSpanInfo()
Dcollationkeys.cpp128 if(len < buffer.getCapacity() || ensureCapacity(1)) { in appendByte()
139 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendWeight16()
152 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendWeight32()
172 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendReverseWeight16()
187 int32_t newCapacity = 2 * buffer.getCapacity(); in ensureCapacity()
/third_party/icu/icu4c/source/i18n/
Dformatted_string_builder.cpp41 for (int32_t i=0; i<getCapacity(); i++) { in FormattedStringBuilder()
71 int32_t capacity = other.getCapacity(); in operator =()
144 fZero = getCapacity() / 2; in clear()
267 U_ASSERT(getCapacity() - fZero >= fLength); in prepareForInsert()
276 } else if (index == fLength && count <= getCapacity() - fZero - fLength) { in prepareForInsert()
287 int32_t oldCapacity = getCapacity(); in prepareForInsertHelper()
363 U_ASSERT(index <= getCapacity() - fZero); in remove()
Dpluralranges.cpp93 if (fTriplesLen > result.fTriples.getCapacity()) { in copy()
115 U_ASSERT(fTriplesLen < fTriples.getCapacity()); in addPluralRange()
122 if (length > fTriples.getCapacity()) { in setCapacity()
Dsortkey.cpp65 (count > getCapacity() && reallocate(count, 0) == NULL)) { in CollationKey()
86 if (length > getCapacity() && reallocate(length, 0) == NULL) { in CollationKey()
159 if (length > getCapacity() && reallocate(length, 0) == NULL) { in operator =()
Dformattedval_sbimpl.cpp296 U_ASSERT(spanIndices.getCapacity() >= spanIndicesCount); in appendSpanInfo()
297 if (spanIndices.getCapacity() == spanIndicesCount) { in appendSpanInfo()
309 U_ASSERT(spanIndices.getCapacity() >= spanIndicesCount); in prependSpanInfo()
310 if (spanIndices.getCapacity() == spanIndicesCount) { in prependSpanInfo()
Dcollationkeys.cpp128 if(len < buffer.getCapacity() || ensureCapacity(1)) { in appendByte()
139 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendWeight16()
152 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendWeight32()
172 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendReverseWeight16()
187 int32_t newCapacity = 2 * buffer.getCapacity(); in ensureCapacity()
/third_party/skia/third_party/externals/icu/source/i18n/
Dpluralranges.cpp93 if (fTriplesLen > result.fTriples.getCapacity()) { in copy()
115 U_ASSERT(fTriplesLen < fTriples.getCapacity()); in addPluralRange()
122 if (length > fTriples.getCapacity()) { in setCapacity()
Dsortkey.cpp65 (count > getCapacity() && reallocate(count, 0) == NULL)) { in CollationKey()
86 if (length > getCapacity() && reallocate(length, 0) == NULL) { in CollationKey()
159 if (length > getCapacity() && reallocate(length, 0) == NULL) { in operator =()
Dformatted_string_builder.cpp40 for (int32_t i=0; i<getCapacity(); i++) { in FormattedStringBuilder()
70 int32_t capacity = other.getCapacity(); in operator =()
143 fZero = getCapacity() / 2; in clear()
263 } else if (index == fLength && fZero + fLength + count < getCapacity()) { in prepareForInsert()
274 int32_t oldCapacity = getCapacity(); in prepareForInsertHelper()
Dformattedval_sbimpl.cpp286 U_ASSERT(spanIndices.getCapacity() >= spanValue); in appendSpanInfo()
287 if (spanIndices.getCapacity() == spanValue) { in appendSpanInfo()
299 U_ASSERT(spanIndices.getCapacity() >= spanValue); in prependSpanInfo()
300 if (spanIndices.getCapacity() == spanValue) { in prependSpanInfo()
Dcollationkeys.cpp128 if(len < buffer.getCapacity() || ensureCapacity(1)) { in appendByte()
139 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendWeight16()
152 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendWeight32()
172 if((len + appendLength) <= buffer.getCapacity() || ensureCapacity(appendLength)) { in appendReverseWeight16()
187 int32_t newCapacity = 2 * buffer.getCapacity(); in ensureCapacity()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DFormattedStringBuilder.java111 zero = getCapacity() / 2;
315 } else if (index == length && zero + length + count < getCapacity()) {
328 int oldCapacity = getCapacity();
394 private int getCapacity() {
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedStringBuilder.java125 zero = getCapacity() / 2;
329 } else if (index == length && zero + length + count < getCapacity()) {
342 int oldCapacity = getCapacity();
408 private int getCapacity() {

12345