#ifndef __SIZEFORMATTING_BASE_H__
#define __SIZEFORMATTING_BASE_H__
class COptionsBase;
class CSizeFormatBase
{
public:
enum _format
{
bytes,
iec,
si1024,
si1000,
formats_count
};
// We stop at Exa. If someone has files bigger than that, he can afford to
// make a donation to have this changed ;)
enum _unit
{
byte,
kilo,
mega,
giga,
tera,
peta,
exa
};
static wxString FormatNumber(COptionsBase* pOptions, const wxLongLong& size, bool* thousands_separator = 0);
static wxString GetUnitWithBase(COptionsBase* pOptions, _unit unit, int base);
static wxString GetUnit(COptionsBase* pOptions, _unit unit, _format = formats_count);
static wxString FormatUnit(COptionsBase* pOptions, const wxLongLong& size, _unit unit, int base = 1024);
static wxString Format(COptionsBase* pOptions, wxLongLong size, bool add_bytes_suffix, _format format, bool thousands_separator, int num_decimal_places);
static wxString Format(COptionsBase* pOptions, const wxLongLong& size, bool add_bytes_suffix = false);
static const wxString& GetThousandsSeparator();
static const wxString& GetRadixSeparator();
};
#endif //__SIZEFORMATTING_BASE_H__
[Verzeichnis aufwärts0.299unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-11-24]