Mercurial > projects > dil
diff trunk/src/dil/Information.d @ 391:33b566df6af4
Migrated project to Tango.
Decremented the numbers of the format placeholders in the localized messages
by one.
Replaced all instances of writef/ln with Stdout.
Added module common.d with string aliases and a global Layout!(char) instance.
Replaced %s format specifiers with index placeholders in html/xml_tags.
Changed member Information.arguments to string message.
Copied std.metastring, std.uni and std.utf from Phobos.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 15 Sep 2007 17:12:26 +0200 |
parents | a48a987f7515 |
children | ad7977fe315a |
line wrap: on
line diff
--- a/trunk/src/dil/Information.d Wed Sep 12 21:03:41 2007 +0200 +++ b/trunk/src/dil/Information.d Sat Sep 15 17:12:26 2007 +0200 @@ -4,7 +4,7 @@ +/ module dil.Information; import dil.Messages; -import std.stdarg; +import common; enum InfoType { @@ -18,18 +18,18 @@ MID id; InfoType type; uint loc; - string[] arguments; + string message; - this(InfoType type, MID id, uint loc, string[] arguments) + this(InfoType type, MID id, uint loc, string message) { this.id = id; this.type = type; this.loc = loc; - this.arguments = arguments; + this.message = message; } string getMsg() { - return format_args(GetMsg(id), arguments); + return this.message; } }