public class CharAlphabet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
charCount
Number of characters in the alphabet.
|
private char[] |
chars
Characters in the alphabet.
|
static char[] |
CJKSUBSET
CJK subset; 12 letters, UNICODE U4E00
|
static char[] |
MODERNLATINLOWER
Modern latin, lowercase; a - z, 26 letters
|
private java.lang.String |
name
Name of the alphabet.
|
static char[] |
NO_DK_LOWER
Norwegian/Danish alphabet, lowercase; 29 letters
|
private int |
off
Current offset into the alphabet/character array.
|
static char[] |
TAMIL
Subset of Tamil alphabet; 46 letters, UNICODE U0B80
|
Modifier | Constructor and Description |
---|---|
private |
CharAlphabet(java.lang.String name,
char[] chars)
Create an alphabet with the given name and characters.
|
Modifier and Type | Method and Description |
---|---|
int |
charCount()
Return the number of characters in the alphabet.
|
static CharAlphabet |
cjkSubset()
Get a CJK subset alphabet.
|
CharAlphabet |
getClone()
Returns a clone of the alphabet.
|
java.lang.String |
getName()
Return the name of the alphabet.
|
static CharAlphabet |
modernLatinLowercase()
Get a modern latin lowercase alphabet.
|
char |
nextChar()
Return the next char.
|
int |
nextCharAsInt()
Return the next char as an
integer . |
int |
nextCharToRead(int charsRead)
Compute the next character to read after reading the specified number
of characters.
|
void |
reset()
Reset the alphabet, the next character returned will be the first
character in the alphabet.
|
static CharAlphabet |
singleChar(char ch)
Get an alphabet consisting of a single character.
|
static CharAlphabet |
tamil()
Get a Tamil alphabet
|
java.lang.String |
toString()
Returns a friendlier textual representation of the alphabet.
|
public static char[] MODERNLATINLOWER
public static char[] NO_DK_LOWER
public static char[] TAMIL
public static char[] CJKSUBSET
private final java.lang.String name
private final char[] chars
private final int charCount
private int off
private CharAlphabet(java.lang.String name, char[] chars)
name
- name of the alphabetchars
- characters in the alphabet.public static CharAlphabet modernLatinLowercase()
public static CharAlphabet cjkSubset()
public static CharAlphabet tamil()
public static CharAlphabet singleChar(char ch)
public java.lang.String getName()
public int charCount()
public int nextCharAsInt()
integer
.integer
public char nextChar()
public int nextCharToRead(int charsRead)
charsRead
- the number of characters readpublic void reset()
public CharAlphabet getClone()
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.