Home
last modified time | relevance | path

Searched refs:numChars (Results 1 - 25 of 32) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/breakiter/
H A DCharsDictionaryMatcher.java33 // TODO: should numChars count Character.charCount? in matches()
34 int numChars = 1; in matches()
42 lengths[count] = numChars; in matches()
53 if (numChars >= maxLength) { in matches()
60 ++numChars; in matches()
64 return numChars; in matches()
H A DBytesDictionaryMatcher.java54 // TODO: should numChars count Character.charCount() ? in matches()
55 int numChars = 1; in matches()
63 lengths[count] = numChars; in matches()
73 if (numChars >= maxLength) { in matches()
81 ++numChars; in matches()
85 return numChars; in matches()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DCharsDictionaryMatcher.java33 // TODO: should numChars count Character.charCount? in matches()
34 int numChars = 1; in matches()
42 lengths[count] = numChars; in matches()
53 if (numChars >= maxLength) { in matches()
60 ++numChars; in matches()
64 return numChars; in matches()
H A DBytesDictionaryMatcher.java54 // TODO: should numChars count Character.charCount() ? in matches()
55 int numChars = 1; in matches()
63 lengths[count] = numChars; in matches()
73 if (numChars >= maxLength) { in matches()
81 ++numChars; in matches()
85 return numChars; in matches()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A 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/qrcodegen/c/
H A 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 in testMakeNumeric()
[all...]
H A 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, &bitLen); 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()
843 // - Returns -1 on failure, i.e. numChars > INT16_MAX or
846 // - For byte mode, numChars measures the number of bytes, not Unicode code points.
847 // - For ECI mode, numChars must be 0, and the worst-case number of bits is returned.
849 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars) { in calcSegmentBitLength() argument
992 int numChars = segs[i].numChars; getTotalBits() local
[all...]
H A Dqrcodegen.h116 int numChars; member
124 // The character count (numChars) must agree with the mode and the bit buffer length.
324 * - Returns SIZE_MAX on failure, i.e. numChars > INT16_MAX or the internal
328 * - For byte mode, numChars measures the number of bytes, not Unicode code points.
329 * - For ECI mode, numChars must be 0, and the worst-case number of bytes is returned.
332 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars);
H A Dqrcodegen-demo.c251 seg.numChars = (int)len; in doSegmentDemo()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
H A 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/
H A 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()
[all...]
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
H A DQrSegment.java201 public final int numChars; field in QrSegment
224 numChars = numCh; in QrSegment()
249 if (seg.numChars >= (1 << ccbits)) in getTotalBits()
/third_party/lzma/CPP/Windows/
H A DRegistry.cpp355 size_t numChars = 0; in SetValue_Strings() local
360 numChars += strings[i].Len() + 1; in SetValue_Strings()
362 CObjArray<wchar_t> buffer(numChars); in SetValue_Strings()
372 return SetValue(valueName, buffer, (UInt32)numChars * sizeof(wchar_t)); in SetValue_Strings()
389 size_t numChars = dataSize / sizeof(wchar_t); in GetValue_Strings() local
393 for (size_t i = 0; i < numChars; i++) in GetValue_Strings()
H A DPropVariant.cpp26 HRESULT PropVarEm_Alloc_Bstr(PROPVARIANT *p, unsigned numChars) throw() in PropVarEm_Alloc_Bstr() argument
28 p->bstrVal = ::SysAllocStringLen(NULL, numChars); in PropVarEm_Alloc_Bstr()
179 BSTR CPropVariant::AllocBstr(unsigned numChars) in AllocBstr() argument
185 bstrVal = ::SysAllocStringLen(NULL, numChars); in AllocBstr()
H A DPropVariant.h17 HRESULT PropVarEm_Alloc_Bstr(PROPVARIANT *p, unsigned numChars) throw();
159 BSTR AllocBstr(unsigned numChars);
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
H A DQrSegment.java226 public final int numChars; field in QrSegment
253 numChars = numCh; in QrSegment()
267 if (seg.numChars >= (1 << ccbits)) in getTotalBits()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A 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/lzma/C/Util/7z/
H A D7zMain.c185 const unsigned numChars = (unsigned)WideCharToMultiByte( in Utf16_To_Char() local
187 if (numChars == 0 || numChars >= size) in Utf16_To_Char()
189 buf->data[numChars] = 0; in Utf16_To_Char()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
H A DFontInfo.java249 public static int numChars(Font font) { in numChars() method in FontInfo
250 int numChars = 0; in numChars()
257 numChars++; in numChars()
261 return numChars; in numChars()
347 int nonUnicodeCount = numChars(font) - totalCount; in listCharBlockCoverage()
H A DFontInfoMain.java188 "Total number of characters with valid glyphs: %d", FontInfo.numChars(font))); in main()
/third_party/qrcodegen/cpp/
H A Dqrcodegen.cpp163 numChars(numCh), in QrSegment()
172 numChars(numCh), in QrSegment()
183 if (seg.numChars >= (1L << ccbits)) in getTotalBits()
221 return numChars; in getNumChars()
H A Dqrcodegen.hpp160 private: int numChars; member in qrcodegen::final
/third_party/lzma/CPP/Common/
H A DMyString.cpp128 int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufSize, 0, 0); in MyCharUpper_WIN() local
129 if (numChars == 0 || numChars > kBufSize) in MyCharUpper_WIN()
131 s[numChars] = 0; in MyCharUpper_WIN()
133 ::MultiByteToWideChar(CP_ACP, 0, s, numChars, &c, 1); in MyCharUpper_WIN()
145 int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufSize, 0, 0);
146 if (numChars == 0 || numChars > kBufSize)
148 s[numChars] = 0;
150 ::MultiByteToWideChar(CP_ACP, 0, s, numChars,
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DUCharacterProperty.java1499 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty()
1500 if(numChars > 0) { in UCharacterProperty()
1501 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DUCharacterProperty.java1479 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty()
1480 if(numChars > 0) { in UCharacterProperty()
1481 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()

Completed in 25 milliseconds

12