rocprofiler-sdk/cxx/details/delimit.hpp File Reference

rocprofiler-sdk/cxx/details/delimit.hpp File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/cxx/details/delimit.hpp File Reference
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
delimit.hpp File Reference
#include <rocprofiler-sdk/cxx/details/mpl.hpp>
#include <functional>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
+ Include dependency graph for delimit.hpp:

Go to the source code of this file.

Namespaces

namespace  rocprofiler
 
namespace  rocprofiler::sdk
 
namespace  rocprofiler::sdk::parse
 

Functions

template<typename Tp >
Tp rocprofiler::sdk::parse::from_string (const std::string &str)
 
template<typename Tp >
Tp rocprofiler::sdk::parse::from_string (const char *cstr)
 
template<typename ContainerT = std::vector<std::string>, typename ValueT = typename ContainerT::value_type, typename PredicateT = std::function<ValueT(ValueT&&)>>
ContainerT rocprofiler::sdk::parse::tokenize (std::string_view line, std::string_view delimiters="\"',;: ", PredicateT &&predicate=[](ValueT &&s) -> ValueT { return s;})
 tokenize a string into a set
 
template<typename PredicateT = std::function<std::string(const std::string&)>>
std::string rocprofiler::sdk::parse::str_transform (std::string_view input, std::string_view _begin, std::string_view _end, PredicateT &&predicate)
 apply a string transformation to substring in between a common delimiter.