Package com.embabel.common.util
Class FormatUtilsKt
-
- All Implemented Interfaces:
public final class FormatUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static Stringindent(String $self, Integer level, String tabStr)Indents the string by the specified number of levels. final static StringindentLines(String $self, Integer level, Boolean removeBlankLines, Boolean skipIndentFirstLine, String tabStr)Indents each line of the string by the specified number of levels. -
-
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 removedskipIndentFirstLine- If true, the first line is not indentedtabStr- The string to use for each level of indentation- Returns:
The indented string
-
-
-
-