MCPcopy Index your code
hub / github.com/daviddrysdale/python-phonenumbers / _full_locale

Function _full_locale

python/phonenumbers/prefix.py:17–26  ·  view source on GitHub ↗
(lang, script, region)

Source from the content-addressed store, hash-verified

15
16
17def _full_locale(lang, script, region):
18 if script is not None:
19 if region is not None:
20 return "%s_%s_%s" % (lang, script, region)
21 else:
22 return "%s_%s" % (lang, script)
23 elif region is not None:
24 return "%s_%s" % (lang, region)
25 else:
26 return lang
27
28
29def _find_lang(langdict, lang, script, region):

Callers 1

_find_langFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected