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

Function make_languages_hpp

tools/python/tts_languages.py:55–59  ·  view source on GitHub ↗
(langs, hpp_name)

Source from the content-addressed store, hash-verified

53
54
55def make_languages_hpp(langs, hpp_name):
56 print ("Creating {}".format(hpp_name))
57 lang_str = ",\n".join([" \"{}\"".format(language) for language in sorted(langs)])
58 with open(hpp_name, "w") as hpp_file:
59 hpp_file.write(LANGUAGES_HPP_TEMPLATE.format(lang_list_size=len(langs), lang_list=lang_str))
60
61
62def run():

Callers 1

runFunction · 0.85

Calls 3

formatMethod · 0.80
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected