Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
StringConv.hxx File Reference
#include <string_view>
#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
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 

Enumerations

enum class  ROOT::EFromHumanReadableSize { ROOT::kSuccess , ROOT::kParseFail , ROOT::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.
 
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.