Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCjkBreakEngine.java102 int numChars = 0; in divideUpDictionaryRange() local
110 numChars++; in divideUpDictionaryRange()
111 charPositions[numChars] = index; in divideUpDictionaryRange()
122 numChars++; in divideUpDictionaryRange()
124 charPositions[numChars] = index; in divideUpDictionaryRange()
130 int[] bestSnlp = new int[numChars + 1]; in divideUpDictionaryRange()
132 for (int i = 1; i <= numChars; i++) { in divideUpDictionaryRange()
136 int[] prev = new int[numChars + 1]; in divideUpDictionaryRange()
137 for (int i = 0; i <= numChars; i++) { in divideUpDictionaryRange()
142 int values[] = new int[numChars]; in divideUpDictionaryRange()
[all …]
DCharsDictionaryMatcher.java31 int numChars = 1; in matches() local
39 lengths[count] = numChars; in matches()
50 if (numChars >= maxLength) { in matches()
57 ++numChars; in matches()
61 return numChars; in matches()
DBytesDictionaryMatcher.java52 int numChars = 1; in matches() local
60 lengths[count] = numChars; in matches()
70 if (numChars >= maxLength) { in matches()
78 ++numChars; in matches()
82 return numChars; in matches()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCjkBreakEngine.java101 int numChars = 0; in divideUpDictionaryRange() local
109 numChars++; in divideUpDictionaryRange()
110 charPositions[numChars] = index; in divideUpDictionaryRange()
121 numChars++; in divideUpDictionaryRange()
123 charPositions[numChars] = index; in divideUpDictionaryRange()
129 int[] bestSnlp = new int[numChars + 1]; in divideUpDictionaryRange()
131 for (int i = 1; i <= numChars; i++) { in divideUpDictionaryRange()
135 int[] prev = new int[numChars + 1]; in divideUpDictionaryRange()
136 for (int i = 0; i <= numChars; i++) { in divideUpDictionaryRange()
141 int values[] = new int[numChars]; in divideUpDictionaryRange()
[all …]
DCharsDictionaryMatcher.java30 int numChars = 1; in matches() local
38 lengths[count] = numChars; in matches()
49 if (numChars >= maxLength) { in matches()
56 ++numChars; in matches()
60 return numChars; in matches()
DBytesDictionaryMatcher.java51 int numChars = 1; in matches() local
59 lengths[count] = numChars; in matches()
69 if (numChars >= maxLength) { in matches()
77 ++numChars; in matches()
81 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.cpp358 int32_t numChars=1; in ucharsTrieMatches() local
364 lengths[count++]=numChars; // CompactTrieDictionary just counts chars too. in ucharsTrieMatches()
372 if(numChars>=textLimit) { in ucharsTrieMatches()
383 ++numChars; in ucharsTrieMatches()
399 return numChars; in ucharsTrieMatches()
552 int32_t numChars=1; in bytesTrieMatches() local
558 lengths[count++]=numChars; // CompactTrieDictionary just counts chars too. in bytesTrieMatches()
566 if(numChars>=textLimit) { in bytesTrieMatches()
573 ++numChars; in bytesTrieMatches()
576 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/libgdx/gdx/src/com/badlogic/gdx/utils/
DStringBuilder.java36 public static int numChars (int value, int radix) { in numChars() method in StringBuilder
44 public static int numChars (long value, int radix) { in numChars() method in StringBuilder
763 for (int j = minLength - numChars(value, 10); j > 0; --j) in append()
817 for (int j = minLength - numChars(value, 10); j > 0; --j) in append()
DBufferUtils.java478 public static CharBuffer newCharBuffer (int numChars) { in newCharBuffer() argument
479 ByteBuffer buffer = ByteBuffer.allocateDirect(numChars * 2); in newCharBuffer()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
DBufferUtils.java509 public static CharBuffer newCharBuffer (int numChars) { in newCharBuffer() argument
511 ByteBuffer buffer = ByteBuffer.allocateDirect(numChars * 2); in newCharBuffer()
515 return CharBuffer.wrap(new char[numChars]); in newCharBuffer()
/external/libgdx/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/
DFreeTypeFontGenerator.java196 public int scaleForPixelWidth (int width, int numChars) { in scaleForPixelWidth() argument
202 int height = unscaledHeight * width / (advance * numChars); in scaleForPixelWidth()
212 public int scaleToFitSquare (int width, int height, int numChars) { in scaleToFitSquare() argument
213 return Math.min(scaleForPixelHeight(height), scaleForPixelWidth(width, numChars)); in scaleToFitSquare()
/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/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterProperty.java1207 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty() local
1208 if(numChars > 0) { in UCharacterProperty()
1209 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()
DNormalizer2Impl.java456 int numChars=(nextOffset-offset)/2; in load() local
457 if(numChars!=0) { in load()
458 maybeYesCompositions=ICUBinary.getString(bytes, numChars, 0); in load()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUCharacterProperty.java1208 int numChars = (reservedOffset7 - scriptExtensionsOffset) * 2; in UCharacterProperty() local
1209 if(numChars > 0) { in UCharacterProperty()
1210 m_scriptExtensions_ = ICUBinary.getChars(bytes, numChars, 0); in UCharacterProperty()
DNormalizer2Impl.java460 int numChars=(nextOffset-offset)/2; in load() local
461 if(numChars!=0) { in load()
462 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()

12