Xalan-C++ API Reference  1.12.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
xalanc::XalanNumberFormat Class Reference

#include <xalanc/PlatformSupport/XalanNumberFormat.hpp>

Inheritance diagram for xalanc::XalanNumberFormat:
[legend]

Public Member Functions

 XalanNumberFormat (MemoryManager &theManager)
 
virtual ~XalanNumberFormat ()
 
MemoryManager & getMemoryManager ()
 
virtual XalanDOMStringformat (double theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual XalanDOMStringformat (XMLInt16 theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual XalanDOMStringformat (XMLUInt16 theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual XalanDOMStringformat (XMLInt32 theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual XalanDOMStringformat (XMLUInt32 theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual XalanDOMStringformat (XMLInt64 theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual XalanDOMStringformat (XMLUInt64 theValue, XalanDOMString &theResult)
 Format a number into a string. More...
 
virtual bool isGroupingUsed () const
 Whether groupings are used for numbers, for example, "234,678". More...
 
virtual void setGroupingUsed (bool bUsed)
 Change whether groupings are used for numbers, for example, "234,678". More...
 
virtual void setGroupingSize (unsigned long size)
 Change the size of groupings, for example, "234,678" uses a size of "3". More...
 
virtual void setGroupingSeparator (const XalanDOMString &s)
 Change the separator string used for groupings, for example, "234,678" uses the separator ",". More...
 

Static Public Member Functions

static XalanNumberFormatcreate (MemoryManager &theManager)
 

Protected Member Functions

void applyGrouping (const XalanDOMString &value, XalanDOMString &result)
 

Detailed Description

Definition at line 36 of file XalanNumberFormat.hpp.

Constructor & Destructor Documentation

◆ XalanNumberFormat()

xalanc::XalanNumberFormat::XalanNumberFormat ( MemoryManager &  theManager)
explicit

◆ ~XalanNumberFormat()

virtual xalanc::XalanNumberFormat::~XalanNumberFormat ( )
virtual

Member Function Documentation

◆ applyGrouping()

void xalanc::XalanNumberFormat::applyGrouping ( const XalanDOMString value,
XalanDOMString result 
)
protected

◆ create()

static XalanNumberFormat* xalanc::XalanNumberFormat::create ( MemoryManager &  theManager)
inlinestatic

Definition at line 44 of file XalanNumberFormat.hpp.

References xalanc::XalanConstruct().

◆ format() [1/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( double  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
Returns
string representation of number

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ format() [2/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( XMLInt16  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
Returns
string representation of number

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ format() [3/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( XMLInt32  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
Returns
string representation of number

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ format() [4/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( XMLInt64  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ format() [5/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( XMLUInt16  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ format() [6/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( XMLUInt32  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ format() [7/7]

virtual XalanDOMString& xalanc::XalanNumberFormat::format ( XMLUInt64  theValue,
XalanDOMString theResult 
)
virtual

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ getMemoryManager()

MemoryManager& xalanc::XalanNumberFormat::getMemoryManager ( )
inline

Definition at line 58 of file XalanNumberFormat.hpp.

◆ isGroupingUsed()

virtual bool xalanc::XalanNumberFormat::isGroupingUsed ( ) const
virtual

Whether groupings are used for numbers, for example, "234,678".

Returns
true if grouping used

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ setGroupingSeparator()

virtual void xalanc::XalanNumberFormat::setGroupingSeparator ( const XalanDOMString s)
virtual

Change the separator string used for groupings, for example, "234,678" uses the separator ",".

Parameters
sgrouping separator string

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ setGroupingSize()

virtual void xalanc::XalanNumberFormat::setGroupingSize ( unsigned long  size)
virtual

Change the size of groupings, for example, "234,678" uses a size of "3".

Parameters
sizethe grouping size

Reimplemented in xalanc::ICUXalanNumberFormatProxy.

◆ setGroupingUsed()

virtual void xalanc::XalanNumberFormat::setGroupingUsed ( bool  bUsed)
virtual

Change whether groupings are used for numbers, for example, "234,678".

Parameters
bUsedtrue to use grouping

Reimplemented in xalanc::ICUXalanNumberFormatProxy.


The documentation for this class was generated from the following file: