All Packages Class Hierarchy This Package Previous Next Index
Class fabula.util.Str
java.lang.Object
|
+----fabula.util.Str
- public final class Str
- extends Object
The class Str
defines several methods for
easy string manipulating
-
BACKSLASH
-
-
BACKSPACE
-
-
BLANK
-
-
CR
-
-
CRLF
-
-
CRLF_
-
-
EIGHT
-
-
EOF_
-
-
ESC
-
-
FIVE
-
-
FOUR
-
-
HEX_PREFIX
-
-
LF
-
-
NINE
-
-
NULL
-
-
ONE
-
-
SEVEN
-
-
SIX
-
-
SLASH
-
-
SPACE
-
-
TAB
-
-
THREE
-
-
TWO
-
-
ZERO
-
-
Str()
-
-
AddSlash(String)
- add slash character to the string
-
Blank(int)
- generate a string with a number of blanks
-
Debug(int)
- dump a integer to the system console
-
Debug(String)
- dump a string to the system console
-
DelSlash(String)
- remove slash from string
-
Equal(String, String)
- compares two strings
-
Hash(String)
- builds a easy hashcode for a string
-
Last(String)
- deliver the last character from the string
-
Left(String, int)
- left substring
-
Lower(String)
- converts the string to lowercase
-
Make(char, int)
- generate a string with a number of characters
-
PadL(String, char, int)
- padding the string from the left
-
PadL(String, int)
- padding the string from the left with spaces
-
PadR(String, char, int)
- padding the string on the right
-
PadR(String, int)
- padding the string on the right with spaces
-
PadZero(String, int)
- padding the string from the left with zeros
-
Right(String, int)
- right substring
-
Trim(String)
- trim all spaces from the left and right
-
TrimL(String)
- trim spaces from left
-
TrimL(String, char)
- trim from left
-
TrimR(String)
- trim spaces from right
-
TrimR(String, char)
- trim from right
-
Upper(String)
- converts the string to uppercase
NULL
public final static char NULL
BACKSPACE
public final static char BACKSPACE
TAB
public final static char TAB
LF
public final static char LF
CR
public final static char CR
EOF_
public final static char EOF_
ESC
public final static char ESC
BLANK
public final static char BLANK
SPACE
public final static char SPACE
CRLF_
public final static byte CRLF_[]
CRLF
public final static String CRLF
ZERO
public final static char ZERO
ONE
public final static char ONE
TWO
public final static char TWO
THREE
public final static char THREE
FOUR
public final static char FOUR
FIVE
public final static char FIVE
SIX
public final static char SIX
SEVEN
public final static char SEVEN
EIGHT
public final static char EIGHT
NINE
public final static char NINE
SLASH
public final static char SLASH
BACKSLASH
public final static char BACKSLASH
HEX_PREFIX
public final static char HEX_PREFIX
Str
public Str()
Hash
public static int Hash(String S)
- builds a easy hashcode for a string
Left
public static String Left(String S,
int Len)
- left substring
Debug
public static void Debug(String S)
- dump a string to the system console
Debug
public static void Debug(int i)
- dump a integer to the system console
Right
public static String Right(String S,
int Len)
- right substring
Make
public static String Make(char Ch,
int Len)
- generate a string with a number of characters
Blank
public static String Blank(int Len)
- generate a string with a number of blanks
Upper
public static String Upper(String S)
- converts the string to uppercase
Lower
public static String Lower(String S)
- converts the string to lowercase
TrimL
public static String TrimL(String S,
char Ch)
- trim from left
TrimL
public static String TrimL(String S)
- trim spaces from left
TrimR
public static String TrimR(String S,
char Ch)
- trim from right
TrimR
public static String TrimR(String S)
- trim spaces from right
Trim
public static String Trim(String S)
- trim all spaces from the left and right
PadL
public static String PadL(String S,
char Ch,
int Len)
- padding the string from the left
PadL
public static String PadL(String S,
int Len)
- padding the string from the left with spaces
PadZero
public static String PadZero(String S,
int Len)
- padding the string from the left with zeros
PadR
public static String PadR(String S,
char Ch,
int Len)
- padding the string on the right
PadR
public static String PadR(String S,
int Len)
- padding the string on the right with spaces
Equal
public static boolean Equal(String S1,
String S2)
- compares two strings
Last
public static char Last(String S)
- deliver the last character from the string
AddSlash
public static String AddSlash(String S)
- add slash character to the string
DelSlash
public static String DelSlash(String S)
- remove slash from string
All Packages Class Hierarchy This Package Previous Next Index