Searched refs:alphabet (Results 1 – 4 of 4) sorted by relevance
47 private String alphabet = null; field in Asn1IA5String75 protected void setAlphabet(String alphabet) { in setAlphabet() argument76 Objects.requireNonNull(alphabet); in setAlphabet()77 Preconditions.checkArgument(alphabet.length() > 0, "Empty alphabet"); in setAlphabet()79 ByteBuffer buffer = StandardCharsets.US_ASCII.newEncoder().encode(CharBuffer.wrap(alphabet)); in setAlphabet()83 this.alphabet = new String(canonicalValues, StandardCharsets.US_ASCII); in setAlphabet()85 throw new IllegalArgumentException("Invalid alphabet " + alphabet, e); in setAlphabet()108 Charset charset = (alphabet != null) ? new RestrictedCharset() : StandardCharsets.US_ASCII; in setValue()194 if (alphabet != null) { in calculateBitsPerCharacter()196 if (1 << i >= alphabet.length()) { in calculateBitsPerCharacter()[all …]
138 public MyAlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) {139 super(cursor, sortedColumnIndex, alphabet);
227 final char[] alphabet = ENCODE; in encodeBase32() local253 encoded[--index] = alphabet[group]; in encodeBase32()
815 final String alphabet = "abcdefghijklmnopqrstuvwxyz"; in randomLetter() local816 return alphabet.charAt(random.nextInt(alphabet.length())); in randomLetter()