Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
StringConv.hxx File Reference
#include "ROOT/RStringView.hxx"
#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

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 

Enumerations

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

Functions

template<typename T >
EFromHumanReadableSize ROOT::FromHumanReadableSize (ROOT::Internal::TStringView str, T &value)
 
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.
 
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.