java.lang.Object
software.amazon.smithy.rulesengine.language.util.StringUtils

public final class StringUtils extends Object
String utilities.
  • Method Details

    • indent

      public static String indent(String s, int spaces)
      Indents the provided string by the provided number of spaces.
      Parameters:
      s - the string to indent.
      spaces - the number of spaces.
      Returns:
      the indented string.
    • lines

      public static List<String> lines(String s)
      Splits the given string by the UTF-8 LF U+000A character.
      Parameters:
      s - the string to split.
      Returns:
      the list of string lines.