stringex ~master
Unicode to ASCII transcoder
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
stringex-d
Partial port of Ruby's stringex into D. Right now it only includes unicode characters replacement via maps provided in YAML files.
Usage
The simplest way to use it is to simply call a unidecode
function on a string:
import std.stdio;
import stringex.unidecode;
void main()
{
writeln("ŻÓŁW".unidecode()); // => "ZOLW"
writeln("影响".unidecode()); // => "Ying Xiang"
}
What for?
This would probably be mostly useful for web apps and creating URLs for resources with unicode names. Another example is saving files with sane names.
License
Released under MIT license.
- Registered by Paweł Świątkowski
- ~master released 3 years ago
- katafrakt/stringex-d
- MIT
- Copyright © 2015, Paweł Świątkowski
- Authors:
- Dependencies:
- none
- Versions:
-
0.2.1 2019-Nov-06 0.2.0 2019-Aug-26 0.1.1 2019-Jul-23 0.1.0 2017-Jul-24 0.0.3 2016-Nov-29 - Download Stats:
-
-
12 downloads today
-
60 downloads this week
-
291 downloads this month
-
10014 downloads total
-
- Score:
- 3.1
- Short URL:
- stringex.dub.pm