Package com.cosylab.vdct.util
Class StringUtils
- java.lang.Object
-
- com.cosylab.vdct.util.StringUtils
-
public class StringUtils extends Object
This type was created in VisualAge.
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
boolean2str(boolean state)
This method was created in VisualAge.static String
color2string(Color color)
Insert the method's description here.static boolean
emptyEquals(String string1, String string2)
static String[]
expandMacros(String string)
Expands simple numeric macros in the form [starting_value-ending_value] and returns a list of all expansions.static String
getFileName(String fileName)
This method was created in VisualAge.static String
incrementName(String newName, String suffix)
Insert the method's description here.static Color
int2color(int rgb)
Insert the method's description here.static String
quoteIfMacro(String str)
This method was created in VisualAge.static String
removeBeginning(String str, String beginning)
This method was created in VisualAge.static String
removeQuotes(String str)
Insert the method's description here.static String
removeQuotesAndLineBreaks(String str)
Insert the method's description here.static String
replace(String source, String from, String to)
This method was created in VisualAge.static String
replaceEnding(String str, String s1, String s2)
This method was created in VisualAge.static String
replaceFileName(String fileName, String newFN)
This method was created in VisualAge.static boolean
str2boolean(String str)
This method was created in VisualAge.static Color
string2color(String str)
Insert the method's description here.static String
substituteTabsAndNewLinesWithSpaces(String str)
-
-
-
Method Detail
-
boolean2str
public static String boolean2str(boolean state)
This method was created in VisualAge.- Parameters:
state
- boolean- Returns:
- java.lang.String
-
color2string
public static String color2string(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 String getFileName(String fileName)
This method was created in VisualAge.- Parameters:
fileName
- java.lang.String- Returns:
- something
-
int2color
public static 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 String quoteIfMacro(String str)
This method was created in VisualAge.- Parameters:
str
- java.lang.String- Returns:
- java.lang.String
-
removeBeginning
public static String removeBeginning(String str, String beginning)
This method was created in VisualAge.- Parameters:
str
- java.lang.Stringbeginning
- java.lang.String- Returns:
- something
-
replaceEnding
public static String replaceEnding(String str, String s1, String s2)
This method was created in VisualAge.- Parameters:
str
- java.lang.Strings1
- java.lang.Strings2
- java.lang.String- Returns:
- something
-
replace
public static String replace(String source, String from, String to)
This method was created in VisualAge.- Parameters:
source
- java.lang.Stringfrom
- java.lang.Stringto
- java.lang.String- Returns:
- something
-
replaceFileName
public static String replaceFileName(String fileName, String newFN)
This method was created in VisualAge.- Parameters:
fileName
- java.lang.StringnewFN
- java.lang.String- Returns:
- something
-
str2boolean
public static boolean str2boolean(String str)
This method was created in VisualAge.- Parameters:
str
- java.lang.String- Returns:
- boolean
-
string2color
public static Color string2color(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 String removeQuotesAndLineBreaks(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 String substituteTabsAndNewLinesWithSpaces(String str)
- Parameters:
str
- str- Returns:
- something
-
removeQuotes
public static String removeQuotes(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 String incrementName(String newName, String suffix)
Insert the method's description here. Creation date: (23.4.2001 18:52:04)- Parameters:
newName
- newNamesuffix
- suffix- Returns:
- something
-
expandMacros
public static String[] expandMacros(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}- Parameters:
string
- string- Returns:
- something
-
-