Logo ROOT   6.12/07
Reference Guide
Namespaces | Enumerations | Functions
StringConv.hxx File Reference
#include "RStringView.h"
#include "Rtypes.h"
#include "RConfigure.h"
#include <cmath>
Include dependency graph for StringConv.hxx:
This graph shows which files directly or indirectly include this file:

Namespaces

 ROOT
 Namespace for new ROOT classes and functions.
 

Enumerations

enum  ROOT::EFromHumanReadableSize { ROOT::EFromHumanReadableSize::kSuccess, ROOT::EFromHumanReadableSize::kParseFail, ROOT::EFromHumanReadableSize::kOverflow }
 

Functions

template<typename T >
EFromHumanReadableSize ROOT::FromHumanReadableSize (std::string_view str, T &value)
 Convert strings like the following into byte counts 5MB, 5 MB, 5M, 3.7GB, 123b, 456kB, 3.7GiB, 5MiB with some amount of forgiveness baked into the parsing. More...
 
template<typename T >
EFromHumanReadableSize ROOT::FromHumanReadableSize (ROOT::Internal::TStringView str, T &value)
 
template<typename value_type >
void ROOT::ToHumanReadableSize (value_type bytes, Bool_t si, Double_t *coeff, const char **units)
 Return the size expressed in 'human readable' format. More...