Class StringUtils

java.lang.Object
org.eclipse.lyo.core.util.StringUtils

public class StringUtils extends Object
Since:
7.0.0
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • cleanWithoutNormalization

      public static String cleanWithoutNormalization(String str)
      Trim and strip control chars (in the Unicode Cc category that are not CR, LF, or TAB)
    • cleanWithoutNormalizationNonNull

      public static String cleanWithoutNormalizationNonNull(String str)
      Trim and strip control chars (in the Unicode Cc category that are not CR, LF, or TAB); returns an empty string if a null is encountered
    • clean

      public static String clean(String str)
      Trim, strip control chars (in the Unicode Cc category that are not CR, LF, or TAB), and normalize the string to NFC as per W3C recommendations
    • cleanNonNull

      public static String cleanNonNull(String str)
      Trim, strip control chars (in the Unicode Cc category that are not CR, LF, or TAB), and normalize the string to NFC as per W3C recommendations; returns an empty string if a null is encountered
    • isNullOrWhitespace

      public static boolean isNullOrWhitespace(String str)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(String str)