/packages/apps/Email/src/com/beetstra/jutf7/ |
Base64Util.java | 57 private final char[] alphabet;
field in class:Base64Util 61 * Initializes the class with the specified encoding/decoding alphabet.
63 * @param alphabet
64 * @throws IllegalArgumentException if alphabet is not 64 characters long or
67 Base64Util(final String alphabet) {
68 this.alphabet = alphabet.toCharArray();
69 if (alphabet.length() != ALPHABET_LENGTH)
70 throw new IllegalArgumentException("alphabet has incorrect length (should be 64, not "
71 + alphabet.length() + ")"); [all...] |
UTF7StyleCharset.java | 50 * First the base 64 alphabet used; in modified UTF-7 a slightly different
51 * alphabet is used. Additionally, it should be specified if encoders and
60 * @param alphabet The base 64 alphabet used
63 protected UTF7StyleCharset(String canonicalName, String[] aliases, String alphabet,
66 this.base64 = new Base64Util(alphabet);
|
/external/regex-re2/re2/testing/ |
exhaustive2_test.cc | 24 vector<string> alphabet = Explode("()*+?{}[]\\^$."); local 25 vector<string> escaped = alphabet; 29 2, alphabet, "", "");
|
exhaustive_tester.h | 17 // then generate all strings of a given length over a given alphabet, 28 const vector<string>& alphabet, 34 : RegexpGenerator(maxatoms, maxops, alphabet, ops), 71 const vector<string>& alphabet, 79 void EgrepTest(int maxatoms, int maxops, const string& alphabet,
|
random_test.cc | 22 const vector<string>& alphabet, 34 ExhaustiveTester t(maxatoms, maxops, alphabet, ops, 90 vector<string> alphabet = Explode("abc123\001\002\003\t\r\n\v\f\a"); local 91 RandomTest(10, 10, atoms, ops, 20, alphabet, "");
|
string_generator_test.cc | 26 // * strings of the same length are sorted in alphabet order. 31 // Assumes that the alphabet is sorted, so that the generated 33 static void RunTest(int len, string alphabet, bool donull) { 34 StringGenerator g(len, Explode(alphabet)); 52 // Check that all characters in s appear in alphabet. 56 EXPECT_TRUE(utfrune(alphabet.c_str(), r) != NULL); 73 int alpha = utflen(alphabet.c_str());
|
string_generator.h | 22 StringGenerator(int maxlen, const vector<string>& alphabet); 42 vector<string> alphabet_; // Alphabet, one string per letter. 48 vector<int> digits_; // Alphabet indices for next string.
|
string_generator.cc | 16 StringGenerator::StringGenerator(int maxlen, const vector<string>& alphabet) 17 : maxlen_(maxlen), alphabet_(alphabet),
|
exhaustive_tester.cc | 7 // Each test picks an alphabet (e.g., "abc"), a maximum string length, 146 const vector<string>& alphabet, 159 ExhaustiveTester t(maxatoms, maxops, alphabet, ops, 172 void EgrepTest(int maxatoms, int maxops, const string& alphabet, 179 Split("", alphabet),
|
possible_match_test.cc | 162 // then generate all strings of a given length over a given alphabet, 169 const vector<string>& alphabet, 173 : RegexpGenerator(maxatoms, maxops, alphabet, ops),
|
/frameworks/base/core/java/android/util/ |
Base64.java | 179 * Base64 alphabet. 239 final private int[] alphabet; field in class:Base64.Decoder 244 alphabet = ((flags & URL_SAFE) == 0) ? DECODE : DECODE_WEBSAFE; 271 // the loop. (Even alphabet makes a measurable 278 final int[] alphabet = this.alphabet; local 297 (value = ((alphabet[input[p] & 0xff] << 18) | 298 (alphabet[input[p+1] & 0xff] << 12) | 299 (alphabet[input[p+2] & 0xff] << 6) | 300 (alphabet[input[p+3] & 0xff]))) >= 0) 579 final private byte[] alphabet; field in class:Base64.Encoder [all...] |
/packages/apps/Music/src/com/android/music/ |
MusicAlphabetIndexer.java | 29 public MusicAlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) { 30 super(cursor, sortedColumnIndex, alphabet);
|
/external/guava/guava/src/com/google/common/io/ |
BaseEncoding.java | 89 * <th>Alphabet 110 * <td>"Numerical" base 32; extended from the traditional hex alphabet. Defaults to upper case. 307 * @throws IllegalArgumentException if this padding character is already used in the alphabet or a 318 * @throws IllegalArgumentException if any alphabet or padding characters appear in the separator 329 * @throws IllegalStateException if the alphabet used by this encoding contains mixed upper- and 339 * @throws IllegalStateException if the alphabet used by this encoding contains mixed upper- and 371 * with URL and Filename Safe Alphabet, also sometimes referred to as the "web safe Base64." 372 * (This is the same as the base 64 encoding with URL and filename safe alphabet from <a 412 * with Extended Hex Alphabet. There is no corresponding encoding in RFC 3548. 446 private static final class Alphabet extends CharMatcher [all...] |
/external/guava/guava-gwt/src-super/com/google/common/io/super/com/google/common/io/ |
BaseEncoding.java | 81 * <th>Alphabet 102 * <td>"Numerical" base 32; extended from the traditional hex alphabet. Defaults to upper case. 250 * @throws IllegalArgumentException if this padding character is already used in the alphabet or a 261 * @throws IllegalArgumentException if any alphabet or padding characters appear in the separator 272 * @throws IllegalStateException if the alphabet used by this encoding contains mixed upper- and 282 * @throws IllegalStateException if the alphabet used by this encoding contains mixed upper- and 314 * with URL and Filename Safe Alphabet, also sometimes referred to as the "web safe Base64." 315 * (This is the same as the base 64 encoding with URL and filename safe alphabet from <a 355 * with Extended Hex Alphabet. There is no corresponding encoding in RFC 3548. 389 private static final class Alphabet extends CharMatcher 508 private final Alphabet alphabet; field in class:BaseEncoding.StandardBaseEncoding [all...] |
/external/ltp/testcases/network/nfsv4/acl/ |
setacl_stress.py | 13 alphabet='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789_-()' variable 14 t_alphabet=len(alphabet)
|
test_long_acl.py | 13 alphabet='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789_-() ~' variable 14 t_alphabet=len(alphabet)
|
test_acl.py | 12 alphabet='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789_-() ~' variable 13 t_alphabet=len(alphabet)
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
Asn1IA5String.java | 46 private String alphabet = null; field in class:Asn1IA5String 74 protected void setAlphabet(String alphabet) { 75 Preconditions.checkNotNull(alphabet); 76 Preconditions.checkArgument(alphabet.length() > 0, "Empty alphabet"); 78 ByteBuffer buffer = StandardCharsets.US_ASCII.newEncoder().encode(CharBuffer.wrap(alphabet)); 82 this.alphabet = new String(canonicalValues, StandardCharsets.US_ASCII); 84 throw new IllegalArgumentException("Invalid alphabet " + alphabet, e); 107 Charset charset = (alphabet != null) ? new RestrictedCharset() : StandardCharsets.US_ASCII [all...] |
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
_anritsu_utils.py | 179 '''To encode text string with GSM 7-bit alphabet for common symbols''' 194 '''To decode text string with GSM 7-bit alphabet for common symbols''' 207 '''To encode text string with GSM 7-bit alphabet for common symbols'''
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
EditTextLongTextPerfTest.java | 77 String alphabet = "abcdefghijklmnopqrstuvwxyz"; local 83 char c = alphabet.charAt(r.nextInt(alphabet.length()));
|
/frameworks/base/core/java/android/widget/ |
AlphabetIndexer.java | 25 * If the items in the adapter are sorted by simple alphabet-based sorting, then 32 * index of a given section (alphabet). 52 * Cached length of the alphabet array. 68 * The section array converted from the alphabet string. 77 * @param alphabet string containing the alphabet, with space as the first character. 80 * characters in the alphabet will show up as preview letters. 82 public AlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) { 85 mAlphabet = alphabet; 86 mAlphabetLength = alphabet.length() [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
StringCaseMappingBenchmark.java | 64 private static String makeString(int length, String alphabet) { 67 sb.append(alphabet.charAt(i % alphabet.length()));
|
/frameworks/base/core/java/android/content/pm/ |
VerifierDeviceIdentity.java | 104 final char[] alphabet = ENCODE; local 130 encoded[--index] = alphabet[group]; 146 * This essentially does the reverse of the ENCODED alphabet above
|
/frameworks/minikin/libs/minikin/ |
Hyphenator.cpp | 136 // alphabet is not expected to contain a hyphen or a soft hyphen character, so alphabetLookup 332 const AlphabetTable0* alphabet = header->alphabetTable0(); local 333 uint32_t min_codepoint = alphabet->min_codepoint; 334 uint32_t max_codepoint = alphabet->max_codepoint; 341 uint8_t code = alphabet->data[c - min_codepoint]; 353 const AlphabetTable1* alphabet = header->alphabetTable1(); local 354 size_t n_entries = alphabet->n_entries; 355 const uint32_t* begin = alphabet->data; 381 * has been done by now, and all characters have been found in the alphabet.
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AlphabetIndexerTest.java | 38 private static final String ALPHABET = " ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 53 AlphabetIndexer indexer = new AlphabetIndexer(c1, SORTED_COLUMN_INDEX, ALPHABET); 58 assertEquals(ALPHABET.length(), sections.length); 59 assertEquals(ALPHABET.charAt(0), ((String[]) sections)[0].charAt(0)); 60 assertEquals(ALPHABET.charAt(1), ((String[]) sections)[1].charAt(0)); 61 assertEquals(ALPHABET.charAt(ALPHABET.length() - 2), 62 ((String[]) sections)[ALPHABET.length() - 2].charAt(0)); 63 assertEquals(ALPHABET.charAt(ALPHABET.length() - 1) [all...] |