Mercurial > projects > dwt-addons
view dwtx/dwtxhelper/MessageFormat.d @ 177:21c77bcb7887
add impl
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 12 Sep 2008 18:50:33 +0200 |
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__ ); } } }