public final class BMPString extends UnicodeString
EMPTY_STRING| Constructor and Description |
|---|
BMPString(CharSequence src) |
| 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, makeUnicodeStringpublic BMPString(CharSequence src)
src - - encapsulated CharSequence.
The client must ensure that this contains no surrogate pairspublic UnicodeString substring(int beginIndex, int endIndex)
UnicodeStringsubstring 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 charAt(int pos)
UnicodeStringcharAt in class UnicodeStringpos - the index of the required character (counting
codepoints, not 16-bit characters)public int indexOf(int search,
int pos)
UnicodeStringindexOf in class UnicodeStringsearch - the character to look forpos - the first position to lookpublic int length()
UnicodeStringlength in class UnicodeStringpublic boolean isEnd(int pos)
UnicodeStringisEnd in class UnicodeStringpos - the index of the required character (counting
codepoints, not 16-bit characters)public CharSequence getCharSequence()
UnicodeStringgetCharSequence in class UnicodeStringCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.