Home
last modified time | relevance | path

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

12

/external/icu4c/layout/
DCanonShaping.cpp34 void CanonShaping::reorderMarks(const LEUnicode *inChars, le_int32 charCount, le_bool rightToLeft, in reorderMarks() argument
39 le_int32 *combiningClasses = LE_NEW_ARRAY(le_int32, charCount); in reorderMarks()
40 le_int32 *indices = LE_NEW_ARRAY(le_int32, charCount); in reorderMarks()
44 for (i = 0; i < charCount; i += 1) { in reorderMarks()
49 for (i = 0; i < charCount; i += 1) { in reorderMarks()
53 for (mark = i; mark < charCount; mark += 1) { in reorderMarks()
66 out = charCount - 1; in reorderMarks()
70 for (i = 0; i < charCount; i += 1, out += dir) { in reorderMarks()
DArabicShaping.cpp123 void ArabicShaping::shape(const LEUnicode *chars, le_int32 offset, le_int32 charCount, le_int32 cha… in shape() argument
153 for (i = offset + charCount; i < charMax; i += 1) { in shape()
168 out = charCount - 1; in shape()
169 erout = charCount; in shape()
173 for (in = offset, e = offset + charCount; in < e; in += 1, out += dir) { in shape()
DKhmerReordering.h117 static le_int32 reorder(const LEUnicode *theChars, le_int32 charCount, le_int32 scriptCode,
126 …able(const KhmerClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount);
DTibetanReordering.h136 static le_int32 reorder(const LEUnicode *theChars, le_int32 charCount, le_int32 scriptCode,
145 …le(const TibetanClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount);
DKhmerReordering.cpp336 …lable(const KhmerClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) in findSyllable() argument
341 while (cursor < charCount) { in findSyllable()
359 le_int32 KhmerReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32 /*scriptCode… in reorder() argument
371 while (prev < charCount) { in reorder()
372 le_int32 syllable = findSyllable(classTable, chars, prev, charCount); in reorder()
DTibetanReordering.cpp299 …ble(const TibetanClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) in findSyllable() argument
304 while (cursor < charCount) { in findSyllable()
322 le_int32 TibetanReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32, in reorder() argument
333 while (prev < charCount) { in reorder()
334 le_int32 syllable = findSyllable(classTable, chars, prev, charCount); in reorder()
DMPreFixups.cpp19 MPreFixups::MPreFixups(le_int32 charCount) in MPreFixups() argument
22 fFixupData = LE_NEW_ARRAY(FixupData, charCount); in MPreFixups()
DIndicReordering.cpp597 …lable(const IndicClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) in findSyllable() argument
603 while (cursor < charCount) { in findSyllable()
625 le_int32 IndicReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32 scriptCode, in reorder() argument
637 mpreFixups = new MPreFixups(charCount); in reorder()
648 while (prev < charCount) { in reorder()
649 le_int32 syllable = findSyllable(classTable, chars, prev, charCount); in reorder()
1068 le_int32 IndicReordering::v2process(const LEUnicode *chars, le_int32 charCount, le_int32 scriptCode, in v2process() argument
1080 while (beginSyllable < charCount) { in v2process()
1081 le_int32 nextSyllable = findSyllable(classTable, chars, beginSyllable, charCount); in v2process()
DIndicReordering.h150 static le_int32 reorder(const LEUnicode *theChars, le_int32 charCount, le_int32 scriptCode,
156 static le_int32 v2process(const LEUnicode *theChars, le_int32 charCount, le_int32 scriptCode,
173 …able(const IndicClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount);
DMPreFixups.h27 MPreFixups(le_int32 charCount);
/external/icu4c/samples/layout/
Dparagraph.cpp76 Paragraph::Paragraph(const LEUnicode chars[], int32_t charCount, const FontRuns *fontRuns, LEErrorC… in Paragraph() argument
97 fChars = LE_NEW_ARRAY(LEUnicode, charCount + 1); in Paragraph()
98 LE_ARRAY_COPY(fChars, chars, charCount); in Paragraph()
99 fChars[charCount] = 0; in Paragraph()
109 pEnd = &fChars[charCount]; in Paragraph()
255 le_int32 charCount; in paragraphFactory() local
256 const UChar *text = UnicodeReader::readFile(fileName, guiSupport, charCount); in paragraphFactory()
265 fontRuns.add(font, charCount); in paragraphFactory()
267 result = new Paragraph(text, charCount, &fontRuns, status); in paragraphFactory()
Dpflow.c108 pf_flow *pf_create(const LEUnicode chars[], le_int32 charCount, const pl_fontRuns *fontRuns, LEErro… in pf_create() argument
149 flow->fChars = NEW_ARRAY(LEUnicode, charCount + 1); in pf_create()
150 LE_ARRAY_COPY(flow->fChars, chars, charCount); in pf_create()
151 flow->fChars[charCount] = 0; in pf_create()
161 pEnd = &flow->fChars[charCount]; in pf_create()
355 le_int32 charCount; in pf_factory() local
356 const UChar *text = uc_readFile(fileName, guiSupport, &charCount); in pf_factory()
366 pl_addFontRun(fontRuns, font, charCount); in pf_factory()
368 result = pf_create(text, charCount, fontRuns, &status); in pf_factory()
DUnicodeReader.cpp26 …st UChar *UnicodeReader::readFile(const char *fileName, GUISupport *guiSupport, int32_t &charCount) in readFile() argument
106 charCount = myText.length(); in readFile()
107 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1); in readFile()
115 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger in readFile()
Ducreader.cpp15 const UChar *uc_readFile(const char *fileName, gs_guiSupport *guiSupport, int32_t *charCount) in uc_readFile() argument
17 return UnicodeReader::readFile(fileName, (GUISupport *) guiSupport, *charCount); in uc_readFile()
Ducreader.h15 const UChar *uc_readFile(const char *fileName, gs_guiSupport *guiSupport, int32_t *charCount);
DUnicodeReader.h28 static const UChar *readFile(const char *fileName, GUISupport *guiSupport, int32_t &charCount);
/external/icu4c/test/letest/
Dcletest.c421 static le_bool getRTL(const LEUnicode *text, le_int32 charCount) in getRTL() argument
426 UBiDi *ubidi = ubidi_openSized(charCount, 0, &status); in getRTL()
428 ubidi_setPara(ubidi, text, charCount, UBIDI_DEFAULT_LTR, NULL, &status); in getRTL()
445 le_int32 charCount, in doTestCase() argument
470 …actual.glyphCount = le_layoutChars(engine, text, 0, charCount, charCount, getRTL(text, charCount),… in doTestCase()
635 le_int32 charCount = LE_ARRAY_SIZE(chars); in GlyphToCharTest() local
648 pl_addFontRun(fontRuns, font, charCount); in GlyphToCharTest()
650 paragraph = pl_create(chars, charCount, fontRuns, NULL, NULL, NULL, 0, FALSE, &status); in GlyphToCharTest()
Dletsutil.cpp83 le_int32 charCount = text.length(); in getRTL() local
85 UBiDi *ubidi = ubidi_openSized(charCount, 0, &status); in getRTL()
87 ubidi_setPara(ubidi, text.getBuffer(), charCount, UBIDI_DEFAULT_LTR, NULL, &status); in getRTL()
Dxmlreader.cpp176 int32_t charCount = 0; in readTestFile() local
210 charCount = text.length(); in readTestFile()
232 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in readTestFile()
234 id, charCount, glyphCount, indexCount, positionCount); in readTestFile()
238 …d, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCount, &expected); in readTestFile()
Dgendata.cpp156 int32_t charCount = 0; in main() local
229 charCount = text.length(); in main()
257 …glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, le… in main()
Dletest.cpp607 int32_t charCount = 0; in DataDrivenTest() local
653 charCount = text.length(); in DataDrivenTest()
684 … if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) { in DataDrivenTest()
686 id, charCount, glyphCount, indexCount, positionCount); in DataDrivenTest()
697 …actual.glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0… in DataDrivenTest()
871 le_int32 charCount = LE_ARRAY_SIZE(chars); in GlyphToCharTest() local
881 fontRuns.add(font, charCount); in GlyphToCharTest()
883 …paragraphLayout = new ParagraphLayout(chars, charCount, &fontRuns, NULL, NULL, NULL, 0, FALSE, sta… in GlyphToCharTest()
Dxmlreader.h20 le_int32 charCount,
/external/icu4c/test/thaitest/
Dthaitest.cpp111 static const UChar *readFile(char *fileName, int32_t &charCount);
305 const UChar *ThaiWordbreakTest::readFile(char *fileName, int32_t &charCount) in readFile() argument
345 charCount = myText.length(); in readFile()
346 buffer = new UChar[charCount]; in readFile()
353 charCount--; // skip the BOM in readFile()
354 buffer[charCount] = 0; // NULL terminate for easier reading in the debugger in readFile()
/external/icu4c/test/perf/ubrkperf/
Dubrkperfold.cpp689 int32_t charCount = 0; in main() local
716 text[charCount++] = c; in main()
717 if(charCount == bufSize) { in main()
729 printf("file \"%s\", %d charCount code units.\n", opt_fName, charCount); in main()
732 textSize = charCount; in main()
/external/icu4c/samples/ucnv/
Dconvsamp.cpp407 …UChar32 charCount = 0x10000; /* increase this if you want to handle non bmp.. todo: automatical… in convsample_06() local
421 info = (CharFreqInfo*)malloc(sizeof(CharFreqInfo) * charCount); in convsample_06()
424 … fprintf(stderr, " Couldn't allocate %d bytes for freq counter\n", sizeof(CharFreqInfo)*charCount); in convsample_06()
428 for(p=0;p<charCount;p++) in convsample_06()
473 if(p>charCount) in convsample_06()
493 for(p=0;p<charCount;p++) in convsample_06()

12