Mercurial > projects > dil
comparison 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 |
comparison
equal
deleted
inserted
replaced
745:7299159c3a19 | 746:32a8ddd330f8 |
---|---|
33 | 33 |
34 import Integer = tango.text.convert.Integer; | 34 import Integer = tango.text.convert.Integer; |
35 import tango.io.File; | 35 import tango.io.File; |
36 import tango.text.Util; | 36 import tango.text.Util; |
37 import tango.time.StopWatch; | 37 import tango.time.StopWatch; |
38 import tango.text.Ascii : toLower; | 38 import tango.text.Ascii : icompare; |
39 | 39 |
40 void main(char[][] args) | 40 void main(char[][] args) |
41 { | 41 { |
42 dil.SettingsLoader.loadSettings(); | 42 dil.SettingsLoader.loadSettings(); |
43 | 43 |
98 { | 98 { |
99 if (arg == "-i") | 99 if (arg == "-i") |
100 incUndoc = true; | 100 incUndoc = true; |
101 else if (arg == "-v") | 101 else if (arg == "-v") |
102 verbose = true; | 102 verbose = true; |
103 else if (arg.length > 5 && toLower(arg[$-4..$].dup) == "ddoc") | 103 else if (arg.length > 5 && icompare(arg[$-4..$], "ddoc") == 0) |
104 macroPaths ~= arg; | 104 macroPaths ~= arg; |
105 else | 105 else |
106 filePaths ~= arg; | 106 filePaths ~= arg; |
107 } | 107 } |
108 | 108 |