MCPcopy Create free account
hub / github.com/cosdata/cosdata / parse_string_literal

Function parse_string_literal

src/cosql/common.rs:29–31  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

27}
28
29pub fn parse_string_literal(input: &str) -> IResult<&str, &str> {
30 delimited(char('"'), take_while1(|c| c != '"'), char('"'))(input)
31}
32
33pub fn parse_variable(input: &str) -> IResult<&str, &str> {
34 preceded(char('$'), parse_identifier)(input)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected