Loading...
Searching...
No Matches
simplenumberformatter.h File Reference

C++ API: Simple number formatting focused on low memory and code size. More...

`#include "unicode/utypes.h"`
`#include "unicode/dcfmtsym.h"`
`#include "unicode/usimplenumberformatter.h"`
`#include "unicode/formattednumber.h"`

Go to the source code of this file.

## Data Structures

class | icu::number::SimpleNumber
| An input type for SimpleNumberFormatter. More...
class | icu::number::SimpleNumberFormatter
| A special NumberFormatter focused on smaller binary size and memory use. More...

## Namespaces

namespace | icu
| File coll.h.

## Detailed Description

C++ API: Simple number formatting focused on low memory and code size.

These functions render locale-aware number strings but without the bells and whistles found in other number formatting APIs such as those in numberformatter.h, like units and currencies.

    SimpleNumberFormatter snf = SimpleNumberFormatter::forLocale("de-CH", status);
    FormattedNumber result = snf.formatInt64(-1000007, status);
    assertEquals("", u"-1’000’007", result.toString(status));

Definition in file simplenumberformatter.h.