com.cosylab.vdct.util
Class StringUtils

java.lang.Object
  extended by com.cosylab.vdct.util.StringUtils

public class StringUtils
extends java.lang.Object

This type was created in VisualAge.


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String boolean2str(boolean state)
          This method was created in VisualAge.
static java.lang.String color2string(java.awt.Color color)
          Insert the method's description here.
static boolean emptyEquals(java.lang.String string1, java.lang.String string2)
           
static java.lang.String[] expandMacros(java.lang.String string)
          Expands simple numeric macros in the form [starting_value-ending_value] and returns a list of all expansions.
static java.lang.String getFileName(java.lang.String fileName)
          This method was created in VisualAge.
static java.lang.String incrementName(java.lang.String newName, java.lang.String suffix)
          Insert the method's description here.
static java.awt.Color int2color(int rgb)
          Insert the method's description here.
static java.lang.String quoteIfMacro(java.lang.String str)
          This method was created in VisualAge.
static java.lang.String removeBegining(java.lang.String str, java.lang.String begining)
          This method was created in VisualAge.
static java.lang.String removeQuotes(java.lang.String str)
          Insert the method's description here.
static java.lang.String removeQuotesAndLineBreaks(java.lang.String str)
          Insert the method's description here.
static java.lang.String replace(java.lang.String source, java.lang.String from, java.lang.String to)
          This method was created in VisualAge.
static java.lang.String replaceEnding(java.lang.String str, java.lang.String s1, java.lang.String s2)
          This method was created in VisualAge.
static java.lang.String replaceFileName(java.lang.String fileName, java.lang.String newFN)
          This method was created in VisualAge.
static boolean str2boolean(java.lang.String str)
          This method was created in VisualAge.
static java.awt.Color string2color(java.lang.String str)
          Insert the method's description here.
static java.lang.String substituteTabsAndNewLinesWithSpaces(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

boolean2str

public static java.lang.String boolean2str(boolean state)
This method was created in VisualAge.

Parameters:
state - boolean
Returns:
java.lang.String

color2string

public static java.lang.String color2string(java.awt.Color color)
Insert the method's description here. Creation date: (23.4.2001 18:49:45)

Parameters:
color - java.awt.Color
Returns:
java.lang.String

getFileName

public static java.lang.String getFileName(java.lang.String fileName)
This method was created in VisualAge.

Parameters:
fileName - java.lang.String
newFN - java.lang.String

int2color

public static java.awt.Color int2color(int rgb)
Insert the method's description here. Creation date: (23.4.2001 18:52:04)

Parameters:
rgb - int
Returns:
java.awt.Color

quoteIfMacro

public static java.lang.String quoteIfMacro(java.lang.String str)
This method was created in VisualAge.

Parameters:
str - java.lang.String
Returns:
java.lang.String

removeBegining

public static java.lang.String removeBegining(java.lang.String str,
                                              java.lang.String begining)
This method was created in VisualAge.

Parameters:
str - java.lang.String
begining - java.lang.String

replaceEnding

public static java.lang.String replaceEnding(java.lang.String str,
                                             java.lang.String s1,
                                             java.lang.String s2)
This method was created in VisualAge.

Parameters:
str - java.lang.String
s1 - java.lang.String
s2 - java.lang.String

replace

public static java.lang.String replace(java.lang.String source,
                                       java.lang.String from,
                                       java.lang.String to)
This method was created in VisualAge.

Parameters:
str - java.lang.String
s1 - java.lang.String
s2 - java.lang.String

replaceFileName

public static java.lang.String replaceFileName(java.lang.String fileName,
                                               java.lang.String newFN)
This method was created in VisualAge.

Parameters:
fileName - java.lang.String
newFN - java.lang.String

str2boolean

public static boolean str2boolean(java.lang.String str)
This method was created in VisualAge.

Parameters:
str - java.lang.String
Returns:
boolean

string2color

public static java.awt.Color string2color(java.lang.String str)
Insert the method's description here. Creation date: (23.4.2001 18:52:04)

Parameters:
str - java.lang.String
Returns:
java.awt.Color

removeQuotesAndLineBreaks

public static java.lang.String removeQuotesAndLineBreaks(java.lang.String str)
Insert the method's description here. Creation date: (23.4.2001 18:52:04)

Parameters:
str - java.lang.String
Returns:
java.lang.String

substituteTabsAndNewLinesWithSpaces

public static java.lang.String substituteTabsAndNewLinesWithSpaces(java.lang.String str)

removeQuotes

public static java.lang.String removeQuotes(java.lang.String str)
Insert the method's description here. Creation date: (23.4.2001 18:52:04)

Parameters:
str - java.lang.String
Returns:
java.lang.String

incrementName

public static java.lang.String incrementName(java.lang.String newName,
                                             java.lang.String suffix)
Insert the method's description here. Creation date: (23.4.2001 18:52:04)

Parameters:
str - java.lang.String
Returns:
java.awt.Color

expandMacros

public static java.lang.String[] expandMacros(java.lang.String string)
Expands simple numeric macros in the form [starting_value-ending_value] and returns a list of all expansions. If the string would expand to more than Constants.MAX_NAME_MACRO_EXPANSIONS strings, null is returned instead. Example: block[1-3]value[2-1]drop[0-0] becomes {block1value2drop0, block1value1drop0, block2value2drop0, block2value1drop0, block3value2drop0, block3value1drop0}


emptyEquals

public static boolean emptyEquals(java.lang.String string1,
                                  java.lang.String string2)