/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
DataInput.java | 69 int charIndex = 0;
71 while (charIndex < charCount) {
74 chars[charIndex++] = (char)b;
77 if (charIndex < charCount) readUtf8_slow(charCount, charIndex, b);
81 private void readUtf8_slow (int charCount, int charIndex, int b) throws IOException {
93 chars[charIndex] = (char)b;
97 chars[charIndex] = (char)((b & 0x1F) << 6 | read() & 0x3F);
100 chars[charIndex] = (char)((b & 0x0F) << 12 | (read() & 0x3F) << 6 | read() & 0x3F);
103 if (++charIndex >= charCount) break; [all...] |
DataOutput.java | 74 int charIndex = 0;
75 for (; charIndex < charCount; charIndex++) {
76 int c = value.charAt(charIndex);
80 if (charIndex < charCount) writeString_slow(value, charCount, charIndex);
83 private void writeString_slow (String value, int charCount, int charIndex) throws IOException {
84 for (; charIndex < charCount; charIndex++) {
85 int c = value.charAt(charIndex);
[all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CharsetRecog_Unicode.java | 64 for (int charIndex=0; charIndex<bytesToCheck-1; charIndex+=2) { 65 int codeUnit = codeUnit16FromBytes(input[charIndex], input[charIndex + 1]); 66 if (charIndex == 0 && codeUnit == 0xFEFF) { 98 for (int charIndex=0; charIndex<bytesToCheck-1; charIndex+=2) { 99 int codeUnit = codeUnit16FromBytes(input[charIndex+1], input[charIndex]) [all...] |
/external/icu/icu4c/source/i18n/ |
csrucode.cpp | 60 for (int32_t charIndex=0; charIndex<bytesToCheck-1; charIndex+=2) { 61 UChar codeUnit = (input[charIndex] << 8) | input[charIndex + 1]; 62 if (charIndex == 0 && codeUnit == 0xFEFF) { 95 for (int32_t charIndex=0; charIndex<bytesToCheck-1; charIndex+=2) { 96 UChar codeUnit = input[charIndex] | (input[charIndex + 1] << 8) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CharsetRecog_Unicode.java | 63 for (int charIndex=0; charIndex<bytesToCheck-1; charIndex+=2) { 64 int codeUnit = codeUnit16FromBytes(input[charIndex], input[charIndex + 1]); 65 if (charIndex == 0 && codeUnit == 0xFEFF) { 97 for (int charIndex=0; charIndex<bytesToCheck-1; charIndex+=2) { 98 int codeUnit = codeUnit16FromBytes(input[charIndex+1], input[charIndex]) [all...] |
/frameworks/base/core/java/android/text/ |
BidiFormatter.java | 591 private int charIndex; 626 charIndex = 0; 630 while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) { 686 while (charIndex > 0) { 724 charIndex = length; 727 while (charIndex > 0) { [all...] |
/frameworks/support/core-utils/java/android/support/v4/text/ |
BidiFormatter.java | 610 private int charIndex; 645 charIndex = 0; 649 while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) { 705 while (charIndex > 0) { [all...] |
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
XmlEditor.java | 130 return start2.charIndex - start1.charIndex; 139 String newLine = line.substring(0, endTagPosition.charIndex) + " " + tag + 140 line.substring(endTagPosition.charIndex); 217 if (endTag.charIndex <= 0) { 224 if (position.charIndex <= 0) { 227 position.charIndex--; 245 String newStartLine = startLine.substring(0, start.charIndex) + text; 252 String newEndLine = replaceWithSpaces(endLine, 0, end.charIndex - 1); 255 } else if (end.charIndex - start.charIndex >= text.length()) [all...] |
/external/proguard/src/proguard/classfile/constant/ |
Utf8Constant.java | 254 int charIndex = 0; 267 chars[charIndex++] = 279 throw new UnsupportedEncodingException("Missing UTF-8 bytes after initial byte [0x"+Integer.toHexString(b)+"] in string ["+new String(chars, 0, charIndex)+"]"); 283 return new String(chars, 0, charIndex);
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
Bidi.java | [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
FusionDictionary.java | 342 int charIndex = 0; 346 int nodeIndex = findIndexOfChar(mRootNodeArray, word[charIndex]); 349 differentCharIndex = compareCharArrays(currentPtNode.mChars, word, charIndex); 353 charIndex += currentPtNode.mChars.length; 354 if (charIndex >= word.length) break; 356 nodeIndex = findIndexOfChar(currentNodeArray, word[charIndex]); 361 final int insertionIndex = findInsertionIndex(currentNodeArray, word[charIndex]); 362 final PtNode newPtNode = new PtNode(Arrays.copyOfRange(word, charIndex, word.length), 370 if (charIndex + differentCharIndex >= word.length) { 380 Arrays.copyOfRange(word, charIndex + differentCharIndex, word.length) [all...] |
/external/icu/icu4c/source/layout/ |
MPreFixups.cpp | 89 le_int32 charIndex = glyphStorage.getCharIndex(mpreLimit + i, success); 92 glyphStorage.setCharIndex(mpreIndex + i, charIndex, success);
|
LEGlyphStorage.h | 398 * @param charIndex the new char index 403 void setCharIndex(le_int32 glyphIndex, le_int32 charIndex, LEErrorCode &success);
|
IndicReordering.cpp | 206 void writeChar(LEUnicode ch, le_uint32 charIndex, FeatureMask charFeatures) 212 fGlyphStorage.setCharIndex(fOutIndex, charIndex, success); 218 void setFeatures ( le_uint32 charIndex, FeatureMask charFeatures) 222 fGlyphStorage.setAuxData( charIndex, charFeatures, success ); 226 FeatureMask getFeatures ( le_uint32 charIndex ) 229 return fGlyphStorage.getAuxData(charIndex,success); 292 void insertCharacter( LEUnicode ch, le_int32 toPosition, le_int32 charIndex, le_uint32 auxData ) { 304 fGlyphStorage.setCharIndex(toPosition,charIndex,success); [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
Lexer.as | 146 var t:Token = CommonToken.createFromStream(input, state.type, state.channel, state.tokenStartCharIndex, charIndex - 1); 217 public function get charIndex():int { 228 return input.substring(state.tokenStartCharIndex, charIndex-1);
|
/external/icu/icu4c/source/layoutex/ |
ParagraphLayout.cpp | 982 le_int32 ParagraphLayout::previousBreak(le_int32 charIndex) 986 while (charIndex < fCharCount && 987 (u_isWhitespace(fChars[charIndex]) || 988 u_iscntrl(fChars[charIndex]))) { 989 charIndex += 1; 1006 return fBreakIterator->preceding(charIndex + 1); [all...] |
/external/icu/icu4c/source/common/unicode/ |
ubidi.h | [all...] |
/external/icu/icu4c/source/layoutex/layout/ |
ParagraphLayout.h | 598 le_int32 getCharRun(le_int32 charIndex); 602 le_int32 previousBreak(le_int32 charIndex);
|
/external/icu/icu4c/source/test/letest/ |
cletest.c | 639 le_int32 charIndex = 0, lineNumber = 1; 681 if (ix != charIndex) { 682 if (ix != charIndex - 1) { 684 i, lineNumber, charIndex, ix); 688 charIndex += 1; 697 * is equal to charIndex and then advance charIndex to the maximum. 713 if (minIndex != charIndex) { 715 run, lineNumber, charIndex, minIndex); 719 charIndex = maxIndex + 1 [all...] |
letest.cpp | [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/ |
UnicodeFont.java | 322 int charIndex = vector.getGlyphCharIndex(glyphIndex);
323 if (charIndex < startIndex) continue;
324 if (charIndex > endIndex) break;
326 int codePoint = text.codePointAt(charIndex);
437 int charIndex = vector.getGlyphCharIndex(glyphIndex);
438 int codePoint = text.codePointAt(charIndex);
461 int charIndex = vector.getGlyphCharIndex(i);
462 int codePoint = text.codePointAt(charIndex);
|
/external/guava/guava/src/com/google/common/io/ |
BaseEncoding.java | 605 int charIndex = (bitBuffer >> (bitBufferLength - alphabet.bitsPerChar)) 607 out.write(alphabet.encode(charIndex)); 621 int charIndex = (bitBuffer << (alphabet.bitsPerChar - bitBufferLength)) 623 out.write(alphabet.encode(charIndex));
|
/external/guava/guava-gwt/src-super/com/google/common/io/super/com/google/common/io/ |
BaseEncoding.java | 548 int charIndex = (bitBuffer >> (bitBufferLength - alphabet.bitsPerChar)) 550 out.write(alphabet.encode(charIndex)); 564 int charIndex = (bitBuffer << (alphabet.bitsPerChar - bitBufferLength)) 566 out.write(alphabet.encode(charIndex));
|
/external/icu/icu4c/source/common/ |
ubidiln.c | 249 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { 251 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { 253 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { 254 return GET_PARALEVEL(pBiDi, charIndex); 256 return pBiDi->levels[charIndex]; [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/ |
ActionScript.stg | 699 var <label>Start:int = charIndex; 701 <label> = CommonToken.createFromStream(input, TokenConstants.INVALID_TOKEN_TYPE, TokenConstants.DEFAULT_CHANNEL, <label>Start, charIndex-1); 763 var <label>Start<elementIndex>:int = charIndex; 765 <label> = CommonToken.createFromStream(input, TokenConstants.INVALID_TOKEN_TYPE, TokenConstants.DEFAULT_CHANNEL, <label>Start<elementIndex>, charIndex-1); 780 var <label>Start<elementIndex>:int = charIndex; 782 var <label>:<labelType> = CommonToken.createFromStream(input, EOF, TokenConstants.DEFAULT_CHANNEL, <label>Start<elementIndex>, charIndex-1); [all...] |