Earmark v1.3.3 Earmark.Helpers.StringHelpers View Source

Link to this section Summary

Functions

Remove the leading part of a string

Remove leading spaces up to size

Returns a tuple with the prefix and the beheaded string

Link to this section Functions

Remove the leading part of a string

Link to this function

behead_indent(str, size)

View Source

Remove leading spaces up to size

Returns a tuple with the prefix and the beheaded string

  iex> behead_tuple("prefixpostfix", "prefix")
  {"prefix", "postfix"}