|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tekann.codegen.pda.util.StringUtil
public class StringUtil
Utilities String in TotalCross.
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static int |
getMaxStringLength(totalcross.ui.font.FontMetrics fm,
int width,
java.lang.String text)
Deprecated. Use instead Convert.insertLineBreak |
static java.lang.String |
lineBreakWithPipes(java.lang.String line,
int maxCharsPerLine)
Deprecated. Use instead Convert.insertLineBreak |
static java.lang.String |
replaceInvalidChars(java.lang.String value)
Replace the following chars: \\n by \n \\r by \r \\t by \t \\b by \b \\f by \f \\" by \" |
static java.lang.String |
replaceInvalidCharsToXML(java.lang.String value)
Replaces the following character. |
static void |
replaceNull(java.lang.String[][] s)
Replaces the null values by an empty string. |
static java.lang.Object[] |
split(java.lang.String toSplit,
char separator)
Split a String. |
static java.lang.Object[] |
split(java.lang.String toSplit,
char separator,
boolean allowEmpty)
Split a String. |
static java.lang.String |
toCurrencyString(double d,
int decimalPlaces)
Format the string like the Convert.toCurrencyString does, but it also add zeros when needed. |
static java.lang.String |
toCurrencyString(java.lang.String s,
int decimalPlaces)
Format the string like the Convert.toCurrencyString does, but it also add zeros when needed. |
static java.lang.String |
toString(java.lang.String[] values,
java.lang.String separator)
Return string representation of an array with a separator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static void replaceNull(java.lang.String[][] s)
s -
public static java.lang.Object[] split(java.lang.String toSplit,
char separator)
toSplit - String to split.separator - Separator for the split.
public static java.lang.Object[] split(java.lang.String toSplit,
char separator,
boolean allowEmpty)
toSplit - String to split.separator - Separator for the split.allowEmpty - Add even if the string is empty.
public static java.lang.String lineBreakWithPipes(java.lang.String line,
int maxCharsPerLine)
line - Line to break.maxCharsPerLine - Max number of chars per line.
Convert.insertLineBreak(int, totalcross.ui.font.FontMetrics, java.lang.String)
public static int getMaxStringLength(totalcross.ui.font.FontMetrics fm,
int width,
java.lang.String text)
fm - The FontMetrics to calculate.width - Width of control or area.text - Full text.
Convert.insertLineBreak(int, totalcross.ui.font.FontMetrics, java.lang.String)
public static java.lang.String toString(java.lang.String[] values,
java.lang.String separator)
values - separator -
public static java.lang.String toCurrencyString(double d,
int decimalPlaces)
d - decimalPlaces -
public static java.lang.String toCurrencyString(java.lang.String s,
int decimalPlaces)
s - decimalPlaces -
public static java.lang.String replaceInvalidCharsToXML(java.lang.String value)
value -
public static java.lang.String replaceInvalidChars(java.lang.String value)
value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||