This commit is contained in:
Ingy döt Net 2013-10-27 22:24:23 +00:00
parent 6f050a029e
commit 776bba907c
3887 changed files with 59894 additions and 7280 deletions

View file

@ -1,15 +1,12 @@
import std.stdio, std.range, std.conv;
void main() {
import std.stdio, std.range, std.conv;
string s1 = "hello"; // UTF-8
string s1r = text(retro("hello"));
assert(s1r == "olleh");
assert(s1.retro.text == "olleh");
wstring s2 = "hello"w; // UTF-16
wstring s2r = wtext(retro("hello"));
assert(s2r == "olleh");
assert(s2.retro.wtext == "olleh");
dstring s3 = "hello"d; // UTF-32
dstring s3r = dtext(retro("hello"));
assert(s3r == "olleh");
assert(s3.retro.dtext == "olleh");
}