Searched refs:alphabet (Results 1 – 3 of 3) sorted by relevance
46 private String alphabet = null; field in Asn1IA5String74 protected void setAlphabet(String alphabet) { in setAlphabet() argument75 Preconditions.checkNotNull(alphabet); in setAlphabet()76 Preconditions.checkArgument(alphabet.length() > 0, "Empty alphabet"); in setAlphabet()78 ByteBuffer buffer = StandardCharsets.US_ASCII.newEncoder().encode(CharBuffer.wrap(alphabet)); in setAlphabet()82 this.alphabet = new String(canonicalValues, StandardCharsets.US_ASCII); in setAlphabet()84 throw new IllegalArgumentException("Invalid alphabet " + alphabet, e); in setAlphabet()107 Charset charset = (alphabet != null) ? new RestrictedCharset() : StandardCharsets.US_ASCII; in setValue()193 if (alphabet != null) { in calculateBitsPerCharacter()195 if (1 << i >= alphabet.length()) { in calculateBitsPerCharacter()[all …]
138 public MyAlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) {139 super(cursor, sortedColumnIndex, alphabet);
815 final String alphabet = "abcdefghijklmnopqrstuvwxyz"; in randomLetter() local816 return alphabet.charAt(random.nextInt(alphabet.length())); in randomLetter()