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

UCommonFormat Class Reference

Inheritance diagram for UCommonFormat:

UNumberFormat UCurrencyFormat UDecimalFormat UDurationFormat UPercentFormat UScientificFormat USpelloutFormat List of all members.

Public Member Functions

 this (Style style, char[] pattern, inout ULocale locale)
bool isParseIntegerOnly ()
bool isGroupingUsed ()
bool isDecimalSeparatorAlwaysShown ()
void setParseIntegerOnly (bool yes)
void setGroupingUsed (bool yes)
void setDecimalSeparatorAlwaysShown (bool yes)
void setMaxIntegerDigits (uint x)
void setMinIntegerDigits (uint x)
void setIntegerDigits (uint x)
void setMaxFractionDigits (uint x)
void setMinFractionDigits (uint x)
void setFractionDigits (uint x)
void setMultiplier (uint x)
void setGroupingSize (uint x)
void setRoundingMode (Rounding x)
void setRoundingIncrement (uint x)
void setFormatWidth (uint x)
void setPaddingPosition (Pad x)
void setSecondaryGroupingSize (uint x)
void setSignificantDigitsUsed (uint x)
void setMinSignificantDigits (uint x)
void setMaxSignificantDigits (uint x)
uint getMaxIntegerDigits ()
uint getMinIntegerDigits ()
uint getIntegerDigits ()
uint getMaxFractionDigits ()
uint getMinFractionDigits ()
uint getFractionDigits ()
uint getMultiplier ()
uint getGroupingSize ()
Rounding getRoundingMode ()
uint getRoundingIncrement ()
uint getFormatWidth ()
Pad getPaddingPosition ()
uint getSecondaryGroupingSize ()
uint getSignificantDigitsUsed ()
uint getMinSignificantDigits ()
uint getMaxSignificantDigits ()
void getPattern (UString dst, bool localize)

Private Types

typedef void * UFieldPos
typedef void * ParseError
enum  Rounding {
  Ceiling, Floor, Down, Up,
  HalfEven, HalfDown, HalfUp
}
enum  Pad { BeforePrefix, AfterPrefix, BeforeSuffix, AfterSuffix }

Private Member Functions

void format (UString dst, int number, UFieldPos p=null)
void format (UString dst, long number, UFieldPos p=null)
void format (UString dst, double number, UFieldPos p=null)
int parseInteger (UText src, uint *index=null)
long parseLong (UText src, uint *index=null)
double parseDouble (UText src, uint *index=null)

Static Private Member Functions

 this ()

Private Attributes

package Handle handle

Static Private Attributes

FunctionLoader Bind[] targets

Member Typedef Documentation

typedef void* UFieldPos [inherited]
 

Definition at line 683 of file UNumberFormat.d.

typedef void* ParseError [inherited]
 

Definition at line 684 of file UNumberFormat.d.


Member Enumeration Documentation

enum Rounding [inherited]
 

Enumeration values:
Ceiling 
Floor 
Down 
Up 
HalfEven 
HalfDown 
HalfUp 

Definition at line 687 of file UNumberFormat.d.

enum Pad [inherited]
 

Enumeration values:
BeforePrefix 
AfterPrefix 
BeforeSuffix 
AfterSuffix 

Definition at line 698 of file UNumberFormat.d.


Member Function Documentation

this Style  style,
char[]  pattern,
inout ULocale  locale
[inline]
 

Reimplemented from UNumberFormat.

Definition at line 254 of file UNumberFormat.d.

bool isParseIntegerOnly  )  [inline]
 

Return true if this format will parse numbers as integers only

Definition at line 266 of file UNumberFormat.d.

bool isGroupingUsed  )  [inline]
 

Returns true if grouping is used in this format.

Definition at line 277 of file UNumberFormat.d.

bool isDecimalSeparatorAlwaysShown  )  [inline]
 

Always show decimal point?

Definition at line 288 of file UNumberFormat.d.

void setParseIntegerOnly bool  yes  )  [inline]
 

Sets whether or not numbers should be parsed as integers only

Definition at line 300 of file UNumberFormat.d.

void setGroupingUsed bool  yes  )  [inline]
 

Set whether or not grouping will be used in this format.

Definition at line 311 of file UNumberFormat.d.

void setDecimalSeparatorAlwaysShown bool  yes  )  [inline]
 

Always show decimal point.

Definition at line 322 of file UNumberFormat.d.

void setMaxIntegerDigits uint  x  )  [inline]
 

Sets the maximum number of digits allowed in the integer portion of a number.

Definition at line 334 of file UNumberFormat.d.

void setMinIntegerDigits uint  x  )  [inline]
 

Sets the minimum number of digits allowed in the integer portion of a number.

Definition at line 346 of file UNumberFormat.d.

void setIntegerDigits uint  x  )  [inline]
 

Integer digits displayed

Definition at line 357 of file UNumberFormat.d.

void setMaxFractionDigits uint  x  )  [inline]
 

Sets the maximum number of digits allowed in the fraction portion of a number.

Definition at line 369 of file UNumberFormat.d.

