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

Method replace

src/speech.rs:279–281  ·  view source on GitHub ↗
(ra: &ReplacementArray, rules_with_context: &'r mut SpeechRulesWithContext<'c, 's,'m>, mathml: Element<'c>)

Source from the content-addressed store, hash-verified

277 }
278
279 fn replace<'s:'c, 'r>(ra: &ReplacementArray, rules_with_context: &'r mut SpeechRulesWithContext<'c, 's,'m>, mathml: Element<'c>) -> Result<String> {
280 return ra.replace_array_string(rules_with_context, mathml);
281 }
282
283 fn replace_nodes<'s:'c, 'r>(rules: &'r mut SpeechRulesWithContext<'c, 's,'m>, nodes: Vec<Node<'c>>, mathml: Element<'c>) -> Result<String> {
284 return rules.replace_nodes_string(nodes, mathml);

Callers 8

speak_rulesFunction · 0.45
replace_array_stringMethod · 0.45
add_debug_string_argMethod · 0.45
substitute_chMethod · 0.45
find_matchMethod · 0.45
replace_charsMethod · 0.45
replace_single_charMethod · 0.45

Calls 15

nameFunction · 0.85
create_mathml_elementFunction · 0.85
set_mathml_nameFunction · 0.85
speak_mathmlFunction · 0.85
intent_from_mathmlFunction · 0.85
infer_intentFunction · 0.85
replace_array_stringMethod · 0.80
replace_array_treeMethod · 0.80
lenMethod · 0.80
replace_charsMethod · 0.80
as_strMethod · 0.80
get_contextMethod · 0.80

Tested by

no test coverage detected