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


Variable Index

 o BACKSLASH
 o BACKSPACE
 o BLANK
 o CR
 o CRLF
 o CRLF_
 o EIGHT
 o EOF_
 o ESC
 o FIVE
 o FOUR
 o HEX_PREFIX
 o LF
 o NINE
 o NULL
 o ONE
 o SEVEN
 o SIX
 o SLASH
 o SPACE
 o TAB
 o THREE
 o TWO
 o ZERO

Constructor Index

 o Str()

Method Index

 o AddSlash(String)
add slash character to the string
 o Blank(int)
generate a string with a number of blanks
 o Debug(int)
dump a integer to the system console
 o Debug(String)
dump a string to the system console
 o DelSlash(String)
remove slash from string
 o Equal(String, String)
compares two strings
 o Hash(String)
builds a easy hashcode for a string
 o Last(String)
deliver the last character from the string
 o Left(String, int)
left substring
 o Lower(String)
converts the string to lowercase
 o Make(char, int)
generate a string with a number of characters
 o PadL(String, char, int)
padding the string from the left
 o PadL(String, int)
padding the string from the left with spaces
 o PadR(String, char, int)
padding the string on the right
 o PadR(String, int)
padding the string on the right with spaces
 o PadZero(String, int)
padding the string from the left with zeros
 o Right(String, int)
right substring
 o Trim(String)
trim all spaces from the left and right
 o TrimL(String)
trim spaces from left
 o TrimL(String, char)
trim from left
 o TrimR(String)
trim spaces from right
 o TrimR(String, char)
trim from right
 o Upper(String)
converts the string to uppercase

Variables

 o NULL
  public final static char NULL
 o BACKSPACE
  public final static char BACKSPACE
 o TAB
  public final static char TAB
 o LF
  public final static char LF
 o CR
  public final static char CR
 o EOF_
  public final static char EOF_
 o ESC
  public final static char ESC
 o BLANK
  public final static char BLANK
 o SPACE
  public final static char SPACE
 o CRLF_
  public final static byte CRLF_[]
 o CRLF
  public final static String CRLF
 o ZERO
  public final static char ZERO
 o ONE
  public final static char ONE
 o TWO
  public final static char TWO
 o THREE
  public final static char THREE
 o FOUR
  public final static char FOUR
 o FIVE
  public final static char FIVE
 o SIX
  public final static char SIX
 o SEVEN
  public final static char SEVEN
 o EIGHT
  public final static char EIGHT
 o NINE
  public final static char NINE
 o SLASH
  public final static char SLASH
 o BACKSLASH
  public final static char BACKSLASH
 o HEX_PREFIX
  public final static char HEX_PREFIX

Constructors

 o Str
  public Str()

Methods

 o Hash
  public static int Hash(String S)
builds a easy hashcode for a string

 o Left
  public static String Left(String S,
                            int Len)
left substring

 o Debug
  public static void Debug(String S)
dump a string to the system console

 o Debug
  public static void Debug(int i)
dump a integer to the system console

 o Right
  public static String Right(String S,
                             int Len)
right substring

 o Make
  public static String Make(char Ch,
                            int Len)
generate a string with a number of characters

 o Blank
  public static String Blank(int Len)
generate a string with a number of blanks

 o Upper
  public static String Upper(String S)
converts the string to uppercase

 o Lower
  public static String Lower(String S)
converts the string to lowercase

 o TrimL
  public static String TrimL(String S,
                             char Ch)
trim from left

 o TrimL
  public static String TrimL(String S)
trim spaces from left

 o TrimR
  public static String TrimR(String S,
                             char Ch)
trim from right

 o TrimR
  public static String TrimR(String S)
trim spaces from right

 o Trim
  public static String Trim(String S)
trim all spaces from the left and right

 o PadL
  public static String PadL(String S,
                            char Ch,
                            int Len)
padding the string from the left

 o PadL
  public static String PadL(String S,
                            int Len)
padding the string from the left with spaces

 o PadZero
  public static String PadZero(String S,
                               int Len)
padding the string from the left with zeros

 o PadR
  public static String PadR(String S,
                            char Ch,
                            int Len)
padding the string on the right

 o PadR
  public static String PadR(String S,
                            int Len)
padding the string on the right with spaces

 o Equal
  public static boolean Equal(String S1,
                              String S2)
compares two strings

 o Last
  public static char Last(String S)
deliver the last character from the string

 o AddSlash
  public static String AddSlash(String S)
add slash character to the string

 o DelSlash
  public static String DelSlash(String S)
remove slash from string


All Packages  Class Hierarchy  This Package  Previous  Next  Index