]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-97982: Factorize PyUnicode_Count() and unicode_count() code (#98025)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 12 Oct 2022 16:27:53 +0000 (19:27 +0300)
committerGitHub <noreply@github.com>
Wed, 12 Oct 2022 16:27:53 +0000 (18:27 +0200)
commitccab67ba7901a3012ad66f0ffafac4ea925a1ff0
tree75fe289a6b89e1ab5cdb59326dc6255ea74b732c
parente9569ec43e2376aa77240cd630db4be07e8720f3
gh-97982: Factorize PyUnicode_Count() and unicode_count() code (#98025)

Add unicode_count_impl() to factorize PyUnicode_Count()
and unicode_count() code.
Lib/test/test_unicode.py
Objects/unicodeobject.c