X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/5a07183e26b7ca151959629420a83f59af5339f3..bcf5b1203472d877e1f3560ca595cc1341c3783b:/src/compiler/dmd/adi.d?ds=sidebyside diff --git a/src/compiler/dmd/adi.d b/src/compiler/dmd/adi.d index 908841b..0253bc0 100644 --- a/src/compiler/dmd/adi.d +++ b/src/compiler/dmd/adi.d @@ -38,9 +38,9 @@ module rt.adi; private { - debug(adi) import stdc.stdio; - import stdc.string; - import stdc.stdlib; + debug(adi) import core.stdc.stdio; + import core.stdc.string; + import core.stdc.stdlib; import util.utf; enum BlkAttr : uint @@ -228,9 +228,8 @@ extern (C) long _adReverseWchar(wchar[] a) unittest { wstring a = "abcd"; - wstring r; - r = a.dup.reverse; + auto r = a.dup.reverse; assert(r == "dcba"); a = "a\U00012356\U00012346c"; @@ -337,7 +336,7 @@ extern (C) long _adSortChar(char[] a) { if (a.length > 1) { - dchar[] da = toUTF32(a); + dstring da = toUTF32(a); da.sort; size_t i = 0; foreach (dchar d; da) @@ -359,7 +358,7 @@ extern (C) long _adSortWchar(wchar[] a) { if (a.length > 1) { - dchar[] da = toUTF32(a); + dstring da = toUTF32(a); da.sort; size_t i = 0; foreach (dchar d; da)