Commit c188772
committed
Bump 2.0.1: fixes, docs & API cleanup
Release bump to 2.0.1 with bug fixes, internal refactors, docs/examples updates, and tests.
Changes:
- Bumped package version to 2.0.1 and added changelog entry.
- Fix truncate behavior: do not append suffix when text already fits within max_len.
- Make starts_with_any / ends_with_any grapheme-aware (use public starts_with/ends_with).
- Correct center docs to indicate right-biased padding when uneven.
- Simplify find_emoji_index API (remove unused start parameter) and tighten its loop.
- Replace repeat_str implementation to a direct recursive loop to avoid intermediate list allocation.
- Update examples and docs to use the public `str` API (and `str/advanced` where applicable) and to reflect internal module path changes (src/str/internal/*).
- Update tokenizer docs to reference public `str.chars` / `str.chars_stdlib` and mark internal tokenizer module.
- Add regression tests for truncate noop, grapheme-aware starts/ends_with_any, and center right-bias.
Other: various documentation cleanups and example callsite adjustments to match the 2.0 public API.1 parent a0ccffc commit c188772
8 files changed
Lines changed: 240 additions & 159 deletions
File tree
- docs
- src/str/internal
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
5 | 30 | | |
6 | 31 | | |
7 | 32 | | |
| |||
0 commit comments