Searched defs:charCount (Results 1 - 25 of 50) sorted by relevance

12

/external/icu/icu4c/source/samples/layout/
H A Ducreader.cpp15 const UChar *uc_readFile(const char *fileName, gs_guiSupport *guiSupport, int32_t *charCount) argument
17 return UnicodeReader::readFile(fileName, (GUISupport *) guiSupport, *charCount);
H A DUnicodeReader.cpp26 const UChar *UnicodeReader::readFile(const char *fileName, GUISupport *guiSupport, int32_t &charCount) argument
106 charCount = myText.length();
107 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1);
115 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger
H A Dparagraph.cpp76 Paragraph::Paragraph(const LEUnicode chars[], int32_t charCount, const FontRuns *fontRuns, LEErrorCode &status) argument
97 fChars = LE_NEW_ARRAY(LEUnicode, charCount + 1);
98 LE_ARRAY_COPY(fChars, chars, charCount);
99 fChars[charCount] = 0;
109 pEnd = &fChars[charCount];
260 le_int32 charCount; local
261 const UChar *text = UnicodeReader::readFile(fileName, guiSupport, charCount);
270 fontRuns.add(font, charCount);
272 result = new Paragraph(text, charCount, &fontRuns, status);
H A Dpflow.c108 pf_flow *pf_create(const LEUnicode chars[], le_int32 charCount, const pl_fontRuns *fontRuns, LEErrorCode *status) argument
149 flow->fChars = NEW_ARRAY(LEUnicode, charCount + 1);
150 LE_ARRAY_COPY(flow->fChars, chars, charCount);
151 flow->fChars[charCount] = 0;
161 pEnd = &flow->fChars[charCount];
355 le_int32 charCount; local
356 const UChar *text = uc_readFile(fileName, guiSupport, &charCount);
366 pl_addFontRun(fontRuns, font, charCount);
368 result = pf_create(text, charCount, fontRuns, &status);
/external/icu/icu4c/source/i18n/
H A Ddigitaffix.cpp23 const UChar *value, int32_t charCount, int32_t fieldId)
24 : fAffix(value, charCount),
25 fAnnotations(charCount, (UChar) fieldId, charCount) {
66 DigitAffix::append(const UChar *value, int32_t charCount, int32_t fieldId) { argument
67 fAffix.append(value, charCount);
70 for (int32_t i = 0; i < charCount; ++i) {
22 DigitAffix( const UChar *value, int32_t charCount, int32_t fieldId) argument
H A Dpluralaffix.cpp57 const UChar *value, int32_t charCount, int32_t fieldId) {
61 current->append(value, charCount, fieldId);
56 append( const UChar *value, int32_t charCount, int32_t fieldId) argument
/external/caliper/examples/src/main/java/examples/
H A DUtf8Benchmark.java92 @Param({"65536"}) int charCount; field in class:Utf8Benchmark
104 for (int j = 0; j < charCount; j++) {
/external/icu/icu4c/source/layout/
H A DCanonShaping.cpp34 void CanonShaping::reorderMarks(const LEUnicode *inChars, le_int32 charCount, le_bool rightToLeft, argument
40 le_int32 *combiningClasses = LE_NEW_ARRAY(le_int32, charCount);
41 le_int32 *indices = LE_NEW_ARRAY(le_int32, charCount);
44 for (i = 0; i < charCount; i += 1) {
49 for (i = 0; i < charCount; i += 1) {
53 for (mark = i; mark < charCount; mark += 1) {
66 out = charCount - 1;
70 for (i = 0; i < charCount; i += 1, out += dir) {
H A DMPreFixups.cpp19 MPreFixups::MPreFixups(le_int32 charCount) argument
22 fFixupData = LE_NEW_ARRAY(FixupData, charCount);
H A DThaiShaping.cpp265 le_int32 ThaiShaping::compose(const LEUnicode *input, le_int32 offset, le_int32 charCount, le_uint8 glyphSet, argument
275 for (inputIndex = 0; inputIndex < charCount; inputIndex += 1) {
H A DArabicShaping.cpp125 void ArabicShaping::shape(const LEUnicode *chars, le_int32 offset, le_int32 charCount, le_int32 charMax, argument
155 for (i = offset + charCount; i < charMax; i += 1) {
170 out = charCount - 1;
171 erout = charCount;
175 for (in = offset, e = offset + charCount; in < e; in += 1, out += dir) {
H A DKhmerReordering.cpp336 le_int32 KhmerReordering::findSyllable(const KhmerClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) argument
341 while (cursor < charCount) {
359 le_int32 KhmerReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32 /*scriptCode*/, argument
371 while (prev < charCount) {
372 le_int32 syllable = findSyllable(classTable, chars, prev, charCount);
H A DLayoutEngine.cpp423 void LayoutEngine::adjustMarkGlyphs(const LEUnicode chars[], le_int32 charCount, le_bool reverse, LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success) argument
447 for (p = 0; p < charCount; p += 1, c += direction) {
H A DTibetanReordering.cpp299 le_int32 TibetanReordering::findSyllable(const TibetanClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) argument
304 while (cursor < charCount) {
322 le_int32 TibetanReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32, argument
333 while (prev < charCount) {
334 le_int32 syllable = findSyllable(classTable, chars, prev, charCount);
/external/icu/icu4c/source/test/letest/
H A Dletsutil.cpp85 le_int32 charCount = text.length(); local
87 UBiDi *ubidi = ubidi_openSized(charCount, 0, &status);
89 ubidi_setPara(ubidi, text.getBuffer(), charCount, UBIDI_DEFAULT_LTR, NULL, &status);
H A Dxmlreader.cpp176 int32_t charCount = 0; local
210 charCount = text.length();
232 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
233 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
234 id, charCount, glyphCount, indexCount, positionCount);
238 (*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCount, &expected);
H A Dcletest.c423 static le_bool getRTL(const LEUnicode *text, le_int32 charCount) argument
428 UBiDi *ubidi = ubidi_openSized(charCount, 0, &status);
430 ubidi_setPara(ubidi, text, charCount, UBIDI_DEFAULT_LTR, NULL, &status);
447 le_int32 charCount,
472 actual.glyphCount = le_layoutChars(engine, text, 0, charCount, charCount, getRTL(text, charCount), 0, 0, &status);
638 le_int32 charCount = LE_ARRAY_SIZE(chars); local
651 pl_addFontRun(fontRuns, font, charCount);
653 paragraph = pl_create(chars, charCount, fontRun
440 doTestCase(const char *testID, const char *fontName, const char *fontVersion, const char *fontChecksum, le_int32 scriptCode, le_int32 languageCode, const LEUnicode *text, le_int32 charCount, TestResult *expected) argument
[all...]
H A Dgendata.cpp199 int32_t charCount = 0; local
285 charCount = text.length();
314 glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, leStatus);
/external/guava/guava-tests/benchmark/com/google/common/base/
H A DUtf8Benchmark.java87 @Param({"16384"}) int charCount; field in class:Utf8Benchmark
105 for (int j = 0; j < charCount; j++) {
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
H A DArabicCharacterData.java71 private ArabicCharacterData(int charCount) argument
73 records = new Record[charCount];
102 int charCount = characterSet.size();
103 ArabicCharacterData data = new ArabicCharacterData(charCount);
105 for (int i = 0; i < charCount; i += 1) {
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
H A DChecker.java133 public int checkBuffer(char[] theBuffer, int charCount) argument
136 bufMax = charCount;
/external/icu/icu4c/source/test/perf/leperf/
H A Dxmlreader.cpp176 int32_t charCount = 0; local
210 charCount = text.length();
232 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
233 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
234 id, charCount, glyphCount, indexCount, positionCount);
238 (*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCount, &expected);
/external/icu/icu4c/source/test/thaitest/
H A Dthaitest.cpp109 // charCount - set to the number of UChars read from the file
111 static const UChar *readFile(char *fileName, int32_t &charCount);
305 const UChar *ThaiWordbreakTest::readFile(char *fileName, int32_t &charCount) argument
345 charCount = myText.length();
346 buffer = new UChar[charCount];
353 charCount--; // skip the BOM
354 buffer[charCount] = 0; // NULL terminate for easier reading in the debugger
/external/skia/tests/
H A DFontHostTest.cpp78 int charCount; member in struct:CharsToGlyphs_TestData
101 face->charsToGlyphs(test.chars, test.typefaceEncoding, faceGlyphIds, test.charCount);
103 for (int i = 0; i < test.charCount; ++i) {
/external/icu/icu4c/source/samples/ucnv/
H A Dconvsamp.cpp401 UChar32 charCount = 0x10000; /* increase this if you want to handle non bmp.. todo: automatically bump it.. */ local
415 info = (CharFreqInfo*)malloc(sizeof(CharFreqInfo) * charCount);
418 fprintf(stderr, " Couldn't allocate %d bytes for freq counter\n", sizeof(CharFreqInfo)*charCount);
422 for(p=0;p<charCount;p++)
465 if(p>charCount)
486 // qsort(info, charCount, sizeof(info[0]), charfreq_compare);
488 for(p=0;p<charCount;p++)

Completed in 3727 milliseconds

12