public final class GeneralUnicodeString extends UnicodeString
EMPTY_STRING
Constructor and Description |
---|
GeneralUnicodeString(CharSequence in) |
Modifier and Type | Method and Description |
---|---|
int |
charAt(int pos)
Get the character at a specified position
|
CharSequence |
getCharSequence()
Get the value of this UnicodeString as a CharSequence
|
int |
indexOf(int search,
int pos)
Get the first match for a given character
|
boolean |
isEnd(int pos)
Ask whether a given position is at (or beyond) the end of the string
|
int |
length()
Get the length of the string, in Unicode codepoints
|
UnicodeString |
substring(int beginIndex,
int endIndex)
Get a substring of this string
|
String |
toString() |
containsSurrogatePairs, makeUnicodeString, makeUnicodeString
public GeneralUnicodeString(CharSequence in)
public UnicodeString substring(int beginIndex, int endIndex)
UnicodeString
substring
in class UnicodeString
beginIndex
- 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 charAt(int pos)
UnicodeString
charAt
in class UnicodeString
pos
- the index of the required character (counting
codepoints, not 16-bit characters)public int indexOf(int search, int pos)
UnicodeString
indexOf
in class UnicodeString
search
- the character to look forpos
- the first position to lookpublic int length()
UnicodeString
length
in class UnicodeString
public boolean isEnd(int pos)
UnicodeString
isEnd
in class UnicodeString
pos
- the index of the required character (counting
codepoints, not 16-bit characters)public CharSequence getCharSequence()
UnicodeString
getCharSequence
in class UnicodeString
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.