public final class UnescapedCharSequence extends Object implements CharSequence
Constructor and Description |
---|
UnescapedCharSequence(char[] chars,
boolean[] wasEscaped,
int offset,
int length)
Create a escaped CharSequence
|
UnescapedCharSequence(CharSequence text)
Create a non-escaped CharSequence
|
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
static CharSequence |
toLowerCase(CharSequence text,
Locale locale) |
String |
toString() |
String |
toStringEscaped()
Return a escaped String
|
String |
toStringEscaped(char[] enabledChars)
Return a escaped String
|
static boolean |
wasEscaped(CharSequence text,
int index) |
boolean |
wasEscaped(int index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
public UnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset, int length)
public UnescapedCharSequence(CharSequence text)
public char charAt(int index)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public String toString()
toString
in interface CharSequence
toString
in class Object
public String toStringEscaped()
public String toStringEscaped(char[] enabledChars)
enabledChars
- - array of chars to be escapedpublic boolean wasEscaped(int index)
public static final boolean wasEscaped(CharSequence text, int index)
public static CharSequence toLowerCase(CharSequence text, Locale locale)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.