Home
last modified time | relevance | path

Searched refs:numChars (Results 1 – 25 of 34) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DCharsDictionaryMatcher.java34 int numChars = 1; in matches() local
42 lengths[count] = numChars; in matches()
53 if (numChars >= maxLength) { in matches()
60 ++numChars; in matches()
64 return numChars; in matches()
DBytesDictionaryMatcher.java55 int numChars = 1; in matches() local
63 lengths[count] = numChars; in matches()
73 if (numChars >= maxLength) { in matches()
81 ++numChars; in matches()
85 return numChars; in matches()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsDictionaryMatcher.java33 int numChars = 1; in matches() local
41 lengths[count] = numChars; in matches()
52 if (numChars >= maxLength) { in matches()
59 ++numChars; in matches()
63 return numChars; in matches()
DBytesDictionaryMatcher.java54 int numChars = 1; in matches() local
62 lengths[count] = numChars; in matches()
72 if (numChars >= maxLength) { in matches()
80 ++numChars; in matches()
84 return numChars; in matches()
/third_party/qrcodegen/c/
Dqrcodegen-test.c60 int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars);
725 size_t numChars; in testCalcSegmentBitLength() member
753 assert(calcSegmentBitLength(qrcodegen_Mode_NUMERIC, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
782 assert(calcSegmentBitLength(qrcodegen_Mode_ALPHANUMERIC, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
808 assert(calcSegmentBitLength(qrcodegen_Mode_BYTE, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
835 assert(calcSegmentBitLength(qrcodegen_Mode_KANJI, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
850 assert(seg.numChars == 0); in testMakeBytes()
858 assert(seg.numChars == 1); in testMakeBytes()
867 assert(seg.numChars == 3); in testMakeBytes()
881 assert(seg.numChars == 0); in testMakeNumeric()
[all …]
Dqrcodegen.c84 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars);
155 seg.numChars = (int)textLen; in qrcodegen_encodeText()
177 seg.numChars = (int)dataLen; in qrcodegen_encodeBinary()
236 …appendBitsToBuffer((unsigned int)seg->numChars, numCharCountBits(seg->mode, version), qrcode, &bit… in qrcodegen_encodeSegmentsAdvanced()
832 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars) { in qrcodegen_calcSegmentBufferSize() argument
833 int temp = calcSegmentBitLength(mode, numChars); in qrcodegen_calcSegmentBufferSize()
849 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars) { in calcSegmentBitLength() argument
851 if (numChars > (unsigned int)INT16_MAX) in calcSegmentBitLength()
853 long result = (long)numChars; in calcSegmentBitLength()
862 else if (mode == qrcodegen_Mode_ECI && numChars == 0) in calcSegmentBitLength()
[all …]
Dqrcodegen.h116 int numChars; member
332 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars);
Dqrcodegen-demo.c251 seg.numChars = (int)len; in doSegmentDemo()
/third_party/flutter/skia/third_party/externals/sdl/Xcode-iOS/Demos/src/
Dkeyboard.c20 static int numChars = 0; /* number of characters we've typed so far */ variable
152 getPositionForCharNumber(numChars, &x, &y); in drawIndex()
183 if (numChars > 0) { in backspace()
184 getPositionForCharNumber(numChars, &x, &y); in backspace()
186 numChars--; in backspace()
187 getPositionForCharNumber(numChars, &x, &y); in backspace()
281 numChars++; in main()
287 numChars++; in main()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DImmutableStringBuilder.cpp46 int numChars = snprintf(mData + mPos, mMaxLength - mPos, "%d", u); in appendDecimal() local
47 ASSERT(numChars >= 0); in appendDecimal()
48 ASSERT(mPos + numChars <= mMaxLength); in appendDecimal()
49 mPos += numChars; in appendDecimal()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DImmutableStringBuilder.cpp46 int numChars = snprintf(mData + mPos, mMaxLength - mPos, "%d", u); in appendDecimal() local
47 ASSERT(numChars >= 0); in appendDecimal()
48 ASSERT(mPos + numChars <= mMaxLength); in appendDecimal()
49 mPos += numChars; in appendDecimal()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
DCMapFormat10.java18 private final int numChars; field in CMapFormat10
23 this.numChars = this.data.readUShort(Offset.format10NumChars.offset); in CMapFormat10()
28 if (character < startCharCode || character >= (startCharCode + numChars)) { in glyphId()
53 if (character < startCharCode + numChars) { in hasNext()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
DCMapFormat10.java18 private final int numChars; field in CMapFormat10
23 this.numChars = this.data.readUShort(Offset.format10NumChars.offset); in CMapFormat10()
28 if (character < startCharCode || character >= (startCharCode + numChars)) { in glyphId()
53 if (character < startCharCode + numChars) { in hasNext()
/third_party/icu/icu4c/source/test/perf/dicttrieperf/
Ddicttrieperf.cpp362 int32_t numChars=1; in ucharsTrieMatches() local
368 lengths[count++]=numChars; // CompactTrieDictionary just counts chars too. in ucharsTrieMatches()
376 if(numChars>=textLimit) { in ucharsTrieMatches()
387 ++numChars; in ucharsTrieMatches()
403 return numChars; in ucharsTrieMatches()
556 int32_t numChars=1; in bytesTrieMatches() local
562 lengths[count++]=numChars; // CompactTrieDictionary just counts chars too. in bytesTrieMatches()
570 if(numChars>=textLimit) { in bytesTrieMatches()
577 ++numChars; in bytesTrieMatches()
580 return numChars; in bytesTrieMatches()
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrSegment.java201 public final int numChars; field in QrSegment
224 numChars = numCh; in QrSegment()
249 if (seg.numChars >= (1 << ccbits)) in getTotalBits()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DUtilsD3D12.cpp33 int numChars = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, len, nullptr, 0); in ConvertStringToWstring() local
34 if (numChars == 0) { in ConvertStringToWstring()
38 result.resize(numChars); in ConvertStringToWstring()
40 MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, len, &result[0], numChars); in ConvertStringToWstring()
41 if (numConvertedChars != numChars) { in ConvertStringToWstring()
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrSegment.java226 public final int numChars; field in QrSegment
253 numChars = numCh; in QrSegment()
267 if (seg.numChars >= (1 << ccbits)) in getTotalBits()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java249 public static int numChars(Font font) { in numChars() method in FontInfo
250 int numChars = 0; in numChars() local
257 numChars++; in numChars()
261 return numChars; in numChars()
347 int nonUnicodeCount = numChars(font) - totalCount; in listCharBlockCoverage()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java249 public static int numChars(Font font) { in numChars() method in FontInfo
250 int numChars = 0; in numChars() local
257 numChars++; in numChars()
261 return numChars; in numChars()
347 int nonUnicodeCount = numChars(font) - totalCount; in listCharBlockCoverage()
DFontInfoMain.java188 "Total number of characters with valid glyphs: %d", FontInfo.numChars(font))); in main()
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts120 appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);
852 public readonly numChars: int,
857 if (numChars < 0)
877 if (seg.numChars >= (1 << ccbits))
/third_party/qrcodegen/cpp/
Dqrcodegen.cpp163 numChars(numCh), in QrSegment()
172 numChars(numCh), in QrSegment()
183 if (seg.numChars >= (1L << ccbits)) in getTotalBits()
221 return numChars; in getNumChars()
Dqrcodegen.hpp160 private: int numChars; member in qrcodegen::QrSegment
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterProperty.java1478 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty() local
1479 if(numChars > 0) { in UCharacterProperty()
1480 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DUCharacterProperty.java1479 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty() local
1480 if(numChars > 0) { in UCharacterProperty()
1481 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()

12