String tokenizer.
More...
#include <defs.hpp>
|
| Tokenizer (const std::string &s, const char *separator) |
|
const std::string | next () |
|
bool | next (std::string &) |
|
String tokenizer.
Definition at line 58 of file defs.hpp.
◆ Tokenizer()
dunedaq::oks::Oks::Tokenizer::Tokenizer |
( |
const std::string & | s, |
|
|
const char * | separator ) |
Definition at line 181 of file time.cpp.
181 :
185{
186}
std::string::size_type p_idx
const char * p_delimeters
◆ next() [1/2]
const std::string dunedaq::oks::Oks::Tokenizer::next |
( |
| ) |
|
Definition at line 189 of file time.cpp.
190{
193 if(end_idx == std::string::npos) end_idx=
p_string.length();
196 return token;
197}
static std::string s_empty
◆ next() [2/2]
bool dunedaq::oks::Oks::Tokenizer::next |
( |
std::string & | token | ) |
|
Definition at line 200 of file time.cpp.
201{
202 if(
p_idx == std::string::npos) {
203 token.clear();
204 return false;
205 }
206
208 if(end_idx == std::string::npos) end_idx=
p_string.length();
211 return true;
212}
◆ p_delimeters
const char* dunedaq::oks::Oks::Tokenizer::p_delimeters |
|
private |
◆ p_idx
std::string::size_type dunedaq::oks::Oks::Tokenizer::p_idx |
|
private |
◆ p_string
std::string dunedaq::oks::Oks::Tokenizer::p_string |
|
private |
◆ s_empty
std::string dunedaq::oks::Oks::Tokenizer::s_empty |
|
staticprivate |
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/oks/include/oks/defs.hpp
- /github/workspace/dunedaq/sourcecode/oks/src/time.cpp