-
public final class StringsKt
-
-
Method Summary
Modifier and Type Method Description final StringgetEol()Runtime specific end of line. final static StringfilterVars(String $self, Map<?, ?> parameters)Filter the target string substituting each key by its value. final static StringfilterVars(String $self, Pair<?, ?> parameters)TODO. final static Stringfilter(String $self, String prefix, String suffix, Pair<String, String> parameters)TODO. final static List<MatchGroup>findGroups(Regex $self, String text)TODO. final static StringsnakeToCamel(String $self)Transform the target string from snake case to camel case. final static StringcamelToSnake(String $self)Transform the target string from camel case to snake case. final static Stringbanner(String $self, String bannerDelimiter)Format the string as a banner with a delimiter above and below text. final static StringstripAccents(String $self)TODO. final static InputStreamtoStream(String $self)TODO. final static Stringutf8(Integer bytes)TODO. final static RegexglobToRegex(String $self)TODO. final static StringprependIndent(String $self, Integer count, String pad)TODO. -
-
Method Detail
-
filterVars
final static String filterVars(String $self, Map<?, ?> parameters)
Filter the target string substituting each key by its value. The keys format is:
#{key}and all occurrences are replaced by the supplied value.If a variable does not have a parameter, it is left as it is.
- Parameters:
parameters- The map with the list of key/value tuples.
-
filterVars
final static String filterVars(String $self, Pair<?, ?> parameters)
TODO.
- Parameters:
parameters- .
-
filter
final static String filter(String $self, String prefix, String suffix, Pair<String, String> parameters)
TODO.
- Parameters:
prefix- .suffix- .parameters- .
-
findGroups
final static List<MatchGroup> findGroups(Regex $self, String text)
TODO.
- Parameters:
text- .
-
snakeToCamel
final static String snakeToCamel(String $self)
Transform the target string from snake case to camel case.
-
camelToSnake
final static String camelToSnake(String $self)
Transform the target string from camel case to snake case.
-
banner
final static String banner(String $self, String bannerDelimiter)
Format the string as a banner with a delimiter above and below text. The character used to render the delimiter is defined.
- Parameters:
bannerDelimiter- Delimiter char for banners.
-
stripAccents
final static String stripAccents(String $self)
TODO.
-
toStream
final static InputStream toStream(String $self)
TODO.
-
globToRegex
final static Regex globToRegex(String $self)
TODO.
-
-
-
-