Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Filezilla/src/include/     Datei vom 7.0.2015 mit Größe 1 kB image not shown  

Quelle  sizeformatting_base.h   Sprache: C

 

#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__

Messung
CHZG
839810093

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*Bot Zugriff