git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63886
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxPATH_MAX // Not a valid value for specifying path format
};
wxPATH_MAX // Not a valid value for specifying path format
};
-// different convention that may be used with GetHumanReadableSize()
+// different conventions that may be used with GetHumanReadableSize()
- wxSIZE_CONV_TRADIONAL, // 1024 bytes = 1 KB
- wxSIZE_CONV_IEC, // 1024 bytes = 1 KiB
- wxSIZE_CONV_SI // 1000 bytes = 1 KB
+ wxSIZE_CONV_TRADITIONAL, // 1024 bytes = 1 KB
+ wxSIZE_CONV_IEC, // 1024 bytes = 1 KiB
+ wxSIZE_CONV_SI // 1000 bytes = 1 KB
// the kind of normalization to do with the file name: these values can be
// or'd together to perform several operations at once
enum wxPathNormalize
// the kind of normalization to do with the file name: these values can be
// or'd together to perform several operations at once
enum wxPathNormalize
wxString
GetHumanReadableSize(const wxString& nullsize = _("Not available"),
int precision = 1,
wxString
GetHumanReadableSize(const wxString& nullsize = _("Not available"),
int precision = 1,
- wxSizeConvention conv = wxSIZE_CONV_TRADIONAL) const;
+ wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
static wxString
GetHumanReadableSize(const wxULongLong& sz,
const wxString& nullsize = _("Not available"),
int precision = 1,
static wxString
GetHumanReadableSize(const wxULongLong& sz,
const wxString& nullsize = _("Not available"),
int precision = 1,
- wxSizeConvention conv = wxSIZE_CONV_TRADIONAL);
+ wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
enum wxSizeConvention
{
/// 1000 bytes = 1KiB.
enum wxSizeConvention
{
/// 1000 bytes = 1KiB.
+ wxSIZE_CONV_TRADITIONAL
wxString
GetHumanReadableSize(const wxString& failmsg = _("Not available"),
int precision = 1,
wxString
GetHumanReadableSize(const wxString& failmsg = _("Not available"),
int precision = 1,
- wxSizeConvention conv = wxSIZE_CONV_TRADIONAL) const;
+ wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
static wxString
GetHumanReadableSize(const wxULongLong& bytes,
const wxString& nullsize = _("Not available"),
int precision = 1,
static wxString
GetHumanReadableSize(const wxULongLong& bytes,
const wxString& nullsize = _("Not available"),
int precision = 1,
- wxSizeConvention conv = wxSIZE_CONV_REAL_SI);
+ wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
biInfix = "i";
// fall through
biInfix = "i";
// fall through
- case wxSIZE_CONV_TRADIONAL:
+ case wxSIZE_CONV_TRADITIONAL:
multiplier = 1024.;
break;
multiplier = 1024.;
break;