Softhema Java Toolkit Collection 1.1

softhema.system.toolkits
Class ToolkitString

java.lang.Object
  |
  +--softhema.system.toolkits.ToolkitString

public class ToolkitString
extends java.lang.Object


Constructor Summary
ToolkitString()
           
 
Method Summary
static java.lang.String format(java.math.BigDecimal bigDecimalValue, int precision)
          Transforms a floating decimal point value of type java.math.BigDecimal with the specified precision into a string.
static java.lang.String format(java.math.BigDecimal bigDecimalValue, int fieldwidth, int precision)
          Transforms a floating decimal point value of type java.math.BigDecimal with the specified fieldwidth and precision into a string.
static java.lang.String format(java.math.BigInteger bigIntegerValue, int fieldwidth)
          Transforms an integer value of type java.Math.BigInteger with the specified fieldwidth into a string.
static java.lang.String format(double doubleValue, int precision)
          Transforms a floating decimal point value of type double with the specified precision into a string.
static java.lang.String format(double doubleValue, int fieldwidth, int precision)
          Transforms a floating decimal point value of type double with the specified fieldwidth and precision into a string.
static java.lang.String format(long longValue, int fieldwidth)
          Transforms an integer value of type long with the specified fieldwidth into a string.
static java.lang.String getLicenseInfo()
          The method returns copyright information of the Java class.
static int indexOf(java.lang.String s, char[] achFindOne)
          Returns the index of the string first found in the character array achFindOne.
static int indexOf(java.lang.String s, java.lang.String[] asFindOne)
          Returns the index of the string first found in the array asFindOne.
static boolean isLike(java.lang.String sText, java.lang.String sTextPatternWithWildcards)
          Compares a string with a pattern.
static boolean isLikeEx(java.lang.String sText, java.lang.String sTextPatternWithWildcards)
          Compares a string with a pattern.
static boolean isLikeExIgnoreCase(java.lang.String sText, java.lang.String sTextPatternWithWildcards)
          Ignore case-sensitivity and compares a string with a pattern.
static boolean isLikeIgnoreCase(java.lang.String sText, java.lang.String sTextPatternWithWildcards)
          Ignore case-sensitivity and compares a string with a pattern.
static int[] likeIndices(java.lang.String s, java.lang.String sPatternWithWildcards)
          Searches for the first occurance of the pattern in a text.
static int[] likeIndicesEx(java.lang.String s, java.lang.String sPatternWithWildcards)
          Searches for the first occurance of the pattern in a text.
static int[] likeIndicesExIgnoreCase(java.lang.String s, java.lang.String sPatternWithWildcards)
          Searches for the first occurance of the pattern in a text.
static int[] likeIndicesIgnoreCase(java.lang.String s, java.lang.String sPatternWithWildcards)
          Searches for the first occurance of the pattern in a text.
static java.lang.String sprintf(java.lang.String sFormat, char ch)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, double d)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.util.List listFormatParameter)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, long l)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object param1)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object[] aFormatParameter)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object param1, java.lang.Object param2)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5, java.lang.Object param6)
          Imitation of the ANSI C sprintf function.
static java.lang.String sprintf(java.lang.String sFormat, java.util.Vector vecFormatParameter)
          Imitation of the ANSI C sprintf function.
static int sscanf(java.lang.String sInput, java.lang.String sFormat, java.util.List listFormatParameter)
          Imitation of the ANSI C sscanf function.
static int sscanf(java.lang.String sInput, java.lang.String sFormat, java.lang.Object[] aFormatParameter)
          Imitation of the ANSI C sscanf function.
static int sscanf(java.lang.String sInput, java.lang.String sFormat, java.util.Vector vecFormatParameter)
          Imitation of the ANSI C sscanf function.
static java.lang.String strCat(java.util.List list)
          Executes a concatenation of strings.
static java.lang.String strCat(java.lang.Object[] aParts)
          Executes a concatenation of strings.
static java.lang.String strCat(java.util.Vector vec)
          The elements of the vector are chained together to a string.
static java.lang.String strEscape_C(java.lang.String s)
          Escapes the string s in a c manner.
static java.lang.String strEscape_Java(java.lang.String s)
          Escapes the string s in a java manner.
static java.lang.String strExpand(java.lang.String sToExpand)
          Expansion of Abbreviations in the string sToExpand.
static java.lang.String strReplaceLike(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceLikeEx(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceLikeExIgnoreCase(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceLikeExOnce(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceLikeExOnceIgnoreCase(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceLikeIgnoreCase(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
The comparison with the pattern is independent of the large/lower case.
static java.lang.String strReplaceLikeOnce(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceLikeOnceIgnoreCase(java.lang.String s, java.lang.String sSearchPatternWithWildcards, java.lang.String sReplace)
          Searches for the pattern and replaces the found text by sReplace.
static java.lang.String strReplaceMulti(java.lang.String s, java.lang.String[] asSearch, java.lang.String[] asReplace)
          The strings of the array asSearch are searched in string s and the found strings are replaced with the corresponding strings in array asReplace.
static java.lang.String[] strSplit(java.lang.String s)
          Splits a string s into individual parts.
static java.lang.String[] strSplit(java.lang.String s, char[] aSeparators)
          Splits a string s into individual parts.
static java.lang.String[] strSplit(java.lang.String s, char[] aSeparators, char chBracket)
          Splits a string s into individual parts.
static java.lang.String strSqueeze(java.lang.String sText, char[] aCharactersEliminate)
          Deletes the characters in the array aCharactersEliminate from the string sText.
static java.lang.String strUnescape_C(java.lang.String s)
          Unescapes the string s in a c manner.
static java.lang.String strUnescape_Java(java.lang.String s)
          Unescapes the string s in a java manner.
static java.lang.String subStringLike(java.lang.String sText, java.lang.String sPatternWithWildcards)
          Returns the substring that matches the pattern in the text.
static java.lang.String subStringLikeEx(java.lang.String sText, java.lang.String sPatternWithWildcards)
          Returns the substring that matches the pattern in the text.
static java.lang.String subStringLikeExIgnoreCase(java.lang.String sText, java.lang.String sPatternWithWildcards)
          Returns the substring that matches the pattern in the text.
static java.lang.String subStringLikeIgnoreCase(java.lang.String sText, java.lang.String sPatternWithWildcards)
          Returns the substring that matches the pattern in the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolkitString

public ToolkitString()
Method Detail

strReplaceLikeOnce

public static java.lang.String strReplaceLikeOnce(java.lang.String s,
                                                  java.lang.String sSearchPatternWithWildcards,
                                                  java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The replacement is done once.

A table with some examples follows:
textpatternreplacementresult
"abcdefghiabcdefghi""??d***f""x""axghiabcdefghi"
"abcdefghiabcdefghi""*?d?""x""xfghiabcdefghi"

Applet example

development stage of the method: release


strReplaceLikeOnceIgnoreCase

public static java.lang.String strReplaceLikeOnceIgnoreCase(java.lang.String s,
                                                            java.lang.String sSearchPatternWithWildcards,
                                                            java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The comparison with the pattern is independent of the large/lower case.
The replacement is done once.

A table with some examples follows:
textpatternreplacementresult
"ABCDEFGHIABCDEFGHI""??d***f""x""AxGHIABCDEFGHI"
"ABCDEFGHIABCDEFGHI""*?d?""x""xFGHIABCDEFGHI"

Applet example

development stage of the method: release


strReplaceLike

public static java.lang.String strReplaceLike(java.lang.String s,
                                              java.lang.String sSearchPatternWithWildcards,
                                              java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.

A table with some examples follows:
textpatternreplacementresult
"abcdefghi" "*f" "xyz" "xyzghi"
"abc" "*" "cba" "cba"
"Hello World" "e*l*l*l" "el" "Held"
"abcdef" "b*e" "edcb" "aedcbf"
"Hello World Hello World Hello World""Hello World""Hi""Hi Hi Hi"
"Hello World Hello World Hello World""H*d""Hi""Hi Hi Hi"
"Hello World Hello World Hello World""e*ld""i""Hi Hi Hi"
"Hello World Hello World Hello World""?e*d""Hi""Hi Hi Hi"

Applet example

development stage of the method: release


strReplaceLikeIgnoreCase

public static java.lang.String strReplaceLikeIgnoreCase(java.lang.String s,
                                                        java.lang.String sSearchPatternWithWildcards,
                                                        java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The comparison with the pattern is independent of the large/lower case.

A table with some examples follows:
textpatternreplacementresult
"ABCDE""f""x""ABCDE"
"ABCDE""*""xyz""xyz"
"ABCDE""*"""""
"ABCDE""abc*""xyz""xyz"
"ABCDE""*c""xyz""xyzDE"
"ABCDE""b?d""xyz"AxyzE
"ABCDE""b?d?""xyz""Axyz"
"ABCDE""b*d""x""AxE"

Applet example

development stage of the method: release


strReplaceLikeExOnce

public static java.lang.String strReplaceLikeExOnce(java.lang.String s,
                                                    java.lang.String sSearchPatternWithWildcards,
                                                    java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The replacement is done once.
The wildcard character '*' stands for any number of characters.
The wildcard '?' stands for any character.

The wildcard '[...]' contains a list of allowed characters.
The wildcard '[^...]' contains a list of forbidden characters.

A table with some examples follows:
textpatternreplacementresult
"abcdefghiabcdefghi""b[a-e]""x""axdefghiabcdefghi"
"abcdefghiabcdefghi""[a-e][a-e]""x""xxefghiabcdefghi"
"abcdefghiabcdefghi""?[c-e][a-e]?""x""axfghiabcdefghi"

Applet example

development stage of the method: release


strReplaceLikeExOnceIgnoreCase

public static java.lang.String strReplaceLikeExOnceIgnoreCase(java.lang.String s,
                                                              java.lang.String sSearchPatternWithWildcards,
                                                              java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The replacement is done once.
The wildcard character '*' stands for any number of characters.
The wildcard '?' stands for any character.

The wildcard '[...]' contains a list of allowed characters.
The wildcard '[^...]' contains a list of forbidden characters.

A table with some examples follows:
textpatternreplacementresult
"ABCDEFGHIABCDEFGHI""b[a-e]""x""AxDEFGHIABCDEFGHI"
"ABCDEFGHIABCDEFGHI""[a-e][a-e]""x""xxEFGHIABCDEFGHI"
"ABCDEFGHIABCDEFGHI""?[c-e][a-e]?""x""AxFGHIABCDEFGHI"

Applet example

development stage of the method: release


strReplaceLikeEx

public static java.lang.String strReplaceLikeEx(java.lang.String s,
                                                java.lang.String sSearchPatternWithWildcards,
                                                java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The wildcard character '*' stands for any number of characters. The wildcard '?' stands for any character.

The wildcard '[...]' contains a list of allowed characters.
The wildcard '[^...]' contains a list of forbidden characters.

A table with some examples follows:
textpatternreplacementresult
"abcdefghi""b[a-e]""x""axdefghi"
"abcdefghi""[a-e][a-e]""x""xxefghi"
"abcdefghi""?[c-e][a-e]?""x""axfghi"
"abcdefghi""?[c-e][a-e]*""x""ax"
"abcdefghi""?[c-e]*[a-e]""x""axefghi"
"abcdefghi""?[c-e]*[f-h]""x""axghi"
"abcdefghi""?[c-e]*[g-h]""x""axhi"

Applet example

development stage of the method: release


strReplaceLikeExIgnoreCase

public static java.lang.String strReplaceLikeExIgnoreCase(java.lang.String s,
                                                          java.lang.String sSearchPatternWithWildcards,
                                                          java.lang.String sReplace)
Searches for the pattern and replaces the found text by sReplace.
The comparison with the pattern is independent of the large/lower case.
The wildcard character '*' stands for any number of characters.
The wildcard '?' stands for any character.

The wildcard '[...]' contains a list of allowed characters.
The wildcard '[^...]' contains a list of forbidden characters.

A table with some examples follows:
textpatternreplacementresult
"ABCDEFGHI""b[a-e]""x""AxDEFGHI"
"ABCDEFGHI""[a-e][a-e]""x""xxEFGHI"
"ABCDEFGHI""?[c-e][a-e]?""x""AxFGHI"

Applet example

development stage of the method: release


getLicenseInfo

public static java.lang.String getLicenseInfo()
The method returns copyright information of the Java class.

isLike

public static boolean isLike(java.lang.String sText,
                             java.lang.String sTextPatternWithWildcards)
Compares a string with a pattern.
The string sText must correspond with the indicated pattern sTextPatternWithWildcards. The pattern sTextPatternWithWildcards is a string, which can contain wildcard characters. Allowed wildcard characters are '*' and '?'. The wildcard character '*' stands for any number of characters. The wildcard '?' stands for any character.

A table with some examples follows:
pattern agreement (result true) no agreement (result false)
"a*a" "aa","aBa", "aBCBa" "aBCDE", "a", "aab"
"*abc*" "abc","abcdefg", "cbabcd" "abbc", "xyz", "aaa"
"a?a" "aaa","aZa", "a_a" "aa", "aaaa", "abcd"

Applet example for the method isLike in the class ToolkitString

development stage of the method: release


isLikeIgnoreCase

public static boolean isLikeIgnoreCase(java.lang.String sText,
                                       java.lang.String sTextPatternWithWildcards)
Ignore case-sensitivity and compares a string with a pattern.
The string sText must correspond with the indicated pattern sTextPatternWithWildcards. The pattern sTextPatternWithWildcards is a string, which can contain wildcard characters. Allowed wildcard characters are '*' and '?'. The wildcard character '*' stands for any number of characters. The wildcard '?' stands for any character.

A table with some examples follows:
pattern agreement (result true) no agreement (result false)
"a*a" "aa","AA","aA","aBA", "ABCBa" "aBCDE", "a", "aab"
"*abc*" "abc","ABC","abcdefg", "cbabcd" "abbc", "xyz", "aaa"
"a?a" "aaa","AAA","aZa", "a_a" "aa", "aaaa", "abcd"

Applet example for the method isLike in the class ToolkitString

development stage of the method: release


isLikeEx

public static boolean isLikeEx(java.lang.String sText,
                               java.lang.String sTextPatternWithWildcards)
Compares a string with a pattern.
The string sText must correspond with the indicated pattern sTextPatternWithWildcards. The pattern sTextPatternWithWildcards is a string, which can contain wildcard characters. Allowed wildcard characters are '*' and '?'. The wildcard character '*' stands for any number of characters. The wildcard '?' stands for any character.

The wildcard '[...]' contains a list of allowed characters.
The wildcard '[^...]' contains a list of forbidden characters.
The wildcard '[*...]' contains a list of allowed characters for any number of characters.
The wildcard '[^*...]' contains a list of forbidden characters for any number of characters.

A table with some examples follows:
pattern agreement (result true) no agreement (result false)
"a*a" "aa", "aBCBa" "aBCDE", "a", "aab"
"*abc*" "abc", "abcdefg", "cbabcd" "abbc", "xyz", "aaa"
"a?a" "aaa", "aZa", "a_a" "aa", "aaaa", "abcd"
"a[a-f]a" "aaa", "ada", "afa" "aa", "aza", "agd", "aaaa"
"a[^a-f]a" "aza", "a_a", "aga" "aa", "aaa", "afd", "aaaa"
"a[*a-f]a" "aa", "aaa", "afa", "aabcdefa" "aa", "aza", "axd", "aaaxa"
"a[^*a-f]a" "aa", "aza", "axyza", "axxxxa" "aaa", "afa", "axyzaa", "Xabc"
"a[abc]a" "aaa", "aba", "aca", "aa", "axa", "aaaa", "xyz"

Applet example for the method isLike in the class ToolkitString

development stage of the method: release


isLikeExIgnoreCase

public static boolean isLikeExIgnoreCase(java.lang.String sText,
                                         java.lang.String sTextPatternWithWildcards)
Ignore case-sensitivity and compares a string with a pattern.
The string sText must correspond with the indicated pattern sTextPatternWithWildcards. The pattern sTextPatternWithWildcards is a string, which can contain wildcard characters. Allowed wildcard characters are '*' and '?'. The wildcard character '*' stands for any number of characters. The wildcard '?' stands for any character.

The wildcard '[...]' contains a list of allowed characters.
The wildcard '[^...]' contains a list of forbidden characters.
The wildcard '[*...]' contains a list of allowed characters for any number of characters.
The wildcard '[^*...]' contains a list of forbidden characters for any number of characters.

A table with some examples follows:
pattern agreement (result true) no agreement (result false)
"a*a" "aa", "Aa", "ABCBa" "aBCDE", "a", "aab"
"*abc*" "abc", "ABC", "abcdefg", "cbabcd" "abbc", "xyz", "aaa"
"a?a" "AaA", "aZa", "a_a" "aa", "aaaa", "abcd"
"a[a-f]a" "aaa", "ada", "afa" "aa", "aza", "agd", "aaaa"
"a[^a-f]a" "AzA", "a_a", "aga" "aa", "aaa", "afd", "aaaa"
"a[*a-f]a" "aa", "aaa", "afa", "aabcdefa" "aza", "axd", "aaaxa"
"a[^*a-f]a" "aa", "aza", "axyza", "axxxxa" "aaa", "afa", "axyzaa", "Xabc"
"a[abc]a" "aaa", "AAA", "aba", "aca", "aa", "axa", "aaaa", "xyz"

Applet example for the method isLike in the class ToolkitString

development stage of the method: release


strCat

public static java.lang.String strCat(java.lang.Object[] aParts)
Executes a concatenation of strings. The elements of the array are chained together to a string. If the element is not a string, then the method toString of the object is called.

development stage of the method: release


strCat

public static java.lang.String strCat(java.util.List list)
Executes a concatenation of strings. The elements of the list are chained together to a string. If the element is not a string, then the method toString of the object is called.

development stage of the method: release


strCat

public static java.lang.String strCat(java.util.Vector vec)
The elements of the vector are chained together to a string. If the element is not a string, then the method toString of the object is called.

development stage of the method: release


strSqueeze

public static java.lang.String strSqueeze(java.lang.String sText,
                                          char[] aCharactersEliminate)
Deletes the characters in the array aCharactersEliminate from the string sText.

development stage of the method: release


strExpand

public static java.lang.String strExpand(java.lang.String sToExpand)
Expansion of Abbreviations in the string sToExpand.

Examples follow:
abbreviated text expanded Text
"a-f""abcdef"
"abc""abc"
"0-9""0123456789"
"a-zA-Z""abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
"Lower:z-aUpper:Z-A""Lower:zyxwvutsrqponmlkjihgfedcbaUpper:ZYXWVUTSRQPONMLKJIHGFEDCBA"
"1-9-1""12345678987654321"
"9-101-9""9876543210123456789"
"9-1-0-1-9""9876543210123456789"
"-a-a-a""-a"
"a-a-a-""a-"
"---a-a--""-a`_^]\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-"

development stage of the method: release


strSplit

public static java.lang.String[] strSplit(java.lang.String s)
Splits a string s into individual parts. The used separator characters are ' '(blank), '\n', '\r' and '\t'.

development stage of the method: release


strSplit

public static java.lang.String[] strSplit(java.lang.String s,
                                          char[] aSeparators)
Splits a string s into individual parts. Separator characters are specified in the array aSeparators.

development stage of the method: release


strSplit

public static java.lang.String[] strSplit(java.lang.String s,
                                          char[] aSeparators,
                                          char chBracket)
Splits a string s into individual parts. Separator characters are specified in the array aSeparators. Additionally a bracket character chBracket can prevent the separation.

development stage of the method: release


strReplaceMulti

public static java.lang.String strReplaceMulti(java.lang.String s,
                                               java.lang.String[] asSearch,
                                               java.lang.String[] asReplace)
The strings of the array asSearch are searched in string s and the found strings are replaced with the corresponding strings in array asReplace.

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.util.Vector vecFormatParameter)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.util.List listFormatParameter)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object[] aFormatParameter)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object param1)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       char ch)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       double d)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       long l)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object param1,
                                       java.lang.Object param2)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object param1,
                                       java.lang.Object param2,
                                       java.lang.Object param3)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object param1,
                                       java.lang.Object param2,
                                       java.lang.Object param3,
                                       java.lang.Object param4)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object param1,
                                       java.lang.Object param2,
                                       java.lang.Object param3,
                                       java.lang.Object param4,
                                       java.lang.Object param5)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sprintf

public static java.lang.String sprintf(java.lang.String sFormat,
                                       java.lang.Object param1,
                                       java.lang.Object param2,
                                       java.lang.Object param3,
                                       java.lang.Object param4,
                                       java.lang.Object param5,
                                       java.lang.Object param6)
                                throws java.io.IOException
Imitation of the ANSI C sprintf function.
Description of the format arguments

development stage of the method: release


sscanf

public static int sscanf(java.lang.String sInput,
                         java.lang.String sFormat,
                         java.lang.Object[] aFormatParameter)
                  throws java.io.IOException
Imitation of the ANSI C sscanf function.
Description of the format arguments

development stage of the method: release


sscanf

public static int sscanf(java.lang.String sInput,
                         java.lang.String sFormat,
                         java.util.Vector vecFormatParameter)
                  throws java.io.IOException
Imitation of the ANSI C sscanf function.
Description of the format arguments

development stage of the method: release


sscanf

public static int sscanf(java.lang.String sInput,
                         java.lang.String sFormat,
                         java.util.List listFormatParameter)
                  throws java.io.IOException
Imitation of the ANSI C sscanf function.
Description of the format arguments

development stage of the method: release


indexOf

public static int indexOf(java.lang.String s,
                          java.lang.String[] asFindOne)
Returns the index of the string first found in the array asFindOne. If no match is found, then -1 is returned.

development stage of the method: release


indexOf

public static int indexOf(java.lang.String s,
                          char[] achFindOne)
Returns the index of the string first found in the character array achFindOne. If no match is found, then -1 is returned.

development stage of the method: release


format

public static java.lang.String format(long longValue,
                                      int fieldwidth)
                               throws java.io.IOException
Transforms an integer value of type long with the specified fieldwidth into a string.

development stage of the method: release


format

public static java.lang.String format(java.math.BigInteger bigIntegerValue,
                                      int fieldwidth)
                               throws java.io.IOException
Transforms an integer value of type java.Math.BigInteger with the specified fieldwidth into a string.

development stage of the method: release


format

public static java.lang.String format(double doubleValue,
                                      int fieldwidth,
                                      int precision)
                               throws java.io.IOException
Transforms a floating decimal point value of type double with the specified fieldwidth and precision into a string.

development stage of the method: release


format

public static java.lang.String format(java.math.BigDecimal bigDecimalValue,
                                      int fieldwidth,
                                      int precision)
                               throws java.io.IOException
Transforms a floating decimal point value of type java.math.BigDecimal with the specified fieldwidth and precision into a string.

development stage of the method: release


format

public static java.lang.String format(double doubleValue,
                                      int precision)
                               throws java.io.IOException
Transforms a floating decimal point value of type double with the specified precision into a string.

development stage of the method: r


format

public static java.lang.String format(java.math.BigDecimal bigDecimalValue,
                                      int precision)
                               throws java.io.IOException
Transforms a floating decimal point value of type java.math.BigDecimal with the specified precision into a string.

development stage of the method: release


likeIndices

public static int[] likeIndices(java.lang.String s,
                                java.lang.String sPatternWithWildcards)
Searches for the first occurance of the pattern in a text. Returns an int array with the start and end index of the found text.

Examples:

  int[] array = ToolkitString.likeIndices( text, pattern );
 
textpatternstart index
array[0]
end index
array[1]
"abcdefghi" "bcd" 1 3
"abcdefghi" "b*e" 1 4
"abcdefghi" "?d?" 2 4

development stage of the method: release


likeIndicesIgnoreCase

public static int[] likeIndicesIgnoreCase(java.lang.String s,
                                          java.lang.String sPatternWithWildcards)
Searches for the first occurance of the pattern in a text. Returns an int array with the start and end index of the found text.

development stage of the method: release


likeIndicesEx

public static int[] likeIndicesEx(java.lang.String s,
                                  java.lang.String sPatternWithWildcards)
Searches for the first occurance of the pattern in a text. Returns an int array with the start and end index of the found text.

development stage of the method: release


likeIndicesExIgnoreCase

public static int[] likeIndicesExIgnoreCase(java.lang.String s,
                                            java.lang.String sPatternWithWildcards)
Searches for the first occurance of the pattern in a text. Returns an int array with the start and end index of the found text.

development stage of the method: release


strEscape_C

public static java.lang.String strEscape_C(java.lang.String s)
                                    throws java.lang.IllegalArgumentException
Escapes the string s in a c manner.

development stage of the method: beta


strUnescape_C

public static java.lang.String strUnescape_C(java.lang.String s)
                                      throws java.lang.IllegalArgumentException
Unescapes the string s in a c manner.

development stage of the method: beta


strEscape_Java

public static java.lang.String strEscape_Java(java.lang.String s)
                                       throws java.lang.IllegalArgumentException
Escapes the string s in a java manner.

development stage of the method: beta


strUnescape_Java

public static java.lang.String strUnescape_Java(java.lang.String s)
                                         throws java.lang.IllegalArgumentException
Unescapes the string s in a java manner.

development stage of the method: beta


subStringLike

public static java.lang.String subStringLike(java.lang.String sText,
                                             java.lang.String sPatternWithWildcards)
Returns the substring that matches the pattern in the text.

Applet example for the method subStringLike in the class ToolkitString

development stage of the method: release


subStringLikeEx

public static java.lang.String subStringLikeEx(java.lang.String sText,
                                               java.lang.String sPatternWithWildcards)
Returns the substring that matches the pattern in the text.

Applet example for the method subStringLike in the class ToolkitString

development stage of the method: release


subStringLikeIgnoreCase

public static java.lang.String subStringLikeIgnoreCase(java.lang.String sText,
                                                       java.lang.String sPatternWithWildcards)
Returns the substring that matches the pattern in the text.

Applet example for the method subStringLike in the class ToolkitString

development stage of the method: release


subStringLikeExIgnoreCase

public static java.lang.String subStringLikeExIgnoreCase(java.lang.String sText,
                                                         java.lang.String sPatternWithWildcards)
Returns the substring that matches the pattern in the text.

Applet example for the method subStringLike in the class ToolkitString

development stage of the method: release


Softhema Java Toolkit Collection 1.1

Introduction
Installation
Samples
License (read carefully)

Copyright 2001 by Softhema (www.softhema.de). Softhema and JTC are trademarks or registered trademarks. All rights reserved. This software comes with absolutely no warranty and no support. Read the license carefully.