Home
last modified time | relevance | path

Searched refs:spanLength (Results 1 – 20 of 20) 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.cpp655 int32_t spanStart, spanLength; in findIndex() local
658 spanLength = oldLength_; in findIndex()
661 spanLength = newLength_; in findIndex()
678 spanLength = findSource ? oldLength_ : newLength_; in findIndex()
682 int32_t len = num * spanLength; in findIndex()
684 int32_t n = ((spanStart - i - 1) / spanLength) + 1; in findIndex()
703 } else if (i < (spanStart + spanLength)) { in findIndex()
710 spanLength = oldLength_; in findIndex()
713 spanLength = newLength_; in findIndex()
715 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/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/gdiff/
DGdiffTest.java139 for (int spanLength = 1; spanLength <= 246; spanLength++) { in testInlineDataCommands()
141 byte[] data = new byte[spanLength]; in testInlineDataCommands()
142 random.setSeed(spanLength); in testInlineDataCommands()
150 int patchLength = 5 + 1 + spanLength + 1; in testInlineDataCommands()
153 patch[5] = (byte) spanLength; in testInlineDataCommands()
154 System.arraycopy(data, 0, patch, 6, spanLength); in testInlineDataCommands()
155 patch[6 + spanLength] = 0; // EOF in testInlineDataCommands()
165 Assert.assertEquals(spanLength, outputLength); in testInlineDataCommands()
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/gdiff/
DGdiff.java193 int spanLength = (copyLength < COPY_BUFFER_SIZE) ? copyLength : COPY_BUFFER_SIZE; in copyFromPatch() local
194 patchDataStream.readFully(buffer, 0, spanLength); in copyFromPatch()
195 output.write(buffer, 0, spanLength); in copyFromPatch()
196 copyLength -= spanLength; in copyFromPatch()
224 int spanLength = (copyLength < COPY_BUFFER_SIZE) ? copyLength : COPY_BUFFER_SIZE; in copyFromOriginal() local
225 inputFile.readFully(buffer, 0, spanLength); in copyFromOriginal()
226 output.write(buffer, 0, spanLength); in copyFromOriginal()
227 copyLength -= spanLength; in copyFromOriginal()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNormalizer2.java210 int spanLength=spanQuickCheckYes(src); in normalize() local
211 if(spanLength==src.length()) { in normalize()
214 if (spanLength != 0) { in normalize()
215 StringBuilder sb=new StringBuilder(src.length()).append(src, 0, spanLength); in normalize()
216 … 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/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/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.cpp2539 … int32_t spanLength=containsSpanUTF16(set, s+matchLimit, length-matchLimit, in containsSpanUTF16() local
2541 if((matchLimit+spanLength)>maxSpanLimit) { in containsSpanUTF16()
2542 maxSpanLimit=matchLimit+spanLength; in containsSpanUTF16()
2738 … int32_t spanLength=containsSpanUTF8(set, s+matchLimit, length-matchLimit, in containsSpanUTF8() local
2740 if((matchLimit+spanLength)>maxSpanLimit) { in containsSpanUTF8()
2741 maxSpanLimit=matchLimit+spanLength; in containsSpanUTF8()