public final class LatinString extends UnicodeString
| Modifier and Type | Field and Description | 
|---|---|
| static LatinString | EMPTY | 
| static LatinString | SINGLE_SPACE | 
EMPTY_STRING| Constructor and Description | 
|---|
| LatinString(CharSequence src)Create a LatinString | 
| Modifier and Type | Method and Description | 
|---|---|
| char | charAt(int index)Returns the  charvalue at the specified index. | 
| boolean | equals(Object obj)Implementations of UnicodeString can be compared with each other, but not with
 other implementations of CharSequence | 
| boolean | isEnd(int pos)Ask whether a given position is at (or beyond) the end of the string | 
| int | length()Returns the length of this character sequence. | 
| CharSequence | subSequence(int start,
           int end)Returns a new  CharSequencethat is a subsequence of this sequence. | 
| String | toString() | 
| int | uCharAt(int pos)Get the character at a specified position | 
| int | uIndexOf(int search,
        int pos)Get the first match for a given character | 
| int | uLength()Get the length of the string, in Unicode codepoints | 
| LatinString | uSubstring(int beginIndex,
          int endIndex)Get a substring of this string | 
compareTo, containsSurrogatePairs, getMaxWidth, hashCode, makeUnicodeString, makeUnicodeStringpublic static final LatinString EMPTY
public static final LatinString SINGLE_SPACE
public LatinString(CharSequence src)
src - The string value. The caller must ensure that this contains no characters > 255public LatinString uSubstring(int beginIndex, int endIndex)
UnicodeStringuSubstring in class UnicodeStringbeginIndex - the index of the first character to be included (counting
                   codepoints, not 16-bit characters)endIndex - the index of the first character to be NOT included (counting
                   codepoints, not 16-bit characters)public int uCharAt(int pos)
UnicodeStringuCharAt in class UnicodeStringpos - the index of the required character (counting
            codepoints, not 16-bit characters)public int uIndexOf(int search,
           int pos)
UnicodeStringuIndexOf in class UnicodeStringsearch - the character to look forpos - the first position to lookpublic int uLength()
UnicodeStringuLength in class UnicodeStringpublic boolean isEnd(int pos)
UnicodeStringisEnd in class UnicodeStringpos - the index of the required character (counting
            codepoints, not 16-bit characters)public String toString()
toString in interface CharSequencetoString in class Objectpublic int length()
chars in the sequence.chars in this sequencepublic char charAt(int index)
char value at the specified index.  An index ranges from zero
 to length() - 1.  The first char value of the sequence is at
 index zero, the next at index one, and so on, as for array
 indexing. 
 
 If the char value specified by the index is a
 surrogate, the surrogate
 value is returned.
index - the index of the char value to be returnedchar valueIndexOutOfBoundsException - if the index argument is negative or not less than
                                   length()public CharSequence subSequence(int start, int end)
CharSequence that is a subsequence of this sequence.
 The subsequence starts with the char value at the specified index and
 ends with the char value at index end - 1.  The length
 (in chars) of the
 returned sequence is end - start, so if start == end
 then an empty sequence is returned. start - the start index, inclusiveend - the end index, exclusiveIndexOutOfBoundsException - if start or end are negative,
                                   if end is greater than length(),
                                   or if start is greater than endpublic boolean equals(Object obj)
UnicodeStringequals in class UnicodeStringobj - the object to be comparedCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.