xmscore  1.0
xms::StCommaNumpunct Class Reference

Used to format numbers with comma separators. More...

Inheritance diagram for xms::StCommaNumpunct:

Protected Member Functions

virtual char do_thousands_sep () const
 Returns the character used to separate numbers by thousands. More...
 
virtual std::string do_grouping () const
 Returns the string defining how many numbers between separators. More...
 

Detailed Description

Used to format numbers with comma separators.

See also
http://stackoverflow.com/questions/7276826

Definition at line 137 of file StringUtil.h.

Member Function Documentation

◆ do_grouping()

std::string xms::StCommaNumpunct::do_grouping ( ) const
protectedvirtual

Returns the string defining how many numbers between separators.

Returns
The grouping string.

Definition at line 1196 of file StringUtil.cpp.

References xms::stPrecision(), xms::STRstd(), and TS_ASSERT_EQUALS_VEC.

◆ do_thousands_sep()

char xms::StCommaNumpunct::do_thousands_sep ( ) const
protectedvirtual

Returns the character used to separate numbers by thousands.

Returns
The character.

Definition at line 1189 of file StringUtil.cpp.


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