Skip to main content

Module parse

Module parse 

Source

Structs§

QuoteStripped
A string that has been stripped of the beginning and ending quote
UnclosedQuotesError
String has unbalanced ' or " quotation marks

Enums§

ParenthesisParseError
ParenthesisParseErrorOwned
Owned version of ParenthesisParseError.

Functions§

parse_parentheses
Checks wheter a given input is enclosed in parentheses, prefixed by a certain number of stopwords.
skip_next_braces
Given a string, returns how many characters need to be skipped
split_string_respect_comma
Splits a string by commas, but respects parentheses/braces
split_string_respect_whitespace
Splits a string by whitespace, but respects parentheses/braces
strip_quotes
Strip quotes from an input, given that both quotes use either " or ', but not both.