Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

UMessageFormat::Args Struct Reference

List of all members.

Public Member Functions

Argsreset ()
Argsadd (UText x)
Argsadd (wchar[] x)
Argsadd (int x)
Argsadd (double x)

Private Attributes

uint[32] args
uint index

Detailed Description

A typesafe list of arguments for the UMessageFormat.format() method. This should be used in the following manner:

                wchar[] format = "{0} {1, number, currency} {2, number, integer}";
                UMessageFormat msg = new UMessageFormat (format);

                msg.Args args;
                msg.format (output, args.add("abc").add(152.0).add(456));

Note that the argument order must follow that of the format string, although the format string may dictate the ultimate position of each argument.

See http://oss.software.ibm.com/icu/apiref/umsg_8h.html for details on the format string.

Todo:
this will likely fail on certain CPU architectures.

Definition at line 249 of file UMessageFormat.d.


Member Function Documentation

Args* reset  )  [inline]
 

Definition at line 264 of file UMessageFormat.d.

References index.

Args* add UText  x  )  [inline]
 

Definition at line 274 of file UMessageFormat.d.

References args, index, and x.

Args* add wchar[]  x  )  [inline]
 

Definition at line 285 of file UMessageFormat.d.

References args, index, and x.

Args* add int  x  )  [inline]
 

Definition at line 296 of file UMessageFormat.d.

References args, index, and x.

Args* add double  x  )  [inline]
 

Definition at line 307 of file UMessageFormat.d.

References args, index, and x.


Member Data Documentation

uint [32] args [private]
 

Definition at line 251 of file UMessageFormat.d.

Referenced by add().

uint index [private]
 

Definition at line 252 of file UMessageFormat.d.

Referenced by add(), and reset().


The documentation for this struct was generated from the following file:
Generated on Fri Nov 11 18:44:46 2005 for Mango by  doxygen 1.4.0