MCPcopy Create free account
hub / github.com/PRQL/prql / quoted_string

Function quoted_string

prqlc/prqlc-parser/src/lexer/mod.rs:591–599  ·  view source on GitHub ↗
(
    escaped: bool,
)

Source from the content-addressed store, hash-verified

589}
590
591pub fn quoted_string<'a>(
592 escaped: bool,
593) -> impl Parser<'a, ParserInput<'a>, String, ParserError<'a>> {
594 choice((
595 multi_quoted_string(&'"', escaped),
596 multi_quoted_string(&'\'', escaped),
597 ))
598 .map(|chars| chars.into_iter().collect())
599}
600
601// Helper function to parse escape sequences
602// Takes the input and the quote character, returns the escaped character

Callers 3

interpolationFunction · 0.85
stringFunction · 0.85
test_basic_stringFunction · 0.85

Calls 4

multi_quoted_stringFunction · 0.85
mapMethod · 0.80
into_iterMethod · 0.80
collectMethod · 0.45

Tested by 1

test_basic_stringFunction · 0.68