/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_libc.py | 24 chars = create_string_buffer("spam, spam, and spam") 25 lib.my_qsort(chars, len(chars)-1, sizeof(c_char), comparefunc(sort)) 26 self.assertEqual(chars.raw, " ,,aaaadmmmnpppsss\x00")
|
/libcore/luni/src/main/java/java/io/ |
OutputStreamWriter.java | 176 private void convert(CharBuffer chars) throws IOException { 178 CoderResult result = encoder.encode(chars, bytes, false); 195 CharBuffer chars = CharBuffer.allocate(0); local 197 CoderResult result = encoder.encode(chars, bytes, true); 265 CharBuffer chars = CharBuffer.wrap(buffer, offset, count); local 266 convert(chars); 285 CharBuffer chars = CharBuffer.wrap(new char[] { (char) oneChar }); local 286 convert(chars); 323 CharBuffer chars = CharBuffer.wrap(str, offset, count + offset); local 324 convert(chars); [all...] |
/external/icu/icu4c/source/layout/ |
ThaiLayoutEngine.cpp | 59 le_int32 ThaiLayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool /*rightToLeft*/, LEGlyphStorage &glyphStorage, LEErrorCode &success) 65 if (chars == NULL || offset < 0 || count < 0 || max < 0 || offset >= max || offset + count > max) { 90 glyphCount = ThaiShaping::compose(chars, offset, count, fGlyphSet, fErrorChar, outChars, glyphStorage); 100 void ThaiLayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool /*reverse*/, 107 if (chars == NULL || offset < 0 || count < 0) {
|
KhmerReordering.cpp | 336 le_int32 KhmerReordering::findSyllable(const KhmerClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) 342 KhmerClassTable::CharClass charClass = (classTable->getCharClass(chars[cursor]) & KhmerClassTable::CF_CLASS_MASK); 359 le_int32 KhmerReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32 /*scriptCode*/, 372 le_int32 syllable = findSyllable(classTable, chars, prev, charCount); 381 charClass = classTable->getCharClass(chars[i]); 392 output.writeChar(chars[i], i, tagPref); 401 ( (classTable->getCharClass(chars[i + 1]) & KhmerClassTable::CF_CLASS_MASK) == KhmerClassTable::CC_CONSONANT2) ) 417 if (classTable->getCharClass(chars[prev]) & KhmerClassTable::CF_DOTTED_CIRCLE) { 423 charClass = classTable->getCharClass(chars[i]); 438 output.writeChar(chars[i], i, tagAbvf) [all...] |
ArabicLayoutEngine.cpp | 69 le_int32 ArabicOpenTypeLayoutEngine::characterProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, 77 if (chars == NULL || offset < 0 || count < 0 || max < 0 || offset >= max || offset + count > max) { 97 CanonShaping::reorderMarks(&chars[offset], count, rightToLeft, outChars, glyphStorage); 102 ArabicShaping::shape(chars, offset, count, max, rightToLeft, glyphStorage); 107 void ArabicOpenTypeLayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, 114 if (chars == NULL || offset < 0 || count < 0) { 120 OpenTypeLayoutEngine::adjustGlyphPositions(chars, offset, count, reverse, glyphStorage, success); 128 adjustMarkGlyphs(&chars[offset], count, reverse, glyphStorage, &filter, success); 176 void UnicodeArabicOpenTypeLayoutEngine::mapCharsToGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, le_bool /*mirror*/, LEGlyphStorage &glyphStorage, LEErrorCode &success) 182 if (chars == NULL || offset < 0 || count < 0) [all...] |
LayoutEngine.h | 167 * @param chars - the input character context 180 virtual le_int32 characterProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 194 * @param chars - the character context 209 virtual le_int32 computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, LEGlyphStorage &glyphStorage, LEErrorCode &success); 236 * @param chars - the input character context 246 virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, LEGlyphStorage &glyphStorage, LEErrorCode &success); 280 * @param chars - the input character context 293 virtual void mapCharsToGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, le_bool mirror, LEGlyphStorage &glyphStorage, LEErrorCode &success); 318 * @param chars - the array of input characters 329 static void adjustMarkGlyphs(const LEUnicode chars[], le_int32 charCount, le_bool reverse, LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, L (…) [all...] |
IndicReordering.cpp | 597 le_int32 IndicReordering::findSyllable(const IndicClassTable *classTable, const LEUnicode *chars, le_int32 prev, le_int32 charCount) 604 IndicClassTable::CharClass charClass = classTable->getCharClass(chars[cursor]); 625 le_int32 IndicReordering::reorder(const LEUnicode *chars, le_int32 charCount, le_int32 scriptCode, 654 le_int32 syllable = findSyllable(classTable, chars, prev, charCount); 659 if (classTable->isStressMark(chars[markStart - 1])) { 661 output.noteStressMark(classTable, chars[markStart], markStart, tagArray1); 664 if (markStart != prev && classTable->isVowelModifier(chars[markStart - 1])) { 666 output.noteVowelModifier(classTable, chars[markStart], markStart, tagArray1); 671 while (output.noteMatra(classTable, chars[matra], matra, tagArray1, !lastInWord) && matra != prev) { 677 switch (classTable->getCharClass(chars[prev]) & CF_CLASS_MASK) [all...] |
GXLayoutEngine.h | 90 * @param chars - the input character context 104 virtual le_int32 computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 119 virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse,
|
GXLayoutEngine2.h | 89 * @param chars - the input character context 103 virtual le_int32 computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 118 virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse,
|
IndicLayoutEngine.h | 108 * @param chars - the input character context 123 virtual le_int32 characterProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 136 * @param chars - the input character context 154 virtual le_int32 glyphProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft,
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
IOBinding.py | 252 chars = f.read() 258 chars = self.decode(chars) 260 firsteol = self.eol_re.search(chars) 266 chars = self.eol_re.sub(r"\n", chars) 270 self.text.insert("1.0", chars) 278 def decode(self, chars): 284 if chars.startswith(BOM_UTF8): 286 chars = chars[3:].decode("utf-8" [all...] |
SearchEngine.py | 139 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 140 while chars: 141 m = prog.search(chars[:-1], col) 150 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 151 if not chars and wrap: 155 chars = text.get("1.0", "2.0") 161 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 163 m = search_reverse(prog, chars[:-1], col) 178 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 179 col = len(chars) - [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
IOBinding.py | 252 chars = f.read() 258 chars = self.decode(chars) 260 firsteol = self.eol_re.search(chars) 266 chars = self.eol_re.sub(r"\n", chars) 270 self.text.insert("1.0", chars) 278 def decode(self, chars): 284 if chars.startswith(BOM_UTF8): 286 chars = chars[3:].decode("utf-8" [all...] |
SearchEngine.py | 139 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 140 while chars: 141 m = prog.search(chars[:-1], col) 150 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 151 if not chars and wrap: 155 chars = text.get("1.0", "2.0") 161 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 163 m = search_reverse(prog, chars[:-1], col) 178 chars = text.get("%d.0" % line, "%d.0" % (line+1)) 179 col = len(chars) - [all...] |
/external/smali/util/src/main/java/org/jf/util/ |
IndentingWriter.java | 68 private void writeLine(char[] chars, int start, int len) throws IOException { 73 writer.write(chars, start, len); 89 public void write(char[] chars) throws IOException { 90 write(chars, 0, chars.length); 94 public void write(char[] chars, int start, int len) throws IOException { 98 if (chars[pos] == '\n') { 99 writeLine(chars, start, pos-start); 109 writeLine(chars, start, pos-start);
|
Utf8Utils.java | 86 char[] chars = localBuffer.get(); local 87 if (chars == null || chars.length < length) { 88 chars = new char[length]; 89 localBuffer.set(chars); 163 chars[outAt] = out; 167 return new String(chars, 0, outAt); 193 char[] chars = localBuffer.get(); local 194 if (chars == null || chars.length < utf16Length) [all...] |
/external/stlport/test/unit/ |
istmit_test.cpp | 89 string chars; local 91 2, back_inserter(chars)).first, 92 2, back_inserter(chars)).first; 93 CPPUNIT_ASSERT( chars == "aabb" ); 94 copy_n(ite, 2, back_inserter(chars)); 95 CPPUNIT_ASSERT( chars == "aabbcd" );
|
/ndk/tests/device/test-gnustl-full/unit/ |
istmit_test.cpp | 89 string chars; local 91 2, back_inserter(chars)).first, 92 2, back_inserter(chars)).first; 93 CPPUNIT_ASSERT( chars == "aabb" ); 94 copy_n(ite, 2, back_inserter(chars)); 95 CPPUNIT_ASSERT( chars == "aabbcd" );
|
/ndk/tests/device/test-stlport/unit/ |
istmit_test.cpp | 89 string chars; local 91 2, back_inserter(chars)).first, 92 2, back_inserter(chars)).first; 93 CPPUNIT_ASSERT( chars == "aabb" ); 94 copy_n(ite, 2, back_inserter(chars)); 95 CPPUNIT_ASSERT( chars == "aabbcd" );
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
LevenshteinSuggestionFormatter.java | 102 final char[] chars = seq.toCharArray(); local 107 while (pos < len && (chars[pos] == ' ' || chars[pos] == '\t')) { 111 while (pos < len && !(chars[pos] == ' ' || chars[pos] == '\t')) { 116 tokens[tokenCount++] = new Token(chars, start, end);
|
/libcore/luni/src/main/native/ |
java_nio_charset_Charsets.cpp | 114 ScopedCharArrayRW chars(env, javaChars); 115 if (chars.get() == NULL) { 120 jchar* dst = &chars[0]; 133 ScopedCharArrayRW chars(env, javaChars); 134 if (chars.get() == NULL) { 139 jchar* dst = &chars[0]; 151 ScopedCharArrayRO chars(env, javaChars); 152 if (chars.get() == NULL) { 162 const jchar* src = &chars[offset]; 184 ScopedCharArrayRO chars(env, javaChars) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
AndroidBidi_Delegate.java | 35 /*package*/ static int runBidi(int dir, char[] chars, byte[] charInfo, int count, 56 Bidi bidi = new Bidi(chars, 0, null, 0, count, dir);
|
/libcore/luni/src/main/java/libcore/internal/ |
StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { 33 if (chars[start + i] != s.charAt(i)) {
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pwd.py | 68 chars = list(fakename) 69 for i in xrange(len(chars)): 70 if chars[i] == 'z': 71 chars[i] = 'A' 73 elif chars[i] == 'Z': 76 chars[i] = chr(ord(chars[i]) + 1) 85 fakename = ''.join(chars)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pwd.py | 68 chars = list(fakename) 69 for i in xrange(len(chars)): 70 if chars[i] == 'z': 71 chars[i] = 'A' 73 elif chars[i] == 'Z': 76 chars[i] = chr(ord(chars[i]) + 1) 85 fakename = ''.join(chars)
|