void setMinFractionDigits uint  x  )  [inline]
 

Sets the minimum number of digits allowed in the fraction portion of a number.

Definition at line 381 of file UNumberFormat.d.

void setFractionDigits uint  x  )  [inline]
 

Fraction digits.

Definition at line 392 of file UNumberFormat.d.

void setMultiplier uint  x  )  [inline]
 

Definition at line 401 of file UNumberFormat.d.

void setGroupingSize uint  x  )  [inline]
 

Definition at line 410 of file UNumberFormat.d.

void setRoundingMode Rounding  x  )  [inline]
 

Definition at line 419 of file UNumberFormat.d.

void setRoundingIncrement uint  x  )  [inline]
 

Definition at line 428 of file UNumberFormat.d.

void setFormatWidth uint  x  )  [inline]
 

The width to which the output of format() is padded

Definition at line 439 of file UNumberFormat.d.

void setPaddingPosition Pad  x  )  [inline]
 

The position at which padding will take place.

Definition at line 450 of file UNumberFormat.d.

void setSecondaryGroupingSize uint  x  )  [inline]
 

Definition at line 459 of file UNumberFormat.d.

void setSignificantDigitsUsed uint  x  )  [inline]
 

Definition at line 468 of file UNumberFormat.d.

void setMinSignificantDigits uint  x  )  [inline]
 

Definition at line 477 of file UNumberFormat.d.

void setMaxSignificantDigits uint  x  )  [inline]
 

Definition at line 486 of file UNumberFormat.d.

uint getMaxIntegerDigits  )  [inline]
 

Returns the maximum number of digits allowed in the integer portion of a number.

Definition at line 499 of file UNumberFormat.d.

uint getMinIntegerDigits  )  [inline]
 

Returns the minimum number of digits allowed in the integer portion of a number.

Definition at line 511 of file UNumberFormat.d.

uint getIntegerDigits  )  [inline]
 

Definition at line 520 of file UNumberFormat.d.

uint getMaxFractionDigits  )  [inline]
 

Returns the maximum number of digits allowed in the fraction portion of a number.

Definition at line 532 of file UNumberFormat.d.

uint getMinFractionDigits  )  [inline]
 

Definition at line 541 of file UNumberFormat.d.

uint getFractionDigits  )  [inline]
 

Definition at line 550 of file UNumberFormat.d.

uint getMultiplier  )  [inline]
 

Definition at line 559 of file UNumberFormat.d.

uint getGroupingSize  )  [inline]
 

Definition at line 568 of file UNumberFormat.d.

Rounding getRoundingMode  )  [inline]
 

Definition at line 577 of file UNumberFormat.d.

uint getRoundingIncrement  )  [inline]
 

Definition at line 586 of file UNumberFormat.d.

uint getFormatWidth  )  [inline]
 

Definition at line 595 of file UNumberFormat.d.

Pad getPaddingPosition  )  [inline]
 

Definition at line 604 of file UNumberFormat.d.

uint getSecondaryGroupingSize  )  [inline]
 

Definition at line 613 of file UNumberFormat.d.

uint getSignificantDigitsUsed  )  [inline]
 

Definition at line 622 of file UNumberFormat.d.

uint getMinSignificantDigits  )  [inline]
 

Definition at line 631 of file UNumberFormat.d.

uint getMaxSignificantDigits  )  [inline]
 

Definition at line 640 of file UNumberFormat.d.

void getPattern UString  dst,
bool  localize
[inline]
 

Definition at line 649 of file UNumberFormat.d.

References UString::format().

this  )  [inline, static, inherited]
 

Definition at line 918 of file UNumberFormat.d.

void format UString  dst,
int  number,
UFieldPos  p = null
[inline, inherited]
 

Definition at line 792 of file UNumberFormat.d.

References UString::format().

void format UString  dst,
long  number,
UFieldPos  p = null
[inline, inherited]
 

Definition at line 806 of file UNumberFormat.d.

References UString::format().

void format UString  dst,
double  number,
UFieldPos  p = null
[inline, inherited]
 

Definition at line 820 of file UNumberFormat.d.

References UString::format().

int parseInteger UText  src,
uint *  index = null
[inline, inherited]
 

Definition at line 834 of file UNumberFormat.d.

References UText::content, and UText::len.

long parseLong UText  src,
uint *  index = null
[inline, inherited]
 

Definition at line 845 of file UNumberFormat.d.

References UText::content, and UText::len.

double parseDouble UText  src,
uint *  index = null
[inline, inherited]
 

Definition at line 856 of file UNumberFormat.d.

References UText::content, and UText::len.


Member Data Documentation

package Handle handle [inherited]
 

Definition at line 681 of file UNumberFormat.d.

Referenced by UDateFormat::setNumberFormat().

FunctionLoader Bind [] targets [static, inherited]
 

Initial value:

 
                [
                {cast(void**) &unum_open,        "unum_open"}

Definition at line 899 of file UNumberFormat.d.


The documentation for this class was generated from the following file:
Generated on Tue Jan 25 21:18:42 2005 for Mango by doxygen 1.3.6