-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
4,268 additions
and
3,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,7 @@ target/ | |
|
||
# OS X | ||
.DS_Store | ||
|
||
# Other | ||
.python-version | ||
.pytest_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## 0.4.0 | ||
Added support for Unicode 11. | ||
|
||
Added `grapheme.UNICODE_VERSION`. | ||
|
||
No other API changes | ||
|
||
## 0.3.0 | ||
Added a few new functions: | ||
|
||
* `grapheme.safe_split_index`, which can find the highest grapheme boundary index in a given string without traversing the full grapheme sequence. | ||
* `grapheme.startswith`, which tests that a given string starts with the same grapheme sequence as a given prefix. | ||
* `grapheme.endswith`, which tests that a given string ends with the same grapheme sequence as a given suffix. | ||
|
||
## 0.2.1 | ||
Performance improvements | ||
|
||
No new functionality, but noticably better performance. | ||
|
||
## 0.2.0 | ||
* Adds `grapheme.contains` | ||
* Bugfix for empty strings | ||
|
||
## 0.1.0 | ||
Initial release | ||
|
||
Basic support for getting graphemes, grapheme string lengths and grapheme based slicing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
""" | ||
Main module for the grapheme package. | ||
.. data:: UNICODE_VERSION | ||
The currently supported Unicode version | ||
""" | ||
|
||
from .api import graphemes, length, grapheme_lengths, slice, contains, safe_split_index, startswith, endswith | ||
from .api import (graphemes, length, grapheme_lengths, slice, contains, safe_split_index, startswith, endswith, | ||
UNICODE_VERSION) | ||
|
||
__all__ = ['graphemes', 'length', 'grapheme_lengths', 'slice', 'contains', 'safe_split_index', 'startswith', 'endswith'] | ||
__all__ = ['graphemes', 'length', 'grapheme_lengths', 'slice', 'contains', 'safe_split_index', 'startswith', 'endswith', | ||
'UNICODE_VERSION'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.