Mercurial > projects > dwt-addons
view dwtx/dwtxhelper/MessageFormat.d @ 195:a4d38d47ddc4
HashMap support for null values and keys
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 03 Feb 2009 16:08:10 +0100 |
parents | 25f1f92fa3df |
children |
line wrap: on
line source
module dwtx.dwtxhelper.MessageFormat; import dwt.dwthelper.utils; import tango.text.convert.Format; class MessageFormat { public static String format( String frmt, Object[] args... ){ switch( args.length ){ case 0: return Format(frmt); case 1: return Format(frmt, args[0]); case 2: return Format(frmt, args[0], args[1]); case 3: return Format(frmt, args[0], args[1], args[2]); case 4: return Format(frmt, args[0], args[1], args[2], args[3]); case 5: return Format(frmt, args[0], args[1], args[2], args[3], args[4]); default: implMissing(__FILE__, __LINE__ ); } } }