LineOps
Value members
Concrete methods
Append the given text to the last line of the collection
Append the given text to the last line of the collection
example:
')'
111
222
output:
111
222)
Joins left lines with right arrays using the given separator
Joins left lines with right arrays using the given separator
example:
' + '
123
456
,
789
zxy
output:
123
456 + 789
zxy
Joins several arrays using the given separator
Joins several arrays using the given separator
example:
', '
123
456
,
789
zxy
,
ABC
DEF
output:
123
456, 789
zxy, ABC
DEF
Join vertically with carriage return
Join vertically with carriage return
example:
','
123
456
,
ABC
DEF
output:
123
456, ABC
DEF
Pad s string with the given prefix
Pad s string with the given prefix
example:
" * "
,
"ABC"
output:
" * ABC"
Pad several lines with the given prefix
Pad several lines with the given prefix
example:
" * "
,
"ABC"
"DEF"
output:
" * ABC"
" * DEF"
Pad tail of the array with N spaces
Pad tail of the array with N spaces
example:
2
,
"ABC"
"DEF"
output:
"ABC"
" DEF"
Prepend the given text to the first line of collection
Prepend the given text to the first line of collection
example:
'(',
111
222
output:
(111
222
Tabulates the tail part of the text
Tabulates the tail part of the text
example:
2
"123\n456"
output:
"123\n 456"
Tabulates the tail of the collection
Tabulates the tail of the collection
example:
2
"123"
"456"
output:
"123"
" 456"
Wraps the head and last element of the collection
Wraps the head and last element of the collection
example:
'(', ')'
123
456
output:
(123
456)
Wrap in empty lines
Wrap in empty lines
example:
'struct X {', '}'
"123"
"456"
output:
""
"123"
"456"
""
Wraps the collection only if it is multiline
Wraps the collection only if it is multiline
example 1:
'(', ')'
123
456
output 1:
(123
456)
example 2:
'(', ')'
123
output 2:
123