Merge: Migration from ascii to code_point
authorJean Privat <jean@pryen.org>
Tue, 22 Sep 2015 19:41:29 +0000 (15:41 -0400)
committerJean Privat <jean@pryen.org>
Tue, 22 Sep 2015 19:41:29 +0000 (15:41 -0400)
commit23dfa0eaac7e7c6bb1452e0314e2261807d54854
treeb51ce455a7e7fa60cef7a4e1ad73d2f95e49755a
parent2b444105cf52cecc254ce225dd85b07f5d8a650f
parenteb7513037aa3d3263a23f64d26f8ae6a6cf937f8
Merge: Migration from ascii to code_point

As complement to #1262 and #1718, this PR solves part of both issues.

One does the migration from `ascii` to `code_point` since Unicode is a bit more than ASCII, let's try to use the right vocabulary when dealing with it.

The `ascii` service is however kept alive, but its contract is changed from Int to Byte to be used directly on a `Char` without the need to have the old `'c'.ascii.to_b`, now a simple `'c'.ascii` will do the exact same.

A further PR will be submitted later to prevent the use of `ascii` on non-ASCII literal characters.

Pull-Request: #1726
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>