public final class EmptyString extends UnicodeString
| Modifier and Type | Field and Description |
|---|---|
static EmptyString |
THE_INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
boolean |
isEnd(int pos)
Ask whether a given position is at (or beyond) the end of the string
|
int |
length() |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.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
|
EmptyString |
uSubstring(int beginIndex,
int endIndex)
Get a substring of this string
|
compareTo, containsSurrogatePairs, equals, getCodepointCollationKey, getMaxWidth, hashCode, makeUnicodeString, makeUnicodeStringpublic static final EmptyString THE_INSTANCE
public EmptyString 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 java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic int length()
public char charAt(int index)
public java.lang.CharSequence subSequence(int start,
int end)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.