MultilineStringX extension
Provides convenient access to multiline String records with method extensions. Useful for templates, mockups and SQL queries.
Just use the pipeline symbol "|
" to indicate the
beginning of a line.
Beautiful code formatting using some useful
extensions to the String methods.
- on
Methods
-
multiline(
{String pipeline = '|', String join = '\n'}) → String -
Return formatted with pipeline symbol "
|
" String. -
multilineSplit(
{String pipeline = '|'}) → Iterable< String> - Split lines into individual lines and returns a Iterable of substrings.
-
multilineStream(
{String pipeline = '|'}) → Stream< String> - Split lines into individual lines and returns a Stream of substrings.