com.inxar.syntacs.util
Class StringTools
java.lang.Object
|
+--com.inxar.syntacs.util.StringTools
- public class StringTools
- extends Object
A collection of utilities for working with text and strings.
Field Summary |
static String |
NEWLINE
A Central location to stash the newline String. |
Method Summary |
static String |
capitalize(String s)
|
static String |
escape(String s)
|
static String |
getPath(String sourcepath,
String namespace)
|
static int |
getUTFLength(String s)
|
static boolean |
isDefined(String s)
|
static boolean |
isFalse(String key,
Properties p)
|
static boolean |
isNotFalse(String key,
Properties p)
|
static boolean |
isNotTrue(String key,
Properties p)
|
static boolean |
isTrue(String key,
Properties p)
|
static int |
lengthOfUTF(String s,
int off,
int maxsz)
|
static String |
replace(String src,
String out,
String in)
|
static String |
substr(String s,
int length)
|
NEWLINE
public static final String NEWLINE
- A Central location to stash the newline String.
isDefined
public static boolean isDefined(String s)
capitalize
public static String capitalize(String s)
escape
public static String escape(String s)
substr
public static String substr(String s,
int length)
replace
public static String replace(String src,
String out,
String in)
lengthOfUTF
public static int lengthOfUTF(String s,
int off,
int maxsz)
getUTFLength
public static int getUTFLength(String s)
isTrue
public static boolean isTrue(String key,
Properties p)
isFalse
public static boolean isFalse(String key,
Properties p)
isNotTrue
public static boolean isNotTrue(String key,
Properties p)
isNotFalse
public static boolean isNotFalse(String key,
Properties p)
getPath
public static String getPath(String sourcepath,
String namespace)