MCPcopy Create free account
hub / github.com/comaps/comaps / read_languages

Function read_languages

tools/python/tts_languages.py:44–52  ·  view source on GitHub ↗
(strings_name)

Source from the content-addressed store, hash-verified

42
43
44def read_languages(strings_name):
45 langs = set()
46 RE_LANG = re.compile(r'^ *([\w-]+) *=')
47 with open(strings_name, "r") as langs_file:
48 for line in langs_file:
49 m = RE_LANG.search(line)
50 if m:
51 langs.add(m.group(1))
52 return langs
53
54
55def make_languages_hpp(langs, hpp_name):

Callers 1

runFunction · 0.85

Calls 2

searchMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected