2005/5/9

     
 

class DecimalFormat

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::text::DecimalFormat Class Reference

#include <DecimalFormat.h>

Inheritance diagram for acdk::text::DecimalFormat:

acdk::text::NumberFormat acdk::io::Serializable acdk::lang::Cloneable acdk::text::Format acdk::lang::Object acdk::io::Serializable acdk::lang::Cloneable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Corresponds the Java implementation.

Author:
Roger Rene Kommer
Note:
Not finished yet.
  • pattern 'E' not supported
  • parse not supported
  • toPattern() & toLocalizedPattern() not supported


Public Member Functions

 DecimalFormat ()
 DecimalFormat (IN(RDecimalFormatSymbols) symbols)
void applyLocalizedPattern (IN(RString) pattern)
void applyPattern (IN(RString) pattern)
acdk::lang::Object clone ()
virtual acdk::lang::Object clone (sys::Allocator *alloc)
bool equals (IN(acdk::lang::Object) obj)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

RStringBuffer format (double number, IN(RStringBuffer) result, IN(RFieldPosition) fieldPosition)
RStringBuffer format (jlong number, IN(RStringBuffer) result, IN(RFieldPosition) fieldPosition)
RStringBuffer format (IN(acdk::lang::Object) obj, IN(RStringBuffer) sb, IN(RFieldPosition) pos)
 This method formats an acdk::lang::Object into a String an appends the String to a StringBuffer.

RNumber parse (IN(RString) text, IN(RParsePosition) parsePosition)
RDecimalFormatSymbols getDecimalFormatSymbols ()
int getGroupingSize ()
void setGroupingSize (int newValue)
int hashCode ()

Private Attributes

RDecimalFormatSymbols _dateFormatSymbols
RString _pattern
RDecimalSubpatternProperties _positiv
RDecimalSubpatternProperties _negativ


Constructor & Destructor Documentation

acdk::text::DecimalFormat::DecimalFormat  ) 
 

acdk::text::DecimalFormat::DecimalFormat IN(RDecimalFormatSymbols symbols  ) 
 


Member Function Documentation

void acdk::text::DecimalFormat::applyLocalizedPattern IN(RString pattern  ) 
 

void acdk::text::DecimalFormat::applyPattern IN(RString pattern  ) 
 

virtual acdk::lang::Object acdk::text::DecimalFormat::clone sys::Allocator *  alloc  )  [inline, virtual]
 

Reimplemented from acdk::lang::Cloneable.

acdk::lang::Object acdk::text::DecimalFormat::clone  )  [virtual]
 

Implements acdk::lang::Cloneable.

bool acdk::text::DecimalFormat::equals IN(acdk::lang::Object obj  )  [virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::text::NumberFormat.

RStringBuffer acdk::text::DecimalFormat::format IN(acdk::lang::Object obj,
IN(RStringBuffer sb,
IN(RFieldPosition pos
[virtual]
 

This method formats an acdk::lang::Object into a String an appends the String to a StringBuffer.

Parameters:
obj The acdk::lang::Object to format.
sb The StringBuffer to append to.
pos The desired FieldPosition, which is also updated by this call
Returns:
The updated StringBuffer. IllegalArgumentException If the acdk::lang::Object cannot be formatted

Implements acdk::text::Format.

RStringBuffer acdk::text::DecimalFormat::format jlong  number,
IN(RStringBuffer result,
IN(RFieldPosition fieldPosition
[virtual]
 

Implements acdk::text::NumberFormat.

RStringBuffer acdk::text::DecimalFormat::format double  number,
IN(RStringBuffer result,
IN(RFieldPosition fieldPosition
[virtual]
 

Implements acdk::text::NumberFormat.

RDecimalFormatSymbols acdk::text::DecimalFormat::getDecimalFormatSymbols  ) 
 

int acdk::text::DecimalFormat::getGroupingSize  )  [inline]
 

int acdk::text::DecimalFormat::hashCode  )  [virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::text::NumberFormat.

RNumber acdk::text::DecimalFormat::parse IN(RString text,
IN(RParsePosition parsePosition
[virtual]
 

Implements acdk::text::NumberFormat.

void acdk::text::DecimalFormat::setGroupingSize int  newValue  )  [inline]
 


Member Data Documentation

RDecimalFormatSymbols acdk::text::DecimalFormat::_dateFormatSymbols [private]
 

RDecimalSubpatternProperties acdk::text::DecimalFormat::_negativ [private]
 

RString acdk::text::DecimalFormat::_pattern [private]
 

RDecimalSubpatternProperties acdk::text::DecimalFormat::_positiv [private]