Home
last modified time | relevance | path

Searched refs:textLength (Results 1 – 25 of 91) sorted by relevance

1234

/external/icu/icu4c/source/common/
Dchariter.cpp24 : textLength(0), pos(0), begin(0), end(0) { in CharacterIterator()
28 : textLength(length), pos(0), begin(0), end(length) { in CharacterIterator()
29 if(textLength < 0) { in CharacterIterator()
30 textLength = end = 0; in CharacterIterator()
35 : textLength(length), pos(position), begin(0), end(length) { in CharacterIterator()
36 if(textLength < 0) { in CharacterIterator()
37 textLength = end = 0; in CharacterIterator()
47 : textLength(length), pos(position), begin(textBegin), end(textEnd) { in CharacterIterator()
48 if(textLength < 0) { in CharacterIterator()
49 textLength = 0; in CharacterIterator()
[all …]
Dsimpleformatter.cpp77 int32_t textLength = 0; in applyPatternMinMaxArguments() local
99 if (textLength > 0) { in applyPatternMinMaxArguments()
100 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments()
101 (UChar)(ARG_NUM_LIMIT + textLength)); in applyPatternMinMaxArguments()
102 textLength = 0; in applyPatternMinMaxArguments()
136 if (textLength == 0) { in applyPatternMinMaxArguments()
141 if (++textLength == MAX_SEGMENT_LENGTH) { in applyPatternMinMaxArguments()
142 textLength = 0; in applyPatternMinMaxArguments()
145 if (textLength > 0) { in applyPatternMinMaxArguments()
146 compiledPattern.setCharAt(compiledPattern.length() - textLength - 1, in applyPatternMinMaxArguments()
[all …]
Dubrk.cpp37 int32_t textLength, in ubrk_open() argument
83 ubrk_setText(uBI, text, textLength, status); in ubrk_open()
100 int32_t textLength, in ubrk_openRules() argument
117 ubrk_setText(uBI, text, textLength, status); in ubrk_openRules()
125 const UChar * text, int32_t textLength, in ubrk_openBinaryRules() argument
141 ubrk_setText(uBI, text, textLength, status); in ubrk_openBinaryRules()
188 int32_t textLength, in ubrk_setText() argument
192 utext_openUChars(&ut, text, textLength, status); in ubrk_setText()
Dunistr.cpp215 int32_t textLength) { in UnicodeString() argument
217 doAppend(text, 0, textLength); in UnicodeString()
222 int32_t textLength) { in UnicodeString() argument
228 } else if(textLength < -1 || in UnicodeString()
229 (textLength == -1 && !isTerminated) || in UnicodeString()
230 (textLength >= 0 && isTerminated && text[textLength] != 0) in UnicodeString()
234 if(textLength == -1) { in UnicodeString()
236 textLength = u_strlen(text); in UnicodeString()
238 setArray(const_cast<UChar *>(text), textLength, in UnicodeString()
239 isTerminated ? textLength + 1 : textLength); in UnicodeString()
[all …]
Dusc_impl.cpp43 int32_t textLength; member
252 scriptRun->textLength = length; in uscript_setRunText()
263 if (scriptRun == NULL || scriptRun->scriptLimit >= scriptRun->textLength) { in uscript_nextRun()
270 …iptStart = scriptRun->scriptLimit; scriptRun->scriptLimit < scriptRun->textLength; scriptRun->scri… in uscript_nextRun()
280 … if (high >= 0xD800 && high <= 0xDBFF && scriptRun->scriptLimit < scriptRun->textLength - 1) { in uscript_nextRun()
Duchriter.cpp81 && textLength == realThat.textLength in operator ==()
89 return ustr_hashUCharsN(text, textLength) ^ pos ^ begin ^ end; in hashCode()
358 end = textLength = newTextLength; in setText()
364 result = UnicodeString(text, textLength); in getText()
/external/fonttools/Lib/fontTools/ttLib/tables/
DT_S_I__1.py25 for i, (glyphID, textLength, textOffset) in enumerate(indices):
33 if textLength < 0x8000:
37 elif textLength == 0x8000:
65 textLength = nextTextOffset - textOffset
69 "%r textLength (%d) must not be > 32768" % (name, textLength))
70 text = data[textOffset:textOffset+textLength]
71 assert len(text) == textLength
97 textLength = len(text)
98 if textLength >= 0x8000:
99 textLength = 0x8000
[all …]
DT_S_I__0.py15 def fixlongs(glyphID, textLength, textOffset): argument
16 return int(glyphID), int(textLength), textOffset
28 glyphID, textLength, textOffset = fixlongs(*struct.unpack(tsi0Format, data[:size]))
29 indices.append((glyphID, textLength, textOffset))
42 for index, textLength, textOffset in self.indices:
43 data = data + struct.pack(tsi0Format, index, textLength, textOffset)
45 for index, textLength, textOffset in self.extra_indices:
46 data = data + struct.pack(tsi0Format, index, textLength, textOffset)
/external/harfbuzz_ng/src/
Dhb-directwrite.cc282 TextAnalysis (const wchar_t* text, uint32_t textLength, in TextAnalysis() argument
284 : mText (text), mTextLength (textLength), mLocaleName (localeName), in TextAnalysis()
326 OUT uint32_t* textLength) in GetTextAtPosition() argument
332 *textLength = 0; in GetTextAtPosition()
337 *textLength = mTextLength - textPosition; in GetTextAtPosition()
345 OUT uint32_t* textLength) in GetTextBeforePosition() argument
352 *textLength = 0; in GetTextBeforePosition()
357 *textLength = textPosition; in GetTextBeforePosition()
365 IFACEMETHODIMP GetLocaleName (uint32_t textPosition, uint32_t* textLength, in GetLocaleName() argument
371 OUT uint32_t* textLength, in GetNumberSubstitution() argument
[all …]
/external/icu/icu4c/source/i18n/
Dsearch.cpp38 m_search_->textLength = other.m_search_->textLength; in SearchIterator()
161 m_search_->textLength = m_text_.length(); in setText()
192 m_search_->textLength == that.m_search_->textLength && in operator ==()
195 m_search_->textLength * sizeof(UChar)) == 0)); in operator ==()
224 setOffset(m_search_->textLength, status); in last()
225 return handlePrev(m_search_->textLength, status); in last()
246 int32_t textlength = m_search_->textLength; in next()
288 offset = m_search_->textLength; in previous()
357 m_search_->textLength = 0; in SearchIterator()
376 m_search_->textLength = text.length(); in SearchIterator()
[all …]
Dutrans.cpp440 int32_t* textLength, in utrans_transUChars() argument
453 int32_t textLen = (textLength == NULL || *textLength < 0) in utrans_transUChars()
454 ? u_strlen(text) : *textLength; in utrans_transUChars()
463 if(textLength != NULL) { in utrans_transUChars()
464 *textLength = textLen; in utrans_transUChars()
471 int32_t* textLength, in utrans_transIncrementalUChars() argument
483 int32_t textLen = (textLength == NULL || *textLength < 0) in utrans_transIncrementalUChars()
484 ? u_strlen(text) : *textLength; in utrans_transIncrementalUChars()
493 if(textLength != NULL) { in utrans_transIncrementalUChars()
494 *textLength = textLen; in utrans_transIncrementalUChars()
Dunum.cpp364 int32_t textLength, in parseRes() argument
371 const UnicodeString src((UBool)(textLength == -1), text, textLength); in parseRes()
392 int32_t textLength, in unum_parse() argument
397 parseRes(res, fmt, text, textLength, parsePos, status); in unum_parse()
404 int32_t textLength, in unum_parseInt64() argument
409 parseRes(res, fmt, text, textLength, parsePos, status); in unum_parseInt64()
416 int32_t textLength, in unum_parseDouble() argument
421 parseRes(res, fmt, text, textLength, parsePos, status); in unum_parseDouble()
428 int32_t textLength, in unum_parseDecimal() argument
442 parseRes(res, fmt, text, textLength, parsePos, status); in unum_parseDecimal()
[all …]
Ducoleitr.cpp276 int32_t textLength, in ucol_openElements() argument
282 if (coll == NULL || (text == NULL && textLength != 0)) { in ucol_openElements()
292 UnicodeString s((UBool)(textLength < 0), text, textLength); in ucol_openElements()
480 int32_t textLength, in ucol_setText() argument
487 if ((text == NULL && textLength != 0)) { in ucol_setText()
491 UnicodeString s((UBool)(textLength < 0), text, textLength); in ucol_setText()
Dusearch.cpp298 uint32_t patternlength = pattern->textLength; in initializePatternCETable()
310 ucol_setText(coleiter, pattern->text, pattern->textLength, status); in initializePatternCETable()
370 uint32_t patternlength = pattern->textLength; in initializePatternPCETable()
381 ucol_setText(coleiter, pattern->text, pattern->textLength, status); in initializePatternPCETable()
442 int32_t length = pattern->textLength; in initializePattern()
706 int32_t textlength = strsrch->search->textLength; in getNextUStringSearchBaseOffset()
774 setColEIterOffset(strsrch->textIter, strsrch->search->textLength); in setMatchNotFound()
960 strsrch->search->textLength) > 0xFF; in hasAccentsBeforeMatch()
971 strsrch->search->textLength) & LAST_BYTE_MASK_) { in hasAccentsBeforeMatch()
1008 int32_t textlength = strsrch->search->textLength; in hasAccentsAfterMatch()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimpleFormatterImpl.java91 int textLength = 0; in compileToStringMinMaxArguments() local
113 if (textLength > 0) { in compileToStringMinMaxArguments()
114 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
115 textLength = 0; in compileToStringMinMaxArguments()
151 if (textLength == 0) { in compileToStringMinMaxArguments()
156 if (++textLength == MAX_SEGMENT_LENGTH) { in compileToStringMinMaxArguments()
157 textLength = 0; in compileToStringMinMaxArguments()
160 if (textLength > 0) { in compileToStringMinMaxArguments()
161 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java89 int textLength = 0; in compileToStringMinMaxArguments() local
111 if (textLength > 0) { in compileToStringMinMaxArguments()
112 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
113 textLength = 0; in compileToStringMinMaxArguments()
149 if (textLength == 0) { in compileToStringMinMaxArguments()
154 if (++textLength == MAX_SEGMENT_LENGTH) { in compileToStringMinMaxArguments()
155 textLength = 0; in compileToStringMinMaxArguments()
158 if (textLength > 0) { in compileToStringMinMaxArguments()
159 sb.setCharAt(sb.length() - textLength - 1, (char)(ARG_NUM_LIMIT + textLength)); in compileToStringMinMaxArguments()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java390 int textLength = getAssociatedTextLength(); in calculateMac() local
391 if (textLength < ((1 << 16) - (1 << 8))) in calculateMac()
393 cMac.update((byte)(textLength >> 8)); in calculateMac()
394 cMac.update((byte)textLength); in calculateMac()
402 cMac.update((byte)(textLength >> 24)); in calculateMac()
403 cMac.update((byte)(textLength >> 16)); in calculateMac()
404 cMac.update((byte)(textLength >> 8)); in calculateMac()
405 cMac.update((byte)textLength); in calculateMac()
419 extra = (extra + textLength) % 16; in calculateMac()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java392 int textLength = getAssociatedTextLength(); in calculateMac() local
393 if (textLength < ((1 << 16) - (1 << 8))) in calculateMac()
395 cMac.update((byte)(textLength >> 8)); in calculateMac()
396 cMac.update((byte)textLength); in calculateMac()
404 cMac.update((byte)(textLength >> 24)); in calculateMac()
405 cMac.update((byte)(textLength >> 16)); in calculateMac()
406 cMac.update((byte)(textLength >> 8)); in calculateMac()
407 cMac.update((byte)textLength); in calculateMac()
421 extra = (extra + textLength) % 16; in calculateMac()
/external/icu/libandroidicu/include/unicode/
Dubrk.h245 int32_t textLength,
267 int32_t textLength,
293 const UChar * text, int32_t textLength,
374 int32_t textLength,
Dunum.h741 int32_t textLength,
767 int32_t textLength,
793 int32_t textLength,
828 int32_t textLength,
856 int32_t textLength,
885 int32_t textLength,
/external/icu/icu4c/source/common/unicode/
Dubrk.h245 int32_t textLength,
267 int32_t textLength,
293 const UChar * text, int32_t textLength,
374 int32_t textLength,
/external/replicaisland/src/com/replica/replicaisland/
DConversationDialogActivity.java98 int textLength = text.length(); in formatPages() local
107 int fittingChars = paint.breakText(text, currentOffset, textLength, true, maxWidth, null); in formatPages()
109 if (currentOffset + fittingChars < textLength) { in formatPages()
122 currentOffset = textLength; in formatPages()
125 if (lineCount >= maxLinesPerPage || currentOffset >= textLength) { in formatPages()
141 } while (currentOffset < textLength); in formatPages()
/external/icu/icu4c/source/i18n/unicode/
Dunum.h741 int32_t textLength,
767 int32_t textLength,
793 int32_t textLength,
828 int32_t textLength,
856 int32_t textLength,
885 int32_t textLength,
Ducoleitr.h115 int32_t textLength,
207 int32_t textLength,
/external/icu/icu4c/source/io/
Dustdio.cpp133 int32_t textLength; in u_file_translit() local
187 textLength = f->fTranslit->length; in u_file_translit()
189 pos.contextLimit = textLength; in u_file_translit()
191 pos.limit = textLength; in u_file_translit()
195 &textLength, in u_file_translit()
210 textLength = f->fTranslit->length; in u_file_translit()
215 &textLength, in u_file_translit()

1234