Commit Graph

23 Commits

Author SHA1 Message Date
Christian Duerr c66b77e5e2 Update to Unicode 15 2022-09-13 17:46:35 +02:00
Mateo Guynn 1325a21ca3 Use static tables
Using `static` instead of `const` reduces the size of output binaries, .rlib, and .rmeta.
2022-07-23 15:40:46 -07:00
Mateo Guynn 9519902ad1 Add Wikipedia benchmarks & instructions 2022-06-10 11:03:01 -07:00
Mateo Guynn 5a9b8f3bd0 Switch from binary search to lookup tables 2022-06-09 18:46:46 -07:00
Christian Duerr 5ffbbc348d Update to Unicode 14 2021-09-15 11:23:45 +02:00
Pyfisch 8276b8fffc Update to Unicode 13
Change version fields to u8 as the maximum value
of each field is 255 according to specification.
2020-04-13 11:33:44 +02:00
Christian Duerr ab243ec183 Update to unicode 12.1
This updates the tables.rs file to be compatible with the latest
available unicode standard, allowing for new glyphs like the yawning
face to be recognized properly.

The unicode.py script has also been updated to python3, since that
should be supported on more systems.
2019-12-05 10:41:59 +01:00
theindigamer 6602390a06 Add a possible issue to the README. 2018-10-11 18:11:15 -04:00
kwantam 26d1bfbb77 update version to 0.1.5 2018-05-19 12:21:49 -07:00
lukaramu 4940d3fe27 Update tables.rs to Unicode 10 2017-09-03 23:17:22 +02:00
kwantam 96eaa4a881 update to Unicode 9 ; clean up no_std and related 2016-12-23 15:43:58 -08:00
kwantam 1c424cfd93 Update no_std feature to compile with nightly. 2015-08-19 22:47:09 -04:00
kwantam cff7514a3f add necessary feature gates for no_std feature 2015-07-08 23:17:44 -04:00
kwantam 174660098c update to Unicode 8.0.0; update Cargo.toml 2015-07-08 23:06:00 -04:00
kwantam cbad406d03 add benchmarks ; add explicit #[inline] annotations
This diff adds benchmarks to get more info regarding Issue #1.

It appears that the remaining difference between the "simple"
case and the "cargo" case is the result of a difference in
performance between using `match` and `if` for tight loops.

I suspect it's because of the way that match arms get reordered:
if I manually reorder the "if" statement, I can reproduce the
match performance.

Also added a couple #[inline] annotations in tables.rs, though
the difference in performance in my measurements is negligible.

Bumped version number to 0.1.1.
2015-04-19 00:02:03 -04:00
kwantam 1d27b56ea3 logo 2015-04-17 00:13:50 -04:00
kwantam ab525e6616 make no_std a feature to allow builds in beta; bump version 2015-04-15 17:56:43 -04:00
kwantam 4c51fb1466 slight doc touch 2015-04-15 16:00:36 -04:00
kwantam efa0430624 rename to unicode-width ; add tests from libcoretests for char.width() 2015-04-14 15:26:44 -04:00
kwantam afabcb204b move docs to the Traits 2015-04-13 21:10:52 -04:00
kwantam 85050d8e41 first working version 2015-04-13 20:50:13 -04:00
kwantam c89e9d94cc add tablegen script and table 2015-04-13 20:08:04 -04:00
kwantam ea86ecef91 initial commit 2015-04-13 19:31:04 -04:00