Class FormatUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String indent(String $self, Integer level, String tabStr) Indents the string by the specified number of levels.
      final static String indentLines(String $self, Integer level, Boolean removeBlankLines, Boolean skipIndentFirstLine, String tabStr) Indents each line of the string by the specified number of levels.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • indent

         final static String indent(String $self, Integer level, String tabStr)

        Indents the string by the specified number of levels.

        Parameters:
        level - The number of levels to indent.
        tabStr - The string to use for each level of indentation
        Returns:

        The indented string

      • indentLines

         final static String indentLines(String $self, Integer level, Boolean removeBlankLines, Boolean skipIndentFirstLine, String tabStr)

        Indents each line of the string by the specified number of levels.

        Parameters:
        level - The number of levels to indent.
        removeBlankLines - If true, blank lines are removed
        skipIndentFirstLine - If true, the first line is not indented
        tabStr - The string to use for each level of indentation
        Returns:

        The indented string