ojii / strslice

Python 3 style emoji-safe string slicing for Python 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strslice

Python 3 style emoji-safe string slicing for Python 2. Based on uniseg-python by Masaaki Shibata.

Usage

>>> from strslice import strslice
>>> print(u'🏩'[0])
???
>>> print(strslice(u'🏩')[0])
🏩

Release Notes

1.0

  • Initial release
  • Unicode 8.0.0 data

About

Python 3 style emoji-safe string slicing for Python 2.

License:Other


Languages

Language:Python 100.0%