MCPcopy Create free account
hub / github.com/dev-formata-io/stof / raw_double_string

Function raw_double_string

src/parser/string.rs:34–37  ·  view source on GitHub ↗

Parse a raw double quoted string with escape chars. Returns everything inside a r#"..."#

(input: &str)

Source from the content-addressed store, hash-verified

32/// Parse a raw double quoted string with escape chars.
33/// Returns everything inside a r#"..."#
34pub(self) fn raw_double_string(input: &str) -> IResult<&str, String, StofParseError> {
35 let (input, res) = delimited(tag("r#\""), take_until("\"#"), tag("\"#")).parse(input)?;
36 Ok((input, res.into()))
37}
38
39/// Parse a double quoted string.
40pub fn double_string(input: &str) -> IResult<&str, String, StofParseError> {

Callers 2

rawFunction · 0.85
raw_double_esc_quoteFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by 2

rawFunction · 0.68
raw_double_esc_quoteFunction · 0.68