public class TString extends TObject implements TSerializable, TComparable<TString>, TCharSequence
Modifier and Type | Field and Description |
---|---|
static TComparator<TString> |
CASE_INSENSITIVE_ORDER |
Constructor and Description |
---|
TString() |
TString(byte[] bytes) |
TString(byte[] bytes,
int offset,
int length) |
TString(byte[] bytes,
int offset,
int length,
TCharset charset) |
TString(byte[] bytes,
int offset,
int length,
TString charsetName) |
TString(byte[] bytes,
TCharset charset) |
TString(byte[] bytes,
TString charsetName) |
TString(char[] characters) |
TString(char[] value,
int offset,
int count) |
TString(int[] codePoints,
int offset,
int count) |
TString(TString other) |
TString(TStringBuilder sb) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
int |
codePointAt(int index) |
int |
codePointBefore(int index) |
int |
codePointCount(int beginIndex,
int endIndex) |
int |
compareTo(TString anotherString) |
int |
compareToIgnoreCase(TString anotherString) |
TString |
concat(TString str) |
boolean |
contains(TCharSequence s) |
boolean |
contentEquals(TCharSequence charSeq) |
boolean |
contentEquals(TStringBuffer buffer) |
static TString |
copyValueOf(char[] data) |
static TString |
copyValueOf(char[] data,
int offset,
int count) |
boolean |
endsWith(TString suffix) |
boolean |
equals(Object other) |
boolean |
equalsIgnoreCase(TString other) |
static String |
format(Locale l,
String format,
Object... args) |
static String |
format(String format,
Object... args) |
byte[] |
getBytes() |
byte[] |
getBytes(TCharset charset) |
byte[] |
getBytes(TString charsetName) |
void |
getChars(int srcBegin,
int srcEnd,
char[] dst,
int dstBegin) |
int |
hashCode() |
int |
indexOf(int ch) |
int |
indexOf(int ch,
int fromIndex) |
int |
indexOf(TString str) |
int |
indexOf(TString str,
int fromIndex) |
TString |
intern() |
boolean |
isEmpty() |
static String |
join(CharSequence delimiter,
CharSequence... elements) |
static String |
join(CharSequence delimiter,
Iterable<? extends CharSequence> elements) |
int |
lastIndexOf(int ch) |
int |
lastIndexOf(int ch,
int fromIndex) |
int |
lastIndexOf(TString str) |
int |
lastIndexOf(TString str,
int fromIndex) |
int |
length() |
boolean |
matches(String regex) |
int |
offsetByCodePoints(int index,
int codePointOffset) |
boolean |
regionMatches(boolean ignoreCase,
int toffset,
String other,
int ooffset,
int len) |
boolean |
regionMatches(int toffset,
TString other,
int ooffset,
int len) |
TString |
replace(char oldChar,
char newChar) |
String |
replace(TCharSequence target,
TCharSequence replacement) |
String |
replaceAll(String regex,
String replacement) |
String |
replaceFirst(String regex,
String replacement) |
String[] |
split(String regex) |
String[] |
split(String regex,
int limit) |
boolean |
startsWith(TString prefix) |
boolean |
startsWith(TString prefix,
int toffset) |
TCharSequence |
subSequence(int beginIndex,
int endIndex) |
TString |
substring(int beginIndex) |
TString |
substring(int beginIndex,
int endIndex) |
char[] |
toCharArray() |
TString |
toLowerCase() |
TString |
toLowerCase(TLocale locale) |
String |
toString() |
TString |
toUpperCase() |
TString |
toUpperCase(TLocale locale) |
TString |
trim() |
static String |
valueOf(boolean b) |
static String |
valueOf(char c) |
static TString |
valueOf(char[] data) |
static TString |
valueOf(char[] data,
int offset,
int count) |
static String |
valueOf(double d) |
static String |
valueOf(float f) |
static String |
valueOf(int i) |
static String |
valueOf(long l) |
static String |
valueOf(Object obj) |
public static final TComparator<TString> CASE_INSENSITIVE_ORDER
public TString()
public TString(TString other)
public TString(char[] characters)
public TString(char[] value, int offset, int count)
public TString(byte[] bytes, int offset, int length, TString charsetName) throws TUnsupportedEncodingException
TUnsupportedEncodingException
public TString(byte[] bytes, int offset, int length, TCharset charset)
public TString(byte[] bytes, int offset, int length)
public TString(byte[] bytes)
public TString(byte[] bytes, TString charsetName) throws TUnsupportedEncodingException
TUnsupportedEncodingException
public TString(byte[] bytes, TCharset charset)
public TString(int[] codePoints, int offset, int count)
public TString(TStringBuilder sb)
public char charAt(int index)
charAt
in interface TCharSequence
public int codePointAt(int index)
public int codePointBefore(int index)
public int codePointCount(int beginIndex, int endIndex)
public int offsetByCodePoints(int index, int codePointOffset)
public int length()
length
in interface TCharSequence
public boolean isEmpty()
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
public boolean contentEquals(TStringBuffer buffer)
public boolean contentEquals(TCharSequence charSeq)
public int compareTo(TString anotherString)
compareTo
in interface TComparable<TString>
public int compareToIgnoreCase(TString anotherString)
public boolean startsWith(TString prefix, int toffset)
public boolean startsWith(TString prefix)
public boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)
public boolean regionMatches(int toffset, TString other, int ooffset, int len)
public boolean endsWith(TString suffix)
public int indexOf(int ch, int fromIndex)
public int indexOf(int ch)
public int lastIndexOf(int ch, int fromIndex)
public int lastIndexOf(int ch)
public int indexOf(TString str, int fromIndex)
public int indexOf(TString str)
public int lastIndexOf(TString str, int fromIndex)
public int lastIndexOf(TString str)
public TString substring(int beginIndex, int endIndex)
public TString substring(int beginIndex)
public TCharSequence subSequence(int beginIndex, int endIndex)
subSequence
in interface TCharSequence
public TString replace(char oldChar, char newChar)
public boolean contains(TCharSequence s)
public String replace(TCharSequence target, TCharSequence replacement)
public TString trim()
public String toString()
toString
in interface TCharSequence
toString
in class TObject
public char[] toCharArray()
public static TString valueOf(char[] data)
public static TString valueOf(char[] data, int offset, int count)
public static TString copyValueOf(char[] data)
public static TString copyValueOf(char[] data, int offset, int count)
public static String valueOf(boolean b)
public static String valueOf(char c)
public static String valueOf(int i)
public static String valueOf(long l)
public static String valueOf(float f)
public static String valueOf(double d)
public boolean equalsIgnoreCase(TString other)
public byte[] getBytes(TString charsetName) throws TUnsupportedEncodingException
TUnsupportedEncodingException
public byte[] getBytes()
public byte[] getBytes(TCharset charset)
public TString toLowerCase()
public TString toUpperCase()
public TString intern()
public boolean matches(String regex)
public static String join(CharSequence delimiter, CharSequence... elements)
public static String join(CharSequence delimiter, Iterable<? extends CharSequence> elements)
Copyright © 2019. All rights reserved.