Metadata-Version: 2.1
Name: unicode-string-contain-check
Version: 2.0.0
Summary: String contain validation for non-Latin language system
Home-page: https://github.com/rk0cc/unicode-string-contain-check
Author: rk0cc
Author-email: cyruschan1212@gmail.com
License: Apache
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: Filters
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# 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.)|<span style="color: lime">Passed</span>|
|Chinese (Trad.)|<span style="color: lime">Passed</span>|
|Japanese|<span style="color: lime">Passed</span>|
|Korean|<span style="color: lime">Passed</span>|

<br>

It should be fine for other language, otherwise, please create new issue to solving problem

<hr>

## Usage
Import this package first:
```python
import unicode_string_contain_check
```
Recommended ways:
```python
# Name what you want
import unicode_string_contain_check as uin
```
Check does the word contain in the phrase:
```python
if uin.utf_contain("遊戲保持了前作般的高自由度，玩家可以隨心所欲地進行","隨心所欲"):
    print("It's contain!!!")
```
The result wil be like this:
```
It's contain!!!
```
A python file should be looks like:
```python
import unicode_string_contain_check as uin

if __name__ == "__main__":
    if uin.utf_contain("遊戲保持了前作般的高自由度，玩家可以隨心所欲地進行","隨心所欲"):
        print("It's contain!!!")
```

<hr>

## Guides
`unf_contain(usr_input,target_text)`: Check does the target (`target_text`) contains in a string (`usr_input`)

<hr>

## License

Apache 2.0

