Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BYVoid/OpenCC
/ convert
Method
convert
python/opencc/__init__.py:101–103 ·
view source on GitHub ↗
(self, text: str)
Source
from the content-addressed store, hash-verified
99
self.config = config
100
101
def
convert(self, text: str):
102
byte_text = text.encode(
'utf-8'
)
103
return
super().convert(byte_text, len(byte_text))
Callers
9
test_conversion
Function · 0.95
test_resource_zip_text_dictionary_support
Function · 0.95
main
Function · 0.95
testAsync
Function · 0.95
test_include_tofu_risk_dictionaries_option
Function · 0.80
test_builtin_config_stem_is_normalized
Function · 0.80
main
Function · 0.80
demo.js
File · 0.80
opencc.js
File · 0.80
Calls
1
len
Function · 0.85
Tested by
4
test_conversion
Function · 0.76
test_resource_zip_text_dictionary_support
Function · 0.76
test_include_tofu_risk_dictionaries_option
Function · 0.64
test_builtin_config_stem_is_normalized
Function · 0.64