Class StringUtils


  • public class StringUtils
    extends Object
    This type was created in VisualAge.
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • 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.String
        beginning - 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.String
        s1 - java.lang.String
        s2 - 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.String
        from - java.lang.String
        to - java.lang.String
        Returns:
        something
      • replaceFileName

        public static String replaceFileName​(String fileName,
                                             String newFN)
        This method was created in VisualAge.
        Parameters:
        fileName - java.lang.String
        newFN - 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 - newName
        suffix - 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
      • emptyEquals

        public static boolean emptyEquals​(String string1,
                                          String string2)
        Parameters:
        string1 - string1
        string2 - string2
        Returns:
        something