https://github.com/ojii/strslice
Python 3 style emoji-safe string slicing for Python 2.
https://github.com/ojii/strslice
python python2 unicode
Last synced: 5 months ago
JSON representation
Python 3 style emoji-safe string slicing for Python 2.
- Host: GitHub
- URL: https://github.com/ojii/strslice
- Owner: ojii
- License: other
- Created: 2016-06-20T09:59:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-24T08:35:52.000Z (over 9 years ago)
- Last Synced: 2024-12-30T08:24:21.401Z (about 1 year ago)
- Topics: python, python2, unicode
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strslice
Python 3 style emoji-safe string slicing for Python 2. Based on
[uniseg-python](https://pypi.python.org/pypi/uniseg/) by
[Masaaki Shibata](http://emptypage.jp/).
# Usage
```
>>> from strslice import strslice
>>> print(u'🏩'[0])
???
>>> print(strslice(u'🏩')[0])
🏩
```
# Release Notes
## 1.0
* Initial release
* Unicode 8.0.0 data