Mercurial > projects > dwt2
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 module java.text.MessageFormat; | |
2 | |
3 import java.lang.all; | |
4 import tango.text.convert.Format; | |
5 | |
6 class MessageFormat { | |
7 public static String format( String frmt, Object[] args... ){ | |
8 switch( args.length ){ | |
9 case 0: return Format(frmt); | |
10 case 1: return Format(frmt, args[0]); | |
11 case 2: return Format(frmt, args[0], args[1]); | |
12 case 3: return Format(frmt, args[0], args[1], args[2]); | |
13 case 4: return Format(frmt, args[0], args[1], args[2], args[3]); | |
14 case 5: return Format(frmt, args[0], args[1], args[2], args[3], args[4]); | |
15 default: | |
16 implMissing(__FILE__, __LINE__ ); | |
17 } | |
18 } | |
19 } | |
20 |