String contain validation for non-Latin language system
Project description
unicode-string-contain-check
This python package is performing in
with UTF-8 encoded to support non-Latin charathers including CJK language
Testing Language | Test result |
---|---|
Chinese (Simp.) | Passed |
Chinese (Trad.) | Passed |
Japanese | Passed |
Korean | Passed |
It should be fine for other language, otherwise, please create new issue to solving problem
Usage
Import this package first:
import unicode_string_contain_check
Recommended ways:
# Name what you want
import unicode_string_contain_check as uin
Check does the word contain in the phrase:
if uin.utf_contain("遊戲保持了前作般的高自由度,玩家可以隨心所欲地進行","隨心所欲"):
print("It's contain!!!")
The result wil be like this:
It's contain!!!
A python file should be looks like:
import unicode_string_contain_check as uin
if __name__ == "__main__":
if uin.utf_contain("遊戲保持了前作般的高自由度,玩家可以隨心所欲地進行","隨心所欲"):
print("It's contain!!!")
Guides
unf_contain(usr_input,target_text)
: Check does the target (target_text
) contains in a string (usr_input
)
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for unicode_string_contain_check-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b09c108f40dae35b09c85b88a22af4e91052edee44e0aa7422e0e852f7c1261 |
|
MD5 | 7ffd0e968f683b17f565920db6b12252 |
|
BLAKE2b-256 | ac677809da0d00a6d12d791fe89d7bca25608ad7fb3a7addbef4a0e9361adf11 |
Close
Hashes for unicode_string_contain_check-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d5e000a0100d70d639a1850b01e3677f64f4f86225941d6d1348106699e3c5 |
|
MD5 | 2a4c55b5a116f9ae2fdb6de9fad9daed |
|
BLAKE2b-256 | 959cb141648e1a602ce9c239de391fc017290357fe4df354a982ce465d1f446d |