Lines Matching defs:length
50 * Context strings sort by prefix length, then by prefix, then by contraction suffix.
63 inline UBool hasContext() const { return context.length() > 1; }
69 * Otherwise one unit with the length of the prefix string,
194 while(U_SUCCESS(errorCode) && pos < s->length()) {
235 if(pos == s->length()) {
379 // (We could additionally require a minimum range length of, say, 16.)
517 int32_t length = ce64s.size();
518 for(int32_t i = 0; i < length; ++i) {
522 return length;
527 int32_t length = ce32s.size();
528 for(int32_t i = 0; i < length; ++i) {
532 return length;
576 UBool hasContext = !prefix.isEmpty() || s.length() > cLength;
590 if (s.length() == 2) {
657 if (s.length() > cLength) {
659 for (int32_t i = 0; i < s.length(); ++i) {
706 UnicodeString context((UChar)prefix.length());
824 CollationDataBuilder::encodeExpansion(const int64_t ces[], int32_t length, UErrorCode &errorCode) {
828 int32_t ce64sMax = ce64s.size() - length;
836 if(j == length) {
838 Collation::EXPANSION_TAG, i, length);
850 for(int32_t j = 0; j < length; ++j) {
853 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION_TAG, i, length);
857 CollationDataBuilder::encodeExpansion32(const int32_t newCE32s[], int32_t length,
862 int32_t ce32sMax = ce32s.size() - length;
870 if(j == length) {
872 Collation::EXPANSION32_TAG, i, length);
884 for(int32_t j = 0; j < length; ++j) {
887 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION32_TAG, i, length);
903 int32_t length = Collation::lengthFromCE32(ce32);
905 reinterpret_cast<const int32_t *>(baseCE32s), length, errorCode);
910 int32_t length = Collation::lengthFromCE32(ce32);
911 ce32 = encodeExpansion(baseCEs, length, errorCode);
937 context.insert(0, (UChar)context.length());
990 U_ASSERT(context.length() > 1);
1001 int32_t suffixStart = context.length();
1044 int32_t length = Collation::lengthFromCE32(ce32);
1048 for(int32_t i = 0; i < length; ++i) {
1067 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode);
1070 reinterpret_cast<const int32_t *>(srcCE32s), length, errorCode);
1075 int32_t length = Collation::lengthFromCE32(ce32);
1079 for(int32_t i = 0; i < length; ++i) {
1097 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode);
1099 ce32 = dest.encodeExpansion(srcCEs, length, errorCode);
1428 data.contextsLength = contexts.length();
1508 int32_t suffixStart = prefixLength + 1; // == prefix.length()
1509 if(lastCond->context.length() == suffixStart) {
1520 if(firstCond->context.length() == suffixStart) {
1536 int32_t length = cond->prefixLength();
1537 if(length == prefixLength) { break; }
1539 (length==0 || prefix.endsWith(cond->context, 1, length))) {
1556 fcd16 = nfcImpl.getFCD16(suffix.char32At(suffix.length() - 1));
1562 for (int32_t i = 0; i < suffix.length();) {
1595 prefix.remove(0, 1); // Remove the length unit.
1621 index = contexts.length();
1639 int32_t length = fastLatinBuilder->lengthOfTable();
1640 if(base != NULL && length == base->fastLatinTableLength &&
1641 uprv_memcmp(table, base->fastLatinTable, length * 2) == 0) {
1648 data.fastLatinTableLength = length;
1663 int32_t prefixLength = prefix.length();