/external/apache-http/src/org/apache/http/impl/io/ |
AbstractSessionOutputBuffer.java | 67 private boolean ascii = true; field in class:AbstractSessionOutputBuffer 84 this.ascii = this.charset.equalsIgnoreCase(HTTP.US_ASCII) 85 || this.charset.equalsIgnoreCase(HTTP.ASCII); 156 if (this.ascii) { 172 // This is VERY memory inefficient, BUT since non-ASCII charsets are
|
/external/guava/guava/src/com/google/common/net/ |
MediaType.java | 19 import static com.google.common.base.CharMatcher.ASCII; 28 import com.google.common.base.Ascii; 86 ImmutableListMultimap.of(CHARSET_ATTRIBUTE, Ascii.toLowerCase(UTF_8.name())); 89 private static final CharMatcher TOKEN_MATCHER = ASCII.and(JAVA_ISO_CONTROL.negate()) 92 private static final CharMatcher QUOTED_TEXT_MATCHER = ASCII 583 return Ascii.toLowerCase(token); 587 return CHARSET_ATTRIBUTE.equals(attribute) ? Ascii.toLowerCase(value) : value; 615 valueBuilder.append(tokenizer.consumeCharacter(ASCII));
|
/external/guava/guava-tests/test/com/google/common/io/ |
IoTestCase.java | 47 static final String ASCII
|
SourceSinkFactories.java | 78 String initialString = IoTestCase.ASCII + IoTestCase.I18N; 91 String initialString = IoTestCase.ASCII + IoTestCase.I18N;
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
Collator.java | 600 * Simpler/faster methods for ASCII than ones based on Unicode data. 603 private static final class ASCII { 623 if (ASCII.equalIgnoreCase(s, "yes")) { 626 if (ASCII.equalIgnoreCase(s, "no")) { 634 if (ASCII.equalIgnoreCase(s, values[i])) { [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
Collator.java | 630 * Simpler/faster methods for ASCII than ones based on Unicode data. 633 private static final class ASCII { 653 if (ASCII.equalIgnoreCase(s, "yes")) { 656 if (ASCII.equalIgnoreCase(s, "no")) { 664 if (ASCII.equalIgnoreCase(s, values[i])) { [all...] |
/external/python/cpython3/Lib/distutils/ |
version.py | 131 re.VERBOSE | re.ASCII)
|
/external/python/cpython3/Lib/email/ |
quoprimime.py | 8 to encode US ASCII-like 8-bit data called `quoted-printable'. It is used to 9 safely encode text that is in a character set similar to the 7-bit US ASCII 60 for c in b'-!*+/' + ascii_letters.encode('ascii') + digits.encode('ascii'): 119 """Turn a string in the form =AB to the ASCII character with value 0xab""" 285 """Turn a match in the form =AB to the ASCII character with value 0xab""" 299 return re.sub(r'=[a-fA-F0-9]{2}', _unquote_match, s, flags=re.ASCII)
|
headerregistry.py | 240 Any non-ASCII characters in the parse tree are CTE encoded using 243 The returned value is an ASCII-only string possibly containing linesep
|
/external/python/cpython3/Lib/urllib/ |
parse.py | 87 _implicit_encoding = 'ascii' 122 def encode(self, encoding='ascii', errors='strict'): 130 def decode(self, encoding='ascii', errors='strict'): 561 # unescaped non-ASCII characters, which URIs should not. 758 non-ASCII characters, as accepted by the str.encode method. 796 not perform string-to-bytes encoding. It always returns an ASCII string. 804 # Normalize 'safe' by converting to bytes and removing non-ASCII chars 805 safe = safe.encode('ascii', 'ignore') [all...] |
/prebuilts/go/darwin-x86/src/net/textproto/ |
textproto.go | 125 // TrimString returns s without leading and trailing ASCII space. 136 // TrimBytes returns b without leading and trailing ASCII space.
|
/prebuilts/go/linux-x86/src/net/textproto/ |
textproto.go | 125 // TrimString returns s without leading and trailing ASCII space. 136 // TrimBytes returns b without leading and trailing ASCII space.
|
/external/nanopb-c/generator/google/protobuf/internal/ |
type_checkers.py | 119 # If the value is of type 'str' make sure that it is in 7-bit ASCII 123 unicode(proposed_value, 'ascii') 125 raise ValueError('%.1024r has type str, but isn\'t in 7-bit ASCII ' 126 'encoding. Non-ASCII strings must be converted to '
|
/prebuilts/go/darwin-x86/src/cmd/internal/objabi/ |
line.go | 52 // For portability, we allow ASCII case folding, so that hasPathPrefix("a/b/c", "A/B") is true.
|
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/text/secure/bidirule/ |
bidirule.go | 37 // labels and pure ASCII labels have to be tested. 42 // that starts with an ASCII digit does not come after a 252 // Precomputing the ASCII values decreases running time for the ASCII fast path
|
/prebuilts/go/linux-x86/src/cmd/internal/objabi/ |
line.go | 52 // For portability, we allow ASCII case folding, so that hasPathPrefix("a/b/c", "A/B") is true.
|
/prebuilts/go/linux-x86/src/vendor/golang_org/x/text/secure/bidirule/ |
bidirule.go | 37 // labels and pure ASCII labels have to be tested. 42 // that starts with an ASCII digit does not come after a 252 // Precomputing the ASCII values decreases running time for the ASCII fast path
|
/external/python/cpython3/Lib/ |
platform.py | 145 br'(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)', re.ASCII) 252 _release_filename = re.compile(r'(\w+)[-_](release|version)', re.ASCII) 256 r'[^(]*(?:\((.+)\))?', re.ASCII) 260 r'[^(]*(?:\((.+)\))?', re.ASCII) [all...] |
/prebuilts/go/darwin-x86/src/cmd/compile/internal/syntax/ |
source.go | 96 // for loop below by duplicating the common case code (ASCII) 105 // common case: ASCII and enough bytes 132 // uncommon case: not ASCII
|
/prebuilts/go/darwin-x86/src/net/http/ |
header.go | 178 // hasToken reports whether token appears with v, ASCII 191 // The token is ASCII, so checking only a single byte 194 // ASCII uppercase equivalent (b|0x20) don't match.
|
/prebuilts/go/linux-x86/src/cmd/compile/internal/syntax/ |
source.go | 96 // for loop below by duplicating the common case code (ASCII) 105 // common case: ASCII and enough bytes 132 // uncommon case: not ASCII
|
/prebuilts/go/linux-x86/src/net/http/ |
header.go | 178 // hasToken reports whether token appears with v, ASCII 191 // The token is ASCII, so checking only a single byte 194 // ASCII uppercase equivalent (b|0x20) don't match.
|
/prebuilts/go/darwin-x86/src/bytes/ |
bytes.go | 280 // This is an exact count if s is ASCII, otherwise it is an approximation. 294 // Some runes in the input slice are not ASCII. 298 // ASCII fast path 505 // ASCII alphanumerics and underscore are not separators 646 // given ASCII character in the set. The 128-bits of the lower 16 bytes, 649 // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed, 650 // ensuring that any non-ASCII character will be reported as not in the set. 653 // makeASCIISet creates a set of ASCII characters and reports whether all 654 // characters in chars are ASCII. 802 // Fast check for ASCII [all...] |
/prebuilts/go/linux-x86/src/bytes/ |
bytes.go | 280 // This is an exact count if s is ASCII, otherwise it is an approximation. 294 // Some runes in the input slice are not ASCII. 298 // ASCII fast path 505 // ASCII alphanumerics and underscore are not separators 646 // given ASCII character in the set. The 128-bits of the lower 16 bytes, 649 // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed, 650 // ensuring that any non-ASCII character will be reported as not in the set. 653 // makeASCIISet creates a set of ASCII characters and reports whether all 654 // characters in chars are ASCII. 802 // Fast check for ASCII [all...] |
/prebuilts/go/darwin-x86/src/unicode/utf8/ |
utf8.go | 53 as = 0xF0 // ASCII: size 1 109 return true // ASCII, invalid or valid. 129 return true // ASCII, invalid, or valid. 158 // handling the ASCII and invalid cases accordingly. This mask-and-or 206 // handling the ASCII and invalid cases accordingly. This mask-and-or 378 // ASCII fast path 413 // ASCII fast path
|