MCPcopy Create free account
hub / github.com/daisy/MathCAT / unquote_string

Function unquote_string

src/speech.rs:52–54  ·  view source on GitHub ↗

Converts 'string' into a "quoted" string -- use is_quoted_string and unquote_string IMPORTANT: this assumes the string is quoted -- no check is made

(str: &str)

Source from the content-addressed store, hash-verified

50/// Converts 'string' into a "quoted" string -- use is_quoted_string and unquote_string
51/// IMPORTANT: this assumes the string is quoted -- no check is made
52pub fn unquote_string(str: &str) -> &str {
53 return &str[..str.len()-N_BYTES_NO_EVAL_QUOTE_CHAR];
54}
55
56
57/// The main external call, `intent_from_mathml` returns a string for the speech associated with the `mathml`.

Callers 1

replace_charsMethod · 0.85

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected