Audacity 3.2.0
|
#include <numformatter.h>
Public Types | |
enum | Style { Style_None = 0x00 , Style_WithThousandsSep = 0x01 , Style_NoTrailingZeroes = 0x02 , Style_OneTrailingZero = 0x04 , Style_TwoTrailingZeroes = 0x08 , Style_ThreeTrailingZeroes = 0x10 } |
Static Public Member Functions | |
static wxString | ToString (long val, int style=Style_WithThousandsSep) |
static wxString | ToString (wxLongLong_t val, int style=Style_WithThousandsSep) |
static wxString | ToString (double val, int precision, int style=Style_WithThousandsSep) |
static bool | FromString (const wxString &s, long *val) |
static bool | FromString (const wxString &s, wxLongLong_t *val) |
static bool | FromString (const wxString &s, double *val) |
static wxChar | GetDecimalSeparator () |
static bool | GetThousandsSeparatorIfUsed (wxChar *sep) |
Static Protected Member Functions | |
static void | RemoveTrailingZeroes (wxString &s, size_t retain=0) |
Static Private Member Functions | |
static wxString | PostProcessIntString (const wxString &s, int style) |
static void | AddThousandsSeparators (wxString &s) |
static void | RemoveThousandsSeparators (wxString &s) |
Friends | |
class | FloatingPointValidatorBase |
Definition at line 27 of file numformatter.h.
Enumerator | |
---|---|
Style_None | |
Style_WithThousandsSep | |
Style_NoTrailingZeroes | |
Style_OneTrailingZero | |
Style_TwoTrailingZeroes | |
Style_ThreeTrailingZeroes |
Definition at line 31 of file numformatter.h.
|
staticprivate |
Definition at line 180 of file numformatter.cpp.
References GetDecimalSeparator(), GetThousandsSeparatorIfUsed(), Tuple::detail::npos(), and wxT().
Referenced by PostProcessIntString(), and ToString().
|
static |
Definition at line 263 of file numformatter.cpp.
References RemoveThousandsSeparators().
|
static |
Definition at line 244 of file numformatter.cpp.
References RemoveThousandsSeparators().
|
static |
Definition at line 253 of file numformatter.cpp.
References RemoveThousandsSeparators().
|
static |
Definition at line 56 of file numformatter.cpp.
References wxT().
Referenced by AddThousandsSeparators(), and RemoveTrailingZeroes().
|
static |
Definition at line 74 of file numformatter.cpp.
Referenced by AddThousandsSeparators(), and RemoveThousandsSeparators().
|
staticprivate |
Definition at line 97 of file numformatter.cpp.
References AddThousandsSeparators(), anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, Style_NoTrailingZeroes, Style_OneTrailingZero, Style_ThreeTrailingZeroes, Style_TwoTrailingZeroes, Style_WithThousandsSep, and wxT().
Referenced by ToString().
|
staticprivate |
Definition at line 235 of file numformatter.cpp.
References GetThousandsSeparatorIfUsed().
Referenced by FromString().
|
staticprotected |
Definition at line 211 of file numformatter.cpp.
References GetDecimalSeparator(), Tuple::detail::npos(), and wxT().
Referenced by ToString().
|
static |
Definition at line 131 of file numformatter.cpp.
References _, AddThousandsSeparators(), anonymous_namespace{ExportPCM.cpp}::format, RemoveTrailingZeroes(), anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, Style_NoTrailingZeroes, Style_OneTrailingZero, Style_ThreeTrailingZeroes, Style_TwoTrailingZeroes, Style_WithThousandsSep, and wxT().
|
static |
Definition at line 116 of file numformatter.cpp.
References PostProcessIntString(), anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, and wxT().
|
static |
Definition at line 123 of file numformatter.cpp.
References PostProcessIntString(), and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.
|
friend |
Definition at line 91 of file numformatter.h.