Class StringUtils


  • public class StringUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String addColTags​(java.lang.String text)  
      static int getIndex​(java.lang.String[] terms, java.lang.String term)
      Finds the index of a term in an array of terms, ignoring case.
      static java.lang.String stripColTags​(java.lang.String source)  
      static java.lang.String[] stripColTags​(java.lang.String[] sourceList)
      Strips <col=...> tags from each string in the provided array.
      • 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

      • getIndex

        public static int getIndex​(java.lang.String[] terms,
                                   java.lang.String term)
        Finds the index of a term in an array of terms, ignoring case.
        Parameters:
        terms - the array of terms to search
        term - the term to find
        Returns:
        the index of the term in the array, or -1 if not found
      • stripColTags

        public static java.lang.String[] stripColTags​(java.lang.String[] sourceList)
        Strips <col=...> tags from each string in the provided array.
        Parameters:
        sourceList - the array of strings to process
        Returns:
        a new array with <col=...> tags removed
      • stripColTags

        public static java.lang.String stripColTags​(java.lang.String source)
      • addColTags

        public static java.lang.String addColTags​(java.lang.String text)