Kuddle.V2.Utils (Kuddle v1.1.0) View Source
Link to this section 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)
Link to this section Types
Specs
Specs
esc_multiline() :: {:esc | :uesc, [char_or_code()]}
Link to this section Functions
Specs
Variant of list_to_utf8_binary, but specifically for handling multiline strings
Specs
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
Specs
Splits off as many space characters as possible
Specs
Check if a string is a valid identifier (that is a plain unbroken character sequence)