Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue