Home
last modified time | relevance | path

Searched refs:cesLength (Results 1 – 14 of 14) sorted by relevance

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationBuilder.java49 cesLength = 0; in CollationBuilder()
112 cesLength = 1; in addReset()
117 cesLength = dataBuilder.getCEs(nfdString, ces, 0); in addReset()
118 if(cesLength > Collation.MAX_EXPANSION_LENGTH) { in addReset()
228 strength = ceStrength(ces[cesLength - 1]); in addReset()
230 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset()
479 assert(cesLength > 0); in addRelation()
480 long ce = ces[cesLength - 1]; in addRelation()
498 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation()
503 int cesLengthBeforeExtension = cesLength; in addRelation()
[all …]
DCollationDataBuilder.java119 void add(CharSequence prefix, CharSequence s, long ces[], int cesLength) { in add() argument
120 int ce32 = encodeCEs(ces, cesLength); in add()
130 int encodeCEs(long ces[], int cesLength) { in encodeCEs() argument
131 if(cesLength < 0 || cesLength > Collation.MAX_EXPANSION_LENGTH) { in encodeCEs()
137 if(cesLength == 0) { in encodeCEs()
141 } else if(cesLength == 1) { in encodeCEs()
143 } else if(cesLength == 2) { in encodeCEs()
163 if(i == cesLength) { in encodeCEs()
164 return encodeExpansion32(newCE32s, 0, cesLength); in encodeCEs()
170 return encodeExpansion(ces, 0, cesLength); in encodeCEs()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationBuilder.java53 cesLength = 0; in CollationBuilder()
116 cesLength = 1; in addReset()
121 cesLength = dataBuilder.getCEs(nfdString, ces, 0); in addReset()
122 if(cesLength > Collation.MAX_EXPANSION_LENGTH) { in addReset()
232 strength = ceStrength(ces[cesLength - 1]); in addReset()
234 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset()
483 assert(cesLength > 0); in addRelation()
484 long ce = ces[cesLength - 1]; in addRelation()
502 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation()
507 int cesLengthBeforeExtension = cesLength; in addRelation()
[all …]
DCollationDataBuilder.java120 void add(CharSequence prefix, CharSequence s, long ces[], int cesLength) { in add() argument
121 int ce32 = encodeCEs(ces, cesLength); in add()
131 int encodeCEs(long ces[], int cesLength) { in encodeCEs() argument
132 if(cesLength < 0 || cesLength > Collation.MAX_EXPANSION_LENGTH) { in encodeCEs()
138 if(cesLength == 0) { in encodeCEs()
142 } else if(cesLength == 1) { in encodeCEs()
144 } else if(cesLength == 2) { in encodeCEs()
164 if(i == cesLength) { in encodeCEs()
165 return encodeExpansion32(newCE32s, 0, cesLength); in encodeCEs()
171 return encodeExpansion(ces, 0, cesLength); in encodeCEs()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationdatabuilder.h98 const int64_t ces[], int32_t cesLength,
107 virtual uint32_t encodeCEs(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode);
165 int32_t getCEs(const UnicodeString &s, int64_t ces[], int32_t cesLength);
167 int64_t ces[], int32_t cesLength);
221 int32_t getCEs(const UnicodeString &s, int32_t start, int64_t ces[], int32_t cesLength);
Dcollationbuilder.cpp211 cesLength(0), in CollationBuilder()
300 cesLength = 1; in addReset()
310 cesLength = dataBuilder->getCEs(nfdString, ces, 0); in addReset()
311 if(cesLength > Collation::MAX_EXPANSION_LENGTH) { in addReset()
429 strength = ceStrength(ces[cesLength - 1]); in addReset()
435 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset()
700 U_ASSERT(cesLength > 0); in addRelation()
701 int64_t ce = ces[cesLength - 1]; in addRelation()
725 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation()
731 int32_t cesLengthBeforeExtension = cesLength; in addRelation()
[all …]
Dcollationdatabuilder.cpp132 int32_t fetchCEs(const UnicodeString &str, int32_t start, int64_t ces[], int32_t cesLength);
172 int64_t ces[], int32_t cesLength) { in fetchCEs() argument
200 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs()
201 ces[cesLength] = ce; in fetchCEs()
203 ++cesLength; in fetchCEs()
207 return cesLength; in fetchCEs()
530 const int64_t ces[], int32_t cesLength, in add() argument
532 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); in add()
656 CollationDataBuilder::encodeCEs(const int64_t ces[], int32_t cesLength, in encodeCEs() argument
659 if(cesLength < 0 || cesLength > Collation::MAX_EXPANSION_LENGTH) { in encodeCEs()
[all …]
Dcollationdata.h61 ce32sLength(0), cesLength(0), contextsLength(0), in CollationData()
199 int32_t cesLength; member
Dusearch.cpp346 pattern->cesLength = offset; in initializePatternCETable()
551 if (U_SUCCESS(*status) && strsrch->pattern.cesLength > 0) { in initialize()
553 int32_t cesize = pattern->cesLength; in initialize()
634 for (int32_t count = 0; count < strsrch->pattern.cesLength; in isBreakUnit()
742 int32_t adjust = pattern->cesLength - patternceindex; in shiftForward()
1022 while (count < strsrch->pattern.cesLength) { in hasAccentsAfterMatch()
1207 int32_t patterncelength = strsrch->pattern.cesLength; in checkNextExactContractionMatch()
1409 int patternceindex = strsrch->pattern.cesLength; in checkCollationMatch()
1610 int32_t celength = strsrch->pattern.cesLength; in doNextCanonicalSuffixMatch()
1850 int32_t patterncelength = strsrch->pattern.cesLength; in checkNextCanonicalContractionMatch()
[all …]
Dcollationdatawriter.cpp190 if(hasMappings && data.cesLength != 0) { in write()
262 if(hasMappings && data.cesLength != 0) { in write()
264 totalSize += data.cesLength * 8; in write()
Dstsearch.cpp312 if (m_strsrch_->pattern.cesLength == 0) { in handleNext()
410 if (m_strsrch_->pattern.cesLength == 0) { in handlePrev()
Dusrchimp.h155 int32_t cesLength; member
Dcollationbuilder.h309 int32_t cesLength; variable
Dcollationdatareader.cpp191 data->cesLength = length / 8; in read()