public class StringOps extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DFLT_CHARSET |
protected static char |
DFLT_QUOTE |
Constructor and Description |
---|
StringOps() |
Modifier and Type | Method and Description |
---|---|
static String |
boolAsString(boolean bval) |
static String |
convert(byte[] buf,
String charset) |
static int |
count(CharSequence container,
char target) |
static int |
count(CharSequence container,
int coff,
int clen,
char target) |
static int |
count(String container,
String target) |
static int |
digits(int numval) |
static boolean |
erase(String str) |
static String |
fill(char ch,
int size) |
static String |
flatten(String str,
int maxlen) |
static int |
indexOf(CharSequence container,
char target) |
static int |
indexOf(CharSequence container,
CharSequence target) |
static int |
indexOf(CharSequence container,
int off,
char target) |
static int |
indexOf(CharSequence container,
int coff,
int clen,
char target) |
static int |
indexOf(CharSequence container,
int coff,
int clen,
CharSequence target) |
static int |
indexOfNoCase(CharSequence container,
char target) |
static int |
indexOfNoCase(CharSequence container,
CharSequence target) |
static int |
indexOfNoCase(CharSequence container,
int off,
char target) |
static int |
indexOfNoCase(CharSequence container,
int coff,
int clen,
char target) |
static int |
indexOfNoCase(CharSequence container,
int coff,
int clen,
CharSequence target) |
static String |
keepLeadingParts(String str,
String dlm,
int cnt) |
static String |
keepTrailingParts(String str,
String dlm,
int cnt) |
static String |
leadingChars(String str,
int cnt) |
static long |
parseNumber(CharSequence cs,
int radix) |
static long |
parseNumber(CharSequence cs,
int off,
int len,
int radix) |
static boolean |
sameSeq(CharSequence str1,
CharSequence str2) |
static boolean |
sameSeq(CharSequence str1,
int off1,
int len1,
CharSequence str2) |
static boolean |
sameSeq(CharSequence str1,
int off1,
int len1,
CharSequence str2,
int off2,
int len2) |
static boolean |
sameSeqNoCase(CharSequence str1,
CharSequence str2) |
static boolean |
sameSeqNoCase(CharSequence str1,
int off1,
int len1,
CharSequence str2) |
static boolean |
sameSeqNoCase(CharSequence str1,
int off1,
int len1,
CharSequence str2,
int off2,
int len2) |
static boolean |
stringAsBool(String strval) |
static String |
stripLeadingParts(String str,
String dlm,
int cnt) |
static String |
stripQuotes(String str) |
static String |
stripQuotes(String str,
char quote) |
static String |
stripTrailingParts(String str,
String dlm,
int cnt) |
static String |
trailingChars(String str,
int cnt) |
static StringBuilder |
zeroPad(StringBuilder sbuf,
int numval,
int size) |
public static final String DFLT_CHARSET
protected static final char DFLT_QUOTE
public static int count(CharSequence container, char target)
public static int indexOf(CharSequence container, char target)
public static int indexOf(CharSequence container, int off, char target)
public static int indexOf(CharSequence container, int coff, int clen, char target)
public static int indexOf(CharSequence container, CharSequence target)
public static int indexOf(CharSequence container, int coff, int clen, CharSequence target)
public static int indexOfNoCase(CharSequence container, char target)
public static int indexOfNoCase(CharSequence container, int off, char target)
public static int indexOfNoCase(CharSequence container, int coff, int clen, char target)
public static int indexOfNoCase(CharSequence container, CharSequence target)
public static int indexOfNoCase(CharSequence container, int coff, int clen, CharSequence target)
public static boolean sameSeq(CharSequence str1, CharSequence str2)
public static boolean sameSeq(CharSequence str1, int off1, int len1, CharSequence str2)
public static boolean sameSeq(CharSequence str1, int off1, int len1, CharSequence str2, int off2, int len2)
public static boolean sameSeqNoCase(CharSequence str1, CharSequence str2)
public static boolean sameSeqNoCase(CharSequence str1, int off1, int len1, CharSequence str2)
public static boolean sameSeqNoCase(CharSequence str1, int off1, int len1, CharSequence str2, int off2, int len2)
public static long parseNumber(CharSequence cs, int radix)
public static boolean stringAsBool(String strval)
public static String boolAsString(boolean bval)
public static int count(CharSequence container, int coff, int clen, char target)
public static StringBuilder zeroPad(StringBuilder sbuf, int numval, int size)
public static int digits(int numval)
public static long parseNumber(CharSequence cs, int off, int len, int radix)
public static String fill(char ch, int size)
public static boolean erase(String str)
public static String convert(byte[] buf, String charset) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.