rocprofiler-sdk/cxx/details/tokenize.hpp File Reference#
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
|
tokenize.hpp File Reference
#include <rocprofiler-sdk/cxx/details/mpl.hpp>
#include <functional>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
Include dependency graph for tokenize.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 ContainerT = std::vector<std::string>, typename DelimT = std::string_view, typename ValueT = typename ContainerT::value_type, typename PredicateT = ValueT (*)(DelimT&&)> | |
ContainerT | rocprofiler::sdk::parse::tokenize (std::string_view line, const std::vector< DelimT > &delimiters, PredicateT &&predicate=[](DelimT &&s) -> ValueT { return ValueT{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. | |
Generated by 1.9.8