MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _tokenize

Function _tokenize

tools/python-3.11.9-amd64/Lib/gettext.py:87–96  ·  view source on GitHub ↗
(plural)

Source from the content-addressed store, hash-verified

85
86
87def _tokenize(plural):
88 for mo in re.finditer(_token_pattern, plural):
89 kind = mo.lastgroup
90 if kind == 'WHITESPACES':
91 continue
92 value = mo.group(kind)
93 if kind == 'INVALID':
94 raise ValueError('invalid token in plural form: %s' % value)
95 yield value
96 yield ''
97
98
99def _error(value):

Callers 1

c2pyFunction · 0.70

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected