Home
last modified time | relevance | path

Searched refs:spanLength (Results 1 – 18 of 18) sorted by relevance

/external/icu/icu4c/source/common/
Dunisetspan.cpp197 makeSpanLengthByte(int32_t spanLength) { in makeSpanLengthByte() argument
199 return spanLength<0xfe ? (uint8_t)spanLength : (uint8_t)0xfe; in makeSpanLengthByte()
228 int32_t i, spanLength; in UnicodeSetStringSpan() local
235 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
236 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
314 spanLength=spanSet.span(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
315 if(spanLength<length16) { // Relevant string. in UnicodeSetStringSpan()
319 spanLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
322 spanLength=length16-spanSet.spanBack(s16, length16, USET_SPAN_CONTAINED); in UnicodeSetStringSpan()
323 spanBackLengths[i]=makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
[all …]
Dfilterednormalizer2.cpp67 int32_t spanLength=spanLimit-prevSpanLimit; in normalize() local
69 if(spanLength!=0) { in normalize()
70 dest.append(src, prevSpanLimit, spanLength); in normalize()
74 if(spanLength!=0) { in normalize()
109 int32_t spanLength = set.spanUTF8(src, length, spanCondition); in normalizeUTF8() local
111 if (spanLength != 0) { in normalizeUTF8()
113 edits->addUnchanged(spanLength); in normalizeUTF8()
116 sink.Append(src, spanLength); in normalizeUTF8()
121 if (spanLength != 0) { in normalizeUTF8()
124 norm2.normalizeUTF8(options, StringPiece(src, spanLength), sink, edits, errorCode); in normalizeUTF8()
[all …]
Dedits.cpp656 int32_t spanStart, spanLength; in findIndex() local
659 spanLength = oldLength_; in findIndex()
662 spanLength = newLength_; in findIndex()
679 spanLength = findSource ? oldLength_ : newLength_; in findIndex()
683 int32_t len = num * spanLength; in findIndex()
685 int32_t n = ((spanStart - i - 1) / spanLength) + 1; in findIndex()
704 } else if (i < (spanStart + spanLength)) { in findIndex()
711 spanLength = oldLength_; in findIndex()
714 spanLength = newLength_; in findIndex()
716 if (i < (spanStart + spanLength)) { in findIndex()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUnicodeSetStringSpan.java114 int i, spanLength; in UnicodeSetStringSpan() local
120 spanLength = spanSet.span(string, SpanCondition.CONTAINED); in UnicodeSetStringSpan()
121 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
164 spanLength = spanSet.span(string, SpanCondition.CONTAINED); in UnicodeSetStringSpan()
165 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
169 spanLengths[i] = makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
172 spanLength = length16 in UnicodeSetStringSpan()
174 spanLengths[spanBackLengthsOffset + i] = makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
399 int spanLength = spanLimit - start; in spanWithStrings() local
419 if (overlap > spanLength) { in spanWithStrings()
[all …]
DBMPSet.java226 int spanLength = i - start; in span() local
227 outCount.value = spanLength - numSupplementary; // number of code points in span()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUnicodeSetStringSpan.java110 int i, spanLength; in UnicodeSetStringSpan() local
116 spanLength = spanSet.span(string, SpanCondition.CONTAINED); in UnicodeSetStringSpan()
117 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
160 spanLength = spanSet.span(string, SpanCondition.CONTAINED); in UnicodeSetStringSpan()
161 if (spanLength < length16) { // Relevant string. in UnicodeSetStringSpan()
165 spanLengths[i] = makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
168 spanLength = length16 in UnicodeSetStringSpan()
170 spanLengths[spanBackLengthsOffset + i] = makeSpanLengthByte(spanLength); in UnicodeSetStringSpan()
395 int spanLength = spanLimit - start; in spanWithStrings() local
415 if (overlap > spanLength) { in spanWithStrings()
[all …]
DBMPSet.java224 int spanLength = i - start; in span() local
225 outCount.value = spanLength - numSupplementary; // number of code points in span()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNormalizer2.java222 int spanLength=spanQuickCheckYes(src); in normalize() local
223 if(spanLength==src.length()) { in normalize()
226 if (spanLength != 0) { in normalize()
227 StringBuilder sb=new StringBuilder(src.length()).append(src, 0, spanLength); in normalize()
228 … return normalizeSecondAndAppend(sb, src.subSequence(spanLength, src.length())).toString(); in normalize()
DEdits.java591 int spanStart, spanLength; in findIndex() local
594 spanLength = oldLength_; in findIndex()
597 spanLength = newLength_; in findIndex()
613 spanLength = findSource ? oldLength_ : newLength_; in findIndex()
617 int len = num * spanLength; in findIndex()
619 int n = ((spanStart - i - 1) / spanLength) + 1; in findIndex()
638 } else if (i < (spanStart + spanLength)) { in findIndex()
645 spanLength = oldLength_; in findIndex()
648 spanLength = newLength_; in findIndex()
650 if (i < (spanStart + spanLength)) { in findIndex()
[all …]
DFilteredNormalizer2.java235 int spanLength=spanLimit-prevSpanLimit; in normalize() local
237 if(spanLength!=0) { in normalize()
242 if(spanLength!=0) { in normalize()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizer2.java212 int spanLength=spanQuickCheckYes(src); in normalize() local
213 if(spanLength==src.length()) { in normalize()
216 if (spanLength != 0) { in normalize()
217 StringBuilder sb=new StringBuilder(src.length()).append(src, 0, spanLength); in normalize()
218 … return normalizeSecondAndAppend(sb, src.subSequence(spanLength, src.length())).toString(); in normalize()
DEdits.java578 int spanStart, spanLength; in findIndex() local
581 spanLength = oldLength_; in findIndex()
584 spanLength = newLength_; in findIndex()
600 spanLength = findSource ? oldLength_ : newLength_; in findIndex()
604 int len = num * spanLength; in findIndex()
606 int n = ((spanStart - i - 1) / spanLength) + 1; in findIndex()
625 } else if (i < (spanStart + spanLength)) { in findIndex()
632 spanLength = oldLength_; in findIndex()
635 spanLength = newLength_; in findIndex()
637 if (i < (spanStart + spanLength)) { in findIndex()
[all …]
DFilteredNormalizer2.java221 int spanLength=spanLimit-prevSpanLimit; in normalize() local
223 if(spanLength!=0) { in normalize()
228 if(spanLength!=0) { in normalize()
/external/deqp/modules/gles3/functional/
Des3fColorClearTest.cpp188 int spanLength = (targetWidth - x); in iterate() local
198 spanLength = deMin32(spanLength, op.m_rect.x() + op.m_rect.z() - x); in iterate()
213 spanLength = deMin32(spanLength, op.m_rect.x() - x); in iterate()
221 for (int ndx = 0; ndx < spanLength; ndx++) in iterate()
227 x += spanLength; in iterate()
/external/deqp/modules/gles2/functional/
Des2fColorClearTest.cpp188 int spanLength = (targetWidth - x); in iterate() local
198 spanLength = deMin32(spanLength, op.m_rect.x() + op.m_rect.z() - x); in iterate()
213 spanLength = deMin32(spanLength, op.m_rect.x() - x); in iterate()
221 for (int ndx = 0; ndx < spanLength; ndx++) in iterate()
227 x += spanLength; in iterate()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetStringSpanTest.java247 int spanLength = containsSpanUTF16(set, s.substring(matchLimit), in containsSpanUTF16() local
249 if ((matchLimit + spanLength) > maxSpanLimit) { in containsSpanUTF16()
250 maxSpanLimit = matchLimit + spanLength; in containsSpanUTF16()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetStringSpanTest.java244 int spanLength = containsSpanUTF16(set, s.substring(matchLimit), in containsSpanUTF16() local
246 if ((matchLimit + spanLength) > maxSpanLimit) { in containsSpanUTF16()
247 maxSpanLimit = matchLimit + spanLength; in containsSpanUTF16()
/external/icu/icu4c/source/test/intltest/
Dusettest.cpp2545 … int32_t spanLength=containsSpanUTF16(set, s+matchLimit, length-matchLimit, in containsSpanUTF16() local
2547 if((matchLimit+spanLength)>maxSpanLimit) { in containsSpanUTF16()
2548 maxSpanLimit=matchLimit+spanLength; in containsSpanUTF16()
2744 … int32_t spanLength=containsSpanUTF8(set, s+matchLimit, length-matchLimit, in containsSpanUTF8() local
2746 if((matchLimit+spanLength)>maxSpanLimit) { in containsSpanUTF8()
2747 maxSpanLimit=matchLimit+spanLength; in containsSpanUTF8()