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

Method read_files

src/speech.rs:2006–2016  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2004 }
2005
2006 pub fn read_files(&mut self) -> Result<()> {
2007 if self.rules.is_empty() {
2008 let rule_file = self.pref_manager.borrow().get_rule_file(&self.name).clone();
2009 self.read_patterns(&rule_file)?;
2010
2011 }
2012 if self.unicode_short.borrow().is_empty() {
2013 self.read_unicode(None, true)?;
2014 }
2015 return Ok( () );
2016 }
2017
2018 pub fn invalidate(changes: FilesChanged) {
2019 SPEECH_RULES.with(|rules| {

Callers 4

intent_rulesFunction · 0.80
speak_rulesFunction · 0.80
braille_mathmlFunction · 0.80

Calls 4

is_emptyMethod · 0.80
get_rule_fileMethod · 0.80
read_patternsMethod · 0.80
read_unicodeMethod · 0.80

Tested by

no test coverage detected