Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

rk0cc/unicode-string-contain-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 solve the 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

About

String contain validation for non-Latin language system

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors

Languages