source: filezilla/trunk/fuentes/src/interface/sizeformatting.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 657 bytes
Line 
1#ifndef __SIZEFORMATTING_H__
2#define __SIZEFORMATTING_H__
3
4#include <sizeformatting_base.h>
5
6class CSizeFormat : public CSizeFormatBase
7{
8public:
9        static wxString FormatNumber(int64_t size, bool* thousands_separator = 0);
10
11        static wxString GetUnitWithBase(_unit unit, int base);
12        static wxString GetUnit(_unit unit, enum _format = formats_count);
13        static wxString FormatUnit(int64_t size, _unit unit, int base = 1024);
14
15        static wxString Format(int64_t size, bool add_bytes_suffix, enum _format format, bool thousands_separator, int num_decimal_places);
16        static wxString Format(int64_t size, bool add_bytes_suffix = false);
17};
18
19#endif //__SIZEFORMATTING_H__
Note: See TracBrowser for help on using the repository browser.