Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCjkBreakEngine.java106 int numChars = 0; in divideUpDictionaryRange() local
114 numChars++; in divideUpDictionaryRange()
115 charPositions[numChars] = index; in divideUpDictionaryRange()
126 numChars++; in divideUpDictionaryRange()
128 charPositions[numChars] = index; in divideUpDictionaryRange()
134 int[] bestSnlp = new int[numChars + 1]; in divideUpDictionaryRange()
136 for (int i = 1; i <= numChars; i++) { in divideUpDictionaryRange()
140 int[] prev = new int[numChars + 1]; in divideUpDictionaryRange()
141 for (int i = 0; i <= numChars; i++) { in divideUpDictionaryRange()
146 int values[] = new int[numChars]; in divideUpDictionaryRange()
[all …]
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()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCjkBreakEngine.java105 int numChars = 0; in divideUpDictionaryRange() local
113 numChars++; in divideUpDictionaryRange()
114 charPositions[numChars] = index; in divideUpDictionaryRange()
125 numChars++; in divideUpDictionaryRange()
127 charPositions[numChars] = index; in divideUpDictionaryRange()
133 int[] bestSnlp = new int[numChars + 1]; in divideUpDictionaryRange()
135 for (int i = 1; i <= numChars; i++) { in divideUpDictionaryRange()
139 int[] prev = new int[numChars + 1]; in divideUpDictionaryRange()
140 for (int i = 0; i <= numChars; i++) { in divideUpDictionaryRange()
145 int values[] = new int[numChars]; in divideUpDictionaryRange()
[all …]
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()
/external/lzma/CPP/Common/
DStringConvert.cpp17 int numChars = MultiByteToWideChar(codePage, 0, srcString, in MultiByteToUnicodeString() local
20 if (numChars == 0) in MultiByteToUnicodeString()
22 resultString.ReleaseBuffer(numChars); in MultiByteToUnicodeString()
45 unsigned numChars = MultiByteToWideChar(codePage, 0, sp + i, in MultiByteToUnicodeString2() local
48 if (numChars == 0) in MultiByteToUnicodeString2()
50 i += numChars; in MultiByteToUnicodeString2()
77 unsigned numChars = WideCharToMultiByte(codePage, 0, sp + i, s.Len() - i, in UnicodeStringToMultiByte2() local
81 if (numChars == 0) in UnicodeStringToMultiByte2()
83 i += numChars; in UnicodeStringToMultiByte2()
103 int numChars = WideCharToMultiByte(codePage, 0, s, s.Len(), in UnicodeStringToMultiByte() local
[all …]
DMyString.cpp101 int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufSize, 0, 0); in MyCharUpper_WIN() local
102 if (numChars == 0 || numChars > kBufSize) in MyCharUpper_WIN()
104 s[numChars] = 0; in MyCharUpper_WIN()
106 ::MultiByteToWideChar(CP_ACP, 0, s, numChars, &c, 1); in MyCharUpper_WIN()
/external/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()
/external/lzma/CPP/Windows/
DPropVariant.cpp12 HRESULT PropVarEm_Alloc_Bstr(PROPVARIANT *p, unsigned numChars) throw() in PropVarEm_Alloc_Bstr() argument
14 p->bstrVal = ::SysAllocStringLen(0, numChars); in PropVarEm_Alloc_Bstr()
132 BSTR CPropVariant::AllocBstr(unsigned numChars) in AllocBstr() argument
138 bstrVal = ::SysAllocStringLen(0, numChars); in AllocBstr()
DRegistry.cpp326 UInt32 numChars = 0; in SetValue_Strings() local
329 numChars += strings[i].Len() + 1; in SetValue_Strings()
330 CBuffer<wchar_t> buffer(numChars); in SetValue_Strings()
338 return SetValue(valueName, buffer, numChars * sizeof(wchar_t)); in SetValue_Strings()
352 unsigned numChars = dataSize / sizeof(wchar_t); in GetValue_Strings() local
354 for (unsigned i = 0; i < numChars; i++) in GetValue_Strings()
DPropVariant.h14 HRESULT PropVarEm_Alloc_Bstr(PROPVARIANT *p, unsigned numChars) throw();
92 BSTR AllocBstr(unsigned numChars);
/external/skia/gm/
Dverttext.cpp73 int numChars = paint.getTextWidths(gText, gLen, adv, nullptr); in drawBaseline() local
74 for (int i = 0; i < numChars; ++i) { in drawBaseline()
/external/lzma/C/Util/7z/
D7zMain.c124 unsigned numChars = 0; in Utf16_To_Char() local
125numChars = WideCharToMultiByte(codePage, 0, s, len, (char *)buf->data, size, &defaultChar, &defUse… in Utf16_To_Char()
126 if (numChars == 0 || numChars >= size) in Utf16_To_Char()
128 buf->data[numChars] = 0; in Utf16_To_Char()
/external/conscrypt/testing/src/main/java/org/conscrypt/testing/
DTestUtil.java140 int numChars = Math.min(remaining, CHARS.length); in newTextMessage() local
141 System.arraycopy(CHARS, 0, msg, msgIndex, numChars); in newTextMessage()
142 msgIndex += numChars; in newTextMessage()
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwgl.c373 DWORD numChars, DWORD listBase) in wglUseFontBitmaps_FX() argument
401 for(i = 0; i < (int)numChars; i++) { in wglUseFontBitmaps_FX()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUCharacterProperty.java1268 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty() local
1269 if(numChars > 0) { in UCharacterProperty()
1270 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()
DNormalizer2Impl.java466 int numChars=(nextOffset-offset)/2; in load() local
467 if(numChars!=0) { in load()
468 maybeYesCompositions=ICUBinary.getString(bytes, numChars, 0); in load()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterProperty.java1267 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty() local
1268 if(numChars > 0) { in UCharacterProperty()
1269 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()
DNormalizer2Impl.java462 int numChars=(nextOffset-offset)/2; in load() local
463 if(numChars!=0) { in load()
464 maybeYesCompositions=ICUBinary.getString(bytes, numChars, 0); in load()
/external/clang/test/Analysis/Inputs/
Dsystem-header-simulator-objc.h127 …hExternalCharactersNoCopy(CFAllocatorRef alloc, UniChar *chars, CFIndex numChars, CFIndex capacity…
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp1705 size_t numChars = sizeof(ourBaseExcpClassChars) / sizeof(char); in createStandardUtilityFunctions() local
1708 ourBaseExceptionClass = genClass(ourBaseExcpClassChars, numChars); in createStandardUtilityFunctions()
/external/lzma/CPP/7zip/UI/Common/
DArchiveCommandLine.cpp486 UInt32 numChars = size / sizeof(wchar_t); in ParseMapWithPaths() local
487 for (UInt32 i = 1; i < numChars; i++) in ParseMapWithPaths()
/external/swiftshader/third_party/LLVM/examples/ExceptionDemo/
DExceptionDemo.cpp1753 size_t numChars = sizeof(ourBaseExcpClassChars) / sizeof(char); in createStandardUtilityFunctions() local
1756 ourBaseExceptionClass = genClass(ourBaseExcpClassChars, numChars); in createStandardUtilityFunctions()
/external/clang/tools/c-index-test/
Dc-index-test.c3949 unsigned numChars = 0; in print_usrs_file() local
3964 if (numChars == 0) in print_usrs_file()
3967 line[numChars] = '\0'; in print_usrs_file()
3968 numChars = 0; in print_usrs_file()
3983 line[numChars++] = c; in print_usrs_file()

12