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

#include <xalanc/ICUBridge/ICUXalanNumberFormatProxy.hpp>

Inheritance diagram for xalanc::ICUXalanNumberFormatProxy:
[legend]
Collaboration diagram for xalanc::ICUXalanNumberFormatProxy:
[legend]

Public Member Functions

 ICUXalanNumberFormatProxy (MemoryManager &theManager)
 
virtual ~ICUXalanNumberFormatProxy ()
 
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...
 
- Public Member Functions inherited from xalanc::XalanNumberFormat
 XalanNumberFormat (MemoryManager &theManager)
 
virtual ~XalanNumberFormat ()
 
MemoryManager & getMemoryManager ()
 

Additional Inherited Members

- Static Public Member Functions inherited from xalanc::XalanNumberFormat
static XalanNumberFormatcreate (MemoryManager &theManager)
 
- Protected Member Functions inherited from xalanc::XalanNumberFormat
void applyGrouping (const XalanDOMString &value, XalanDOMString &result)
 

Detailed Description

Definition at line 42 of file ICUXalanNumberFormatProxy.hpp.

Constructor & Destructor Documentation

◆ ICUXalanNumberFormatProxy()

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

◆ ~ICUXalanNumberFormatProxy()

virtual xalanc::ICUXalanNumberFormatProxy::~ICUXalanNumberFormatProxy ( )
virtual

Member Function Documentation

◆ format() [1/7]

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

Format a number into a string.

Parameters
theValuenumber to format
Returns
string representation of number

Reimplemented from xalanc::XalanNumberFormat.

◆ format() [2/7]

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

Format a number into a string.

Parameters
theValuenumber to format
Returns
string representation of number

Reimplemented from xalanc::XalanNumberFormat.

◆ format() [3/7]

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

Format a number into a string.

Parameters
theValuenumber to format
Returns
string representation of number

Reimplemented from xalanc::XalanNumberFormat.

◆ format() [4/7]

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

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented from xalanc::XalanNumberFormat.

◆ format() [5/7]

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

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented from xalanc::XalanNumberFormat.

◆ format() [6/7]

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

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented from xalanc::XalanNumberFormat.

◆ format() [7/7]

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

Format a number into a string.

Parameters
theValuenumber to format
theResultthe string result

Reimplemented from xalanc::XalanNumberFormat.

◆ isGroupingUsed()

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

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

Returns
true if grouping used

Reimplemented from xalanc::XalanNumberFormat.

◆ setGroupingSeparator()

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

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

Parameters
sgrouping separator string

Reimplemented from xalanc::XalanNumberFormat.

◆ setGroupingSize()

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

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

Parameters
sizethe grouping size

Reimplemented from xalanc::XalanNumberFormat.

◆ setGroupingUsed()

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

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

Parameters
bUsedtrue to use grouping

Reimplemented from xalanc::XalanNumberFormat.


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