Class ZString
java.lang.Object
|
+----ZString
- public class ZString
- extends Object
-
ZString()
-
-
ZString(byte[], int)
-
-
ZString(byte[], int, int, int)
-
-
ZString(char[])
-
-
ZString(char[], int, int)
-
-
ZString(String)
-
-
ZString(StringBuffer)
-
-
ZString(ZString)
-
-
add(char)
-
-
add(String)
-
-
add(ZString)
-
-
addChar(char)
-
-
addNChars(int, char)
-
-
append(char)
-
-
append(String)
-
-
append(ZString)
-
-
appendChar(char)
-
-
appendNChars(int, char)
-
-
arrange()
-
-
charAt(int)
-
-
check(ZString)
-
-
check(ZString, char)
-
-
check(ZString, char, boolean)
-
-
clear()
-
-
compact(int)
-
-
compareTo(ZString)
-
-
concat(String)
-
-
copyValueOf(char[])
-
-
copyValueOf(char[], int, int)
-
-
countOccurences(char)
-
-
countOccurences(String)
-
-
countOccurences(ZString)
-
-
deleteAll(char)
-
-
deleteAll(String)
-
-
deleteAll(ZString)
-
-
deleteAllBut(String)
-
-
deleteAllBut(ZString)
-
-
deleteAllNewlines()
-
-
deleteAllQuotes()
-
-
deleteAllSpaces()
-
-
deleteChar()
-
-
deleteChar(int)
-
-
deleteCharIf(int, char)
-
-
deleteFirstChar()
-
-
deleteFirstCharIf(char)
-
-
deleteFirstNChars(int)
-
-
deleteHeadUntil(char)
-
-
deleteHeadUntilNot(char)
-
-
deleteLastChar()
-
-
deleteLastCharIf(char)
-
-
deleteLastCharIfNewline()
-
-
deleteLastNChars(int)
-
-
deleteNChars(int)
-
-
deleteNChars(int, int)
-
-
deleteParenthesis()
-
-
deleteQuotes()
-
-
deleteTailUntil(char)
-
-
deleteTailUntilNot(char)
-
-
endsWith(ZString)
-
-
equals(Object)
-
-
equalsIgnoreCase(ZString)
-
-
fillWithChars(char)
-
-
fillWithNChars(int, char)
-
-
findADigit()
-
-
findButADigit()
-
-
findNearestCharAt(char, int)
-
-
findNearestCharAtBeginning(char)
-
-
findNearestCharAtEnd(char)
-
-
findNearestCharAtLeft(char, int)
-
-
findNearestCharAtRight(char, int)
-
-
findNearestDifferentCharAt(char, int)
-
-
findNearestDifferentCharAtBeginning(char)
-
-
findNearestDifferentCharAtEnd(char)
-
-
findNearestDifferentCharAtLeft(char, int)
-
-
findNearestDifferentCharAtRight(char, int)
-
-
firstChar()
-
-
firstHalf()
-
-
firstNChars(int)
-
-
getBytes(int, int, byte[], int)
-
-
getChars(int, int, char[], int)
-
-
hashCode()
-
-
hasParenthesis()
-
-
hasQuotes()
-
-
indexOf(int)
-
-
indexOf(int, int)
-
-
indexOf(String)
-
-
indexOf(String, int)
-
-
insert(char)
-
-
insert(char, int)
-
-
insert(String)
-
-
insert(String, int)
-
-
insert(ZString)
-
-
insert(ZString, int)
-
-
insertChar(char)
-
-
insertChar(char, int)
-
-
insertNChars(int, char)
-
-
insertNChars(int, char, int)
-
-
insertNewlineChar()
-
-
insertNewlineChar(int)
-
-
insertParenthesis()
-
-
insertQuotes()
-
-
intern()
-
-
isCharAt(char, int)
-
-
isNewlineAt(int)
-
-
isQuoteAt(int)
-
-
isSpaceAt(int)
-
-
lastChar()
-
-
lastIndexOf(int)
-
-
lastIndexOf(int, int)
-
-
lastIndexOf(String)
-
-
lastIndexOf(String, int)
-
-
lastNChars(int)
-
-
length()
-
-
minus(char)
-
-
minus(String)
-
-
minus(ZString)
-
-
minusChar(char)
-
-
nChars(int, int)
-
-
plus(char)
-
-
plus(String)
-
-
plus(ZString)
-
-
plusChar(char)
-
-
plusNChars(int, char)
-
-
regionMatches(boolean, int, ZString, int, int)
-
-
regionMatches(int, ZString, int, int)
-
-
replace(char, char)
-
-
reverse()
-
-
rotateLeft()
-
-
rotateRight()
-
-
secondHalf()
-
-
set(char)
-
-
set(String)
-
-
set(ZString)
-
-
shiftLeft()
-
-
shiftLeft(char)
-
-
shiftRight()
-
-
shiftRight(char)
-
-
shorten(int)
-
-
startsWith(ZString)
-
-
startsWith(ZString, int)
-
-
substring(int)
-
-
substring(int, int)
-
-
subtract(char)
-
-
subtract(String)
-
-
subtract(ZString)
-
-
subtractChar(char)
-
-
toCharArray()
-
-
toLowerCase()
-
-
toLowerCaseAll(char)
-
-
toLowerCaseAll(String)
-
-
toLowerCaseAll(ZString)
-
-
toLowerCaseAllBut(char)
-
-
toLowerCaseAllBut(String)
-
-
toLowerCaseAllBut(ZString)
-
-
toString()
-
-
toUpperCase()
-
-
toUpperCaseAll(char)
-
-
toUpperCaseAll(String)
-
-
toUpperCaseAll(ZString)
-
-
toUpperCaseAllBut(char)
-
-
toUpperCaseAllBut(String)
-
-
toUpperCaseAllBut(ZString)
-
-
toZString()
-
-
trim()
-
-
validate(ZString)
-
-
validate(ZString, ZString)
-
-
validate(ZString, ZString, char)
-
-
validate(ZString, ZString, char, boolean)
-
-
valueOf(boolean)
-
-
valueOf(char)
-
-
valueOf(char[])
-
-
valueOf(char[], int, int)
-
-
valueOf(double)
-
-
valueOf(float)
-
-
valueOf(int)
-
-
valueOf(long)
-
-
valueOf(Object)
-
-
valueOf(String)
-
ZString
public ZString(ZString value)
ZString
public ZString(String value)
ZString
public ZString(char value[])
ZString
public ZString(char value[],
int offset,
int count)
ZString
public ZString(byte ascii[],
int hibyte,
int offset,
int count)
ZString
public ZString(byte ascii[],
int hibyte)
ZString
public ZString(StringBuffer buffer)
ZString
public ZString()
length
public int length()
charAt
public char charAt(int index)
getChars
public void getChars(int srcBegin,
int srcEnd,
char dst[],
int dstBegin)
getBytes
public void getBytes(int srcBegin,
int srcEnd,
byte dst[],
int dstBegin)
equals
public boolean equals(Object anObject)
- Overrides:
- equals in class Object
equalsIgnoreCase
public boolean equalsIgnoreCase(ZString anotherString)
compareTo
public int compareTo(ZString anotherString)
regionMatches
public boolean regionMatches(int toffset,
ZString other,
int ooffset,
int len)
regionMatches
public boolean regionMatches(boolean ignoreCase,
int toffset,
ZString other,
int ooffset,
int len)
startsWith
public boolean startsWith(ZString prefix,
int toffset)
startsWith
public boolean startsWith(ZString prefix)
endsWith
public boolean endsWith(ZString suffix)
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
indexOf
public int indexOf(int ch)
indexOf
public int indexOf(int ch,
int fromIndex)
lastIndexOf
public int lastIndexOf(int ch)
lastIndexOf
public int lastIndexOf(int ch,
int fromIndex)
indexOf
public int indexOf(String str)
indexOf
public int indexOf(String str,
int fromIndex)
lastIndexOf
public int lastIndexOf(String str)
lastIndexOf
public int lastIndexOf(String str,
int fromIndex)
substring
public ZString substring(int beginIndex)
substring
public ZString substring(int beginIndex,
int endIndex)
concat
public ZString concat(String str)
replace
public ZString replace(char oldChar,
char newChar)
toLowerCase
public ZString toLowerCase()
toUpperCase
public ZString toUpperCase()
trim
public ZString trim()
toString
public String toString()
- Overrides:
- toString in class Object
toCharArray
public char[] toCharArray()
valueOf
public static ZString valueOf(Object obj)
valueOf
public static ZString valueOf(char data[])
valueOf
public static ZString valueOf(char data[],
int offset,
int count)
copyValueOf
public static ZString copyValueOf(char data[],
int offset,
int count)
copyValueOf
public static ZString copyValueOf(char data[])
valueOf
public static ZString valueOf(boolean b)
valueOf
public static ZString valueOf(char c)
valueOf
public static ZString valueOf(int i)
valueOf
public static ZString valueOf(long l)
valueOf
public static ZString valueOf(float f)
valueOf
public static ZString valueOf(double d)
intern
public ZString intern()
toZString
public ZString toZString()
valueOf
public static ZString valueOf(String s)
firstChar
public char firstChar()
lastChar
public char lastChar()
nChars
public ZString nChars(int n,
int pos)
firstNChars
public ZString firstNChars(int n)
lastNChars
public ZString lastNChars(int n)
firstHalf
public ZString firstHalf()
secondHalf
public ZString secondHalf()
isCharAt
public boolean isCharAt(char c,
int pos)
isSpaceAt
public boolean isSpaceAt(int pos)
isNewlineAt
public boolean isNewlineAt(int pos)
isQuoteAt
public boolean isQuoteAt(int pos)
clear
public void clear()
set
public void set(String s)
set
public void set(ZString s)
set
public void set(char c)
add
public void add(String s)
add
public void add(ZString s)
add
public void add(char c)
addChar
public void addChar(char c)
addNChars
public void addNChars(int n,
char c)
plus
public void plus(String s)
plus
public void plus(ZString s)
plus
public void plus(char c)
plusChar
public void plusChar(char c)
plusNChars
public void plusNChars(int n,
char c)
append
public void append(String s)
append
public void append(ZString s)
append
public void append(char c)
appendChar
public void appendChar(char c)
appendNChars
public void appendNChars(int n,
char c)
subtract
public void subtract(String s)
subtract
public void subtract(ZString s)
subtract
public void subtract(char c)
subtractChar
public void subtractChar(char c)
minus
public void minus(String s)
minus
public void minus(ZString s)
minus
public void minus(char c)
minusChar
public void minusChar(char c)
insert
public void insert(String s,
int pos)
insert
public void insert(String s)
insert
public void insert(ZString s,
int pos)
insert
public void insert(ZString s)
insert
public void insert(char c,
int pos)
insert
public void insert(char c)
insertChar
public void insertChar(char c,
int pos)
insertChar
public void insertChar(char c)
insertNChars
public void insertNChars(int n,
char c,
int pos)
insertNChars
public void insertNChars(int n,
char c)
insertNewlineChar
public void insertNewlineChar(int pos)
insertNewlineChar
public void insertNewlineChar()
insertQuotes
public void insertQuotes()
hasQuotes
public boolean hasQuotes()
deleteQuotes
public boolean deleteQuotes()
insertParenthesis
public void insertParenthesis()
hasParenthesis
public boolean hasParenthesis()
deleteParenthesis
public boolean deleteParenthesis()
deleteNChars
public void deleteNChars(int n,
int pos)
deleteNChars
public void deleteNChars(int n)
deleteFirstNChars
public void deleteFirstNChars(int n)
deleteFirstChar
public void deleteFirstChar()
deleteFirstCharIf
public void deleteFirstCharIf(char c)
deleteChar
public void deleteChar(int pos)
deleteChar
public void deleteChar()
deleteCharIf
public void deleteCharIf(int pos,
char c)
deleteLastNChars
public void deleteLastNChars(int n)
deleteLastChar
public void deleteLastChar()
deleteLastCharIf
public void deleteLastCharIf(char c)
deleteLastCharIfNewline
public void deleteLastCharIfNewline()
deleteTailUntil
public void deleteTailUntil(char c)
deleteTailUntilNot
public void deleteTailUntilNot(char c)
deleteHeadUntil
public void deleteHeadUntil(char c)
deleteHeadUntilNot
public void deleteHeadUntilNot(char c)
deleteAll
public void deleteAll(String s)
deleteAll
public void deleteAll(ZString s)
deleteAll
public void deleteAll(char c)
deleteAllSpaces
public void deleteAllSpaces()
deleteAllNewlines
public void deleteAllNewlines()
deleteAllQuotes
public void deleteAllQuotes()
deleteAllBut
public void deleteAllBut(String s)
deleteAllBut
public void deleteAllBut(ZString s)
toUpperCaseAll
public void toUpperCaseAll(String s)
toUpperCaseAll
public void toUpperCaseAll(ZString s)
toUpperCaseAll
public void toUpperCaseAll(char c)
toLowerCaseAll
public void toLowerCaseAll(String s)
toLowerCaseAll
public void toLowerCaseAll(ZString s)
toLowerCaseAll
public void toLowerCaseAll(char c)
toUpperCaseAllBut
public void toUpperCaseAllBut(String s)
toUpperCaseAllBut
public void toUpperCaseAllBut(ZString s)
toUpperCaseAllBut
public void toUpperCaseAllBut(char c)
toLowerCaseAllBut
public void toLowerCaseAllBut(String s)
toLowerCaseAllBut
public void toLowerCaseAllBut(ZString s)
toLowerCaseAllBut
public void toLowerCaseAllBut(char c)
shiftLeft
public void shiftLeft()
shiftLeft
public void shiftLeft(char c)
shiftRight
public void shiftRight()
shiftRight
public void shiftRight(char c)
rotateLeft
public void rotateLeft()
rotateRight
public void rotateRight()
reverse
public void reverse()
fillWithNChars
public void fillWithNChars(int n,
char c)
fillWithChars
public void fillWithChars(char c)
shorten
public void shorten(int pos)
compact
public void compact(int pos)
arrange
public void arrange()
validate
public int validate(ZString invalidValues,
ZString defaultValue,
char separatorChar,
boolean ignoreCase)
validate
public int validate(ZString invalidValues,
ZString defaultValue,
char separatorChar)
validate
public int validate(ZString invalidValues,
ZString defaultValue)
validate
public int validate(ZString invalidValues)
check
public int check(ZString invalidValues,
char separatorChar,
boolean ignoreCase)
check
public int check(ZString invalidValues,
char separatorChar)
check
public int check(ZString invalidValues)
findADigit
public int findADigit()
findButADigit
public int findButADigit()
countOccurences
public int countOccurences(char c)
countOccurences
public int countOccurences(String s)
countOccurences
public int countOccurences(ZString s)
findNearestCharAtLeft
public int findNearestCharAtLeft(char c,
int pos)
findNearestCharAtRight
public int findNearestCharAtRight(char c,
int pos)
findNearestCharAtBeginning
public int findNearestCharAtBeginning(char c)
findNearestCharAtEnd
public int findNearestCharAtEnd(char c)
findNearestCharAt
public int findNearestCharAt(char c,
int pos)
findNearestDifferentCharAtLeft
public int findNearestDifferentCharAtLeft(char c,
int pos)
findNearestDifferentCharAtRight
public int findNearestDifferentCharAtRight(char c,
int pos)
findNearestDifferentCharAtBeginning
public int findNearestDifferentCharAtBeginning(char c)
findNearestDifferentCharAtEnd
public int findNearestDifferentCharAtEnd(char c)
findNearestDifferentCharAt
public int findNearestDifferentCharAt(char c,
int pos)