Summary
Functions
Variant of list_to_utf8_binary, but specifically for handling multiline strings
Splits a multiline list, this will mark each line with its escape status, a line with a :esc status should not be used for whitespace trimming/dedent, as it was explictly set.
Splits off as many space characters as possible
Check if a string is a valid identifier (that is a plain unbroken character sequence)
Types
@type esc_multiline() :: {:esc | :uesc, [char_or_code()]}
Functions
Variant of list_to_utf8_binary, but specifically for handling multiline strings
@spec split_multiline_list([char_or_code()], esc_multiline(), [esc_multiline()]) :: [ esc_multiline() ]
Splits a multiline list, this will mark each line with its escape status, a line with a :esc status should not be used for whitespace trimming/dedent, as it was explictly set.
One thing to note is all lines in the returned list start with a newline if its not the first line.
The returned array is always reversed, so the last line will be first
Splits off as many space characters as possible
Check if a string is a valid identifier (that is a plain unbroken character sequence)