Mercurial > projects > dil
diff trunk/src/main.d @ 746:32a8ddd330f8
Using icompare() instead of toLower().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 10 Feb 2008 02:14:08 +0100 |
parents | 7173ece1b696 |
children | 90668b83ae5e |
line wrap: on
line diff
--- a/trunk/src/main.d Sat Feb 09 23:23:01 2008 +0100 +++ b/trunk/src/main.d Sun Feb 10 02:14:08 2008 +0100 @@ -35,7 +35,7 @@ import tango.io.File; import tango.text.Util; import tango.time.StopWatch; -import tango.text.Ascii : toLower; +import tango.text.Ascii : icompare; void main(char[][] args) { @@ -100,7 +100,7 @@ incUndoc = true; else if (arg == "-v") verbose = true; - else if (arg.length > 5 && toLower(arg[$-4..$].dup) == "ddoc") + else if (arg.length > 5 && icompare(arg[$-4..$], "ddoc") == 0) macroPaths ~= arg; else filePaths ~= arg;