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, makeUnicodeString
public static final EmptyString THE_INSTANCE
public EmptyString uSubstring(int beginIndex, int endIndex)
UnicodeString
uSubstring
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 uCharAt(int pos)
UnicodeString
uCharAt
in class UnicodeString
pos
- the index of the required character (counting
codepoints, not 16-bit characters)public int uIndexOf(int search, int pos)
UnicodeString
uIndexOf
in class UnicodeString
search
- the character to look forpos
- the first position to lookpublic int uLength()
UnicodeString
uLength
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 java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public 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.