tlx
parse_si_iec_units.cpp File Reference
#include <tlx/string/parse_si_iec_units.hpp>
#include <cstdlib>

Go to the source code of this file.

Namespaces

 tlx
 

Functions

bool parse_si_iec_units (const char *str, uint64_t *out_size, char default_unit=0)
 Parse a string like "343KB" or "44 GiB" into the corresponding size in bytes. More...
 
bool parse_si_iec_units (const std::string &str, uint64_t *out_size, char default_unit=0)
 Parse a string like "343KB" or "44 GiB" into the corresponding size in bytes. More...