/external/markdown/markdown/extensions/ |
abbr.py | 71 chars = list(text) 72 for i in range(len(chars)): 73 chars[i] = r'[%s]' % chars[i] 74 return r'(?P<abbr>\b%s\b)' % (r''.join(chars))
|
/frameworks/av/camera/ndk/ |
NdkCameraManager.cpp | 103 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ 105 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { 106 ALOGE("%s: invalid argument! mgr %p cameraId %p chars %p", 107 __FUNCTION__, mgr, cameraId, chars); 110 return mgr->getCameraCharacteristics(cameraId, chars);
|
/libcore/ojluni/src/main/native/ |
io_util_md.c | 49 char* chars = malloc(ulen); local 50 if (chars == NULL) { 54 if (CFStringGetCString(csref, chars, ulen, kCFStringEncodingUTF16)) { 55 rv = (*env)->NewString(env, (jchar*)chars, clen); 57 free(chars);
|
/external/guava/guava/src/com/google/common/io/ |
BaseEncoding.java | 224 public final byte[] decode(CharSequence chars) { 226 return decodeChecked(chars); 239 final byte[] decodeChecked(CharSequence chars) throws DecodingException { 240 chars = padding().trimTrailingFrom(chars); 241 ByteInput decodedInput = decodingStream(asCharInput(chars)); 242 byte[] tmp = new byte[maxDecodedSize(chars.length())]; 287 abstract int maxDecodedSize(int chars); 449 private final char[] chars; 457 Alphabet(String name, char[] chars) { [all...] |
/external/guava/guava-gwt/src-super/com/google/common/io/super/com/google/common/io/ |
BaseEncoding.java | 192 public final byte[] decode(CharSequence chars) { 194 return decodeChecked(chars); 207 final byte[] decodeChecked(CharSequence chars) throws DecodingException { 208 chars = padding().trimTrailingFrom(chars); 209 ByteInput decodedInput = decodingStream(asCharInput(chars)); 210 byte[] tmp = new byte[maxDecodedSize(chars.length())]; 230 abstract int maxDecodedSize(int chars); 392 private final char[] chars; field in class:BaseEncoding.Alphabet 400 Alphabet(String name, char[] chars) { [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
Helpers.java | 694 char[] chars = mChars; local 697 while (mOffset < chars.length && chars[mOffset] == ' ') { 702 if (mOffset == chars.length) { 708 if (chars[mOffset] == '(') { 715 if (chars[mOffset] == ')') { 722 if (chars[mOffset] == '?') { 729 if (chars[mOffset] == '=') { 732 if (mOffset < chars.length && chars[mOffset] == '=') [all...] |
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/ |
CharBuffer.java | 22 /** A buffer of chars. 185 * The remaining chars will be moved to the head of the buffer, starting from position zero. Then the position is set to 194 /** Compare the remaining chars of this buffer to another char buffer's remaining chars. 236 * remaining chars are exactly the same. Position, limit, capacity and mark are not considered. 269 /** Reads chars from the current position into the specified char array and increases the position by the number of chars read. 282 /** Reads chars from the current position into the specified char array, starting from the specified offset, and increases the 283 * position by the number of chars read. 287 * @param len The number of chars to read, must be no less than zero and no greater than {@code dest.length - off} 617 char[] chars = new char[result]; local [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldOutputStreamWriterTest.java | 294 char[] chars = new char[maxChar]; local 296 chars[i] = (char) i; 302 charsOut.write(chars); 339 char[] chars = testString.toCharArray(); local 347 writer.write(chars, -1, 1); 354 writer.write(chars, 0, -1); 375 writer.write(chars, 1, chars.length); 381 writer.write(chars, 0, chars.length + 1) [all...] |
/external/icu/icu4c/source/common/ |
uniset_props.cpp | 382 RuleCharacterIterator chars(pattern, symbols, pos); 383 applyPattern(chars, symbols, rebuiltPat, USET_IGNORE_SPACE, NULL, status); 385 if (chars.inVariable()) { 386 // syntaxError(chars, "Extra chars in variable value"); 428 * @param chars iterator over the pattern characters. Upon return 439 void UnicodeSet::applyPattern(RuleCharacterIterator& chars, 449 // Recognized special forms for chars, sets: c-c s-s s&s 472 while (mode != 2 && !chars.atEnd()) { 486 if (resemblesPropertyPattern(chars, opts)) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/ |
ExhaustiveTest.java | 33 logln(s.length() + " chars ===> " 35 + res.length() + " chars"); 49 private void myTest(char[] chars, int len) { 63 myByteCount = myCompressor.compress(chars, 0, len, unicharsRead, 69 if (logDiffs(chars, len, myDecompressed, myCharCount) == false) { 70 logln(len + " chars ===> " 72 + myCharCount + " chars"); 86 private void myMultipassTest(char [] chars, int len) throws Exception { 125 bytesWritten = myCompressor.compress(chars, totalCharsCompressed, 139 + unicharsRead[0] + " chars into [all...] |
/external/icu/icu4c/source/layout/ |
LayoutEngine.cpp | 198 le_int32 LayoutEngine::characterProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 222 const LEUnicode *inChars = &chars[offset]; 245 CanonShaping::reorderMarks(&chars[offset], count, rightToLeft, reordered, fakeGlyphStorage); 305 le_int32 LayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 312 if (chars == NULL || offset < 0 || count < 0 || max < 0 || offset >= max || offset + count > max) { 318 le_int32 outCharCount = characterProcessing(chars, offset, count, max, rightToLeft, outChars, glyphStorage, success); 324 mapCharsToGlyphs(chars, offset, count, rightToLeft, rightToLeft, glyphStorage, success); 359 void LayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, 366 if (chars == NULL || offset < 0 || count < 0) { 375 adjustMarkGlyphs(&chars[offset], count, reverse, glyphStorage, &filter, success) [all...] |
ArabicLayoutEngine.h | 100 * @param chars - the input character context 116 virtual le_int32 characterProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 125 * @param chars - the input character context 136 virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, LEGlyphStorage &glyphStorage, LEErrorCode &success); 138 // static void adjustMarkGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool rightToLeft, LEGlyphStorage &glyphStorage, LEErrorCode &success); 208 * @param chars - the input character context 219 virtual void mapCharsToGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, le_bool mirror, 227 * @param chars - the input character context 236 virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, LEGlyphStorage &glyphStorage, LEErrorCode &success);
|
TibetanLayoutEngine.cpp | 50 le_int32 TibetanOpenTypeLayoutEngine::characterProcessing(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, 57 if (chars == NULL || offset < 0 || count < 0 || max < 0 || offset >= max || offset + count > max) { 81 le_int32 outCharCount = TibetanReordering::reorder(&chars[offset], count, fScriptCode, outChars, glyphStorage);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/ |
ExhaustiveTest.java | 29 logln(s.length() + " chars ===> " 31 + res.length() + " chars"); 45 private void myTest(char[] chars, int len) { 59 myByteCount = myCompressor.compress(chars, 0, len, unicharsRead, 65 if (logDiffs(chars, len, myDecompressed, myCharCount) == false) { 66 logln(len + " chars ===> " 68 + myCharCount + " chars"); 82 private void myMultipassTest(char [] chars, int len) throws Exception { 121 bytesWritten = myCompressor.compress(chars, totalCharsCompressed, 135 + unicharsRead[0] + " chars into [all...] |
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
XMLChar.java | 33 * public. Using the character as an index into the <code>CHARS</code> 54 private static final byte[] CHARS = new byte[1 << 16]; 269 CHARS[j] |= MASK_VALID | MASK_CONTENT; 275 CHARS[specialChar[i]] = (byte)(CHARS[specialChar[i]] & ~MASK_CONTENT); 280 CHARS[spaceChar[i]] |= MASK_SPACE; 285 CHARS[nameStartChar[i]] |= MASK_NAME_START | MASK_NAME | 290 CHARS[j] |= MASK_NAME_START | MASK_NAME | 295 CHARS[letterChar[i]] |= MASK_NAME_START | MASK_NAME | 301 CHARS[nameChar[i]] |= MASK_NAME | MASK_NCNAME [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
ListGenerators.java | 29 import com.google.common.primitives.Chars; 122 char[] chars = Chars.toArray(Arrays.asList(elements)); local 123 return Lists.charactersOf(String.copyValueOf(chars)); 130 char[] chars = Chars.toArray(Arrays.asList(elements)); local 132 str.append(chars);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
MoreKeySpecStringReferenceTests.java | 150 assertTextArray("Multiple chars", 152 assertTextArray("Multiple chars surrounded by spaces", 162 assertTextArray("Multiple chars with comma", 165 assertTextArray("Multiple chars with comma surrounded by spaces", 189 assertTextArray("Multiple single resource chars and labels", 192 assertTextArray("Multiple single resource chars and labels 2", 195 assertTextArray("Multiple multiple resource chars and labels", 237 assertTextArray("MULTIPLE CHARS", 242 assertTextArray("Multiple single RESOURCE chars and LABELS 2",
|
/art/test/595-profile-saving/ |
profile-saving.cc | 60 ScopedUtfChars chars(env, method_name); 61 CHECK(chars.c_str() != nullptr); 63 CreateProfilingInfoVisitor visitor(soa.Self(), chars.c_str());
|
/external/chromium-trace/catapult/third_party/vinn/vinn/ |
base64_compat.js | 13 var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' + 28 var block, charCode, idx = 0, map = chars, output = ''; 68 buffer = chars.indexOf(buffer);
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
BuildMirroringTables.java | 55 int[] chars = new int[count]; local 66 chars[total] = ch & 0xFFFF; 77 dump("mirroredChars", chars, total, 8);
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
StringDumper.java | 78 char[] chars = value.toCharArray(); local 79 for (int i = 0, size = chars.length; i < size; i++) { 80 char ch = chars[i];
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/util/ |
UriEncoder.java | 34 // Include the [] chars to the SAFEPATHCHARS_URLENCODER to avoid 51 CharBuffer chars = UTF8Decoder.decode(buff); local 52 return chars.toString();
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AbstractHtmlTemplates.java | 73 int chars; local 75 while ((chars=in.read(buf)) > 0) { 76 out.append(buf, 0, chars);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
InputStreamReaderTest.java | 439 assertTrue("returned incorrect chars", rbuf[i] == sbuf[i]); 457 char[] chars = new char[source.length()]; local 458 assertEquals(source.length() - 3, isr.read(chars, 0, chars.length - 3)); 459 assertEquals(3, isr.read(chars, 0, 10)); 505 char[] chars = new char[source.length()]; local 506 assertEquals(0, reader.read(chars, 0, 0)); 507 assertEquals(0, chars[0]); 508 assertEquals(3, reader.read(chars, 0, 3)); 509 assertEquals(5, reader.read(chars, 3, 5)) [all...] |
/external/v8/src/ |
utils.h | 401 size_t chars) { 402 memcpy(dest, src, chars); 418 size_t chars); 430 size_t chars) { 431 memcpy(dest, src, chars); 785 // Compare 8bit/16bit chars to 8bit/16bit chars. 788 size_t chars) { 789 const lchar* limit = lhs + chars; 793 return memcmp(lhs, rhs, chars); [all...] |