diff java/src/java/text/MessageFormat.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children 9b96950f2c3c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/java/src/java/text/MessageFormat.d	Sat Mar 14 18:23:29 2009 +0100
@@ -0,0 +1,20 @@
+module java.text.MessageFormat;
+
+import java.lang.all;
+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__ );
+        }
+    }
+}
+