Home
last modified time | relevance | path

Searched refs:charCount (Results 1 – 25 of 170) sorted by relevance

1234567

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTUnicode.cpp231 unsigned int charCount = 0; in PVRTUnicodeUTF8Length() local
240 charCount += (unsigned int) (pC - pStart); in PVRTUnicodeUTF8Length()
259 charCount++; in PVRTUnicodeUTF8Length()
262 return charCount; in PVRTUnicodeUTF8Length()
276 unsigned int charCount = 0; in PVRTUnicodeUTF16Length() local
289 charCount++; in PVRTUnicodeUTF16Length()
292 return charCount; in PVRTUnicodeUTF16Length()
/external/icu/icu4c/source/samples/layout/
Dparagraph.cpp82 Paragraph::Paragraph(const LEUnicode chars[], int32_t charCount, const FontRuns *fontRuns, LEErrorC… in Paragraph() argument
103 fChars = LE_NEW_ARRAY(LEUnicode, charCount + 1); in Paragraph()
104 LE_ARRAY_COPY(fChars, chars, charCount); in Paragraph()
105 fChars[charCount] = 0; in Paragraph()
115 pEnd = &fChars[charCount]; in Paragraph()
266 le_int32 charCount; in paragraphFactory() local
267 const UChar *text = UnicodeReader::readFile(fileName, guiSupport, charCount); in paragraphFactory()
276 fontRuns.add(font, charCount); in paragraphFactory()
278 result = new Paragraph(text, charCount, &fontRuns, status); in paragraphFactory()
Dpflow.c111 pf_flow *pf_create(const LEUnicode chars[], le_int32 charCount, const pl_fontRuns *fontRuns, LEErro… in pf_create() argument
152 flow->fChars = NEW_ARRAY(LEUnicode, charCount + 1); in pf_create()
153 LE_ARRAY_COPY(flow->fChars, chars, charCount); in pf_create()
154 flow->fChars[charCount] = 0; in pf_create()
164 pEnd = &flow->fChars[charCount]; in pf_create()
358 le_int32 charCount; in pf_factory() local
359 const UChar *text = uc_readFile(fileName, guiSupport, &charCount); in pf_factory()
369 pl_addFontRun(fontRuns, font, charCount); in pf_factory()
371 result = pf_create(text, charCount, fontRuns, &status); in pf_factory()
DUnicodeReader.cpp30 …st UChar *UnicodeReader::readFile(const char *fileName, GUISupport *guiSupport, int32_t &charCount) in readFile() argument
110 charCount = myText.length(); in readFile()
111 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1); in readFile()
119 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger in readFile()
Ducreader.cpp18 const UChar *uc_readFile(const char *fileName, gs_guiSupport *guiSupport, int32_t *charCount) in uc_readFile() argument
20 return UnicodeReader::readFile(fileName, (GUISupport *) guiSupport, *charCount); in uc_readFile()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DArabicCharacterData.java73 private ArabicCharacterData(int charCount) in ArabicCharacterData() argument
75 records = new Record[charCount]; in ArabicCharacterData()
104 int charCount = characterSet.size(); in factory() local
105 ArabicCharacterData data = new ArabicCharacterData(charCount); in factory()
107 for (int i = 0; i < charCount; i += 1) { in factory()
DCanonicalCharacterData.java170 int charCount = characterSet.size(); in factory() local
173 … System.out.println("There are " + charCount + " characters with a canonical decomposition."); in factory()
175 for (int i = 0; i < charCount; i += 1) { in factory()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DNioZipEncoding.java98 int charCount = 0; in encode() local
100 charCount += !enc.canEncode(cb.get(i)) ? 6 : 1; in encode()
102 int totalExtraSpace = estimateIncrementalEncodingSize(enc, charCount); in encode()
212 private static int estimateIncrementalEncodingSize(CharsetEncoder enc, int charCount) { in estimateIncrementalEncodingSize() argument
213 return (int) Math.ceil(charCount * enc.averageBytesPerChar()); in estimateIncrementalEncodingSize()
/external/icu/icu4c/source/test/letest/
Dcletest.c425 static le_bool getRTL(const LEUnicode *text, le_int32 charCount) in getRTL() argument
430 UBiDi *ubidi = ubidi_openSized(charCount, 0, &status); in getRTL()
432 ubidi_setPara(ubidi, text, charCount, UBIDI_DEFAULT_LTR, NULL, &status); in getRTL()
449 le_int32 charCount, in doTestCase() argument
474 …actual.glyphCount = le_layoutChars(engine, text, 0, charCount, charCount, getRTL(text, charCount),… in doTestCase()
640 le_int32 charCount = LE_ARRAY_SIZE(chars); in GlyphToCharTest() local
653 pl_addFontRun(fontRuns, font, charCount); in GlyphToCharTest()
655 paragraph = pl_create(chars, charCount, fontRuns, NULL, NULL, NULL, 0, FALSE, &status); in GlyphToCharTest()
Dletsutil.cpp87 le_int32 charCount = text.length(); in getRTL() local
89 UBiDi *ubidi = ubidi_openSized(charCount, 0, &status); in getRTL()
91 ubidi_setPara(ubidi, text.getBuffer(), charCount, UBIDI_DEFAULT_LTR, NULL, &status); in getRTL()
Dxmlreader.cpp178 int32_t charCount = 0; in readTestFile() local
212 charCount = text.length(); in readTestFile()
234 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile()
236 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
240 …d, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCount, &expected); in readTestFile()
Dletest.cpp610 int32_t charCount = 0; in DataDrivenTest() local
656 charCount = text.length(); in DataDrivenTest()
687 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in DataDrivenTest()
689 id, charCount, glyphCount, indexCount, positionCount); in DataDrivenTest()
700 …actual.glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0… in DataDrivenTest()
876 le_int32 charCount = LE_ARRAY_SIZE(chars); in GlyphToCharTest() local
886 fontRuns.add(font, charCount); in GlyphToCharTest()
888 …paragraphLayout = new ParagraphLayout(chars, charCount, &fontRuns, NULL, NULL, NULL, 0, FALSE, sta… in GlyphToCharTest()
Dgendata.cpp201 int32_t charCount = 0; in main() local
287 charCount = text.length(); in main()
316 …glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, le… in main()
/external/deqp-deps/glslang/SPIRV/
DspvIR.h115 int charCount = 0; in addStringOperand() local
120 ++charCount; in addStringOperand()
121 if (charCount == 4) { in addStringOperand()
124 charCount = 0; in addStringOperand()
129 if (charCount > 0) { in addStringOperand()
131 for (; charCount < 4; ++charCount) in addStringOperand()
/external/icu/icu4c/source/test/perf/leperf/
Dxmlreader.cpp182 int32_t charCount = 0; in readTestFile() local
216 charCount = text.length(); in readTestFile()
238 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile()
240 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
244 …d, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCount, &expected); in readTestFile()
/external/icu/icu4c/source/test/thaitest/
Dthaitest.cpp113 static const UChar *readFile(char *fileName, int32_t &charCount);
307 const UChar *ThaiWordbreakTest::readFile(char *fileName, int32_t &charCount) in readFile() argument
347 charCount = myText.length(); in readFile()
348 buffer = new UChar[charCount]; in readFile()
355 charCount--; // skip the BOM in readFile()
356 buffer[charCount] = 0; // NULL terminate for easier reading in the debugger in readFile()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DNormalizer2Impl.java206 start+=Character.charCount(c); in append()
210 start+=Character.charCount(c); in append()
361 codePointStart-=Character.charCount(c); in previousCC()
672 while((mapping+=Character.charCount(c2))<limit) { in ensureCanonIterData()
1055 src+=Character.charCount(c); in decompose()
1090 src+=Character.charCount(c); in decomposeAndAppend()
1292 src += Character.charCount(c); in compose()
1298 src += Character.charCount(c); in compose()
1312 prevSrc -= Character.charCount(c); in compose()
1394 prevBoundary -= Character.charCount(c); in composeQuickCheck()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DNormalizer2Impl.java200 start+=Character.charCount(c); in append()
204 start+=Character.charCount(c); in append()
355 codePointStart-=Character.charCount(c); in previousCC()
663 while((mapping+=Character.charCount(c2))<limit) { in ensureCanonIterData()
1046 src+=Character.charCount(c); in decompose()
1081 src+=Character.charCount(c); in decomposeAndAppend()
1283 src += Character.charCount(c); in compose()
1289 src += Character.charCount(c); in compose()
1303 prevSrc -= Character.charCount(c); in compose()
1385 prevBoundary -= Character.charCount(c); in composeQuickCheck()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DShortestCanonicalForm.java127 end = UCharacter.charCount(string.codePointAt(start)); in SubstringIterator()
137 end += UCharacter.charCount(string.codePointAt(end)); in next()
139 start += UCharacter.charCount(string.codePointAt(start)); in next()
141 end = start + UCharacter.charCount(string.codePointAt(start)); in next()
187 for (int i = 0; i < len; i += Character.charCount(cp)) { in normalize()
DUnicodeSetFilteredTransform.java30 for (; i < length; i += Character.charCount(cp)) { in getNextRegion()
42 for (; i < length; i += Character.charCount(cp)) { in getNextRegion()
/external/cldr/tools/java/org/unicode/cldr/tool/
DCLDRFilePseudolocalizer.java82 private int charCount = 0; field in CLDRFilePseudolocalizer.PseudolocalizerXA
180 charCount = 0; in start()
186 int expansion = (charCount + 1) / 2; in end()
210 charCount++; in fragment()
211 index += Character.charCount(codePoint); in fragment()
242 index += Character.charCount(codePoint); in fragment()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DFCDUTF16CollationIterator.java269 p += Character.charCount(c);
283 p += Character.charCount(c);
345 p -= Character.charCount(c);
360 p -= Character.charCount(c);
DFCDIterCollationIterator.java83 pos += Character.charCount(c); in nextCodePoint()
89 pos += Character.charCount(c); in nextCodePoint()
137 pos -= Character.charCount(c); in previousCodePoint()
142 pos -= Character.charCount(c); in previousCodePoint()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DFCDIterCollationIterator.java81 pos += Character.charCount(c); in nextCodePoint()
87 pos += Character.charCount(c); in nextCodePoint()
135 pos -= Character.charCount(c); in previousCodePoint()
140 pos -= Character.charCount(c); in previousCodePoint()
DFCDUTF16CollationIterator.java267 p += Character.charCount(c);
281 p += Character.charCount(c);
343 p -= Character.charCount(c);
358 p -= Character.charCount(c);

1234567