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

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

First release to xenial

File size: 1.1 KB
Line 
1#include <filezilla.h>
2#include "sizeformatting.h"
3#include "Options.h"
4
5wxString CSizeFormat::Format(int64_t size, bool add_bytes_suffix, enum CSizeFormat::_format format, bool thousands_separator, int num_decimal_places)
6{
7        return CSizeFormatBase::Format(COptions::Get(), size, add_bytes_suffix, format, thousands_separator, num_decimal_places);
8}
9
10wxString CSizeFormat::Format(int64_t size, bool add_bytes_suffix /*=false*/)
11{
12        return CSizeFormatBase::Format(COptions::Get(), size, add_bytes_suffix);
13}
14
15wxString CSizeFormat::FormatUnit(int64_t size, CSizeFormat::_unit unit, int base /*=1024*/)
16{
17        return CSizeFormatBase::FormatUnit(COptions::Get(), size, unit, base);
18}
19
20wxString CSizeFormat::GetUnitWithBase(_unit unit, int base)
21{
22        return CSizeFormatBase::GetUnitWithBase(COptions::Get(), unit, base);
23}
24
25wxString CSizeFormat::GetUnit(_unit unit, CSizeFormat::_format format /*=formats_count*/)
26{
27        return CSizeFormatBase::GetUnit(COptions::Get(), unit, format);
28}
29
30wxString CSizeFormat::FormatNumber(int64_t size, bool* thousands_separator /*=0*/)
31{
32        return CSizeFormatBase::FormatNumber(COptions::Get(), size, thousands_separator);
33}
Note: See TracBrowser for help on using the repository browser.