velosurf.util
Class Strings

java.lang.Object
  |
  +--velosurf.util.Strings

public class Strings
extends java.lang.Object

this class gathers static utility methods for strings


Field Summary
private static java.lang.String sTrimmed
          characters to trim
 
Constructor Summary
Strings()
           
 
Method Summary
static java.lang.String replace(java.lang.String inTarget, java.lang.String inOldPattern, java.lang.String inNewPattern)
          replace a string by another inside a target string
static java.lang.String trimSpacesAndEOF(java.lang.String inTarget)
          trim spaces and EOL characters (TODO : fix the typo - nothing to do with EOF characters)
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

sTrimmed

private static java.lang.String sTrimmed
characters to trim
Constructor Detail

Strings

public Strings()
Method Detail

replace

public static java.lang.String replace(java.lang.String inTarget,
                                       java.lang.String inOldPattern,
                                       java.lang.String inNewPattern)
replace a string by another inside a target string
Parameters:
inTarget - target string
inOldPattern - old pattern
inNewPattern - new pattern
Returns:
result

trimSpacesAndEOF

public static java.lang.String trimSpacesAndEOF(java.lang.String inTarget)
trim spaces and EOL characters (TODO : fix the typo - nothing to do with EOF characters)
Parameters:
inTarget - target string
Returns:
the trimmed string


ooOoo