gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
str.cc File Reference
#include "base/str.hh"
#include <string>
#include <vector>

Go to the source code of this file.

Functions

bool split_first (const std::string &s, std::string &lhs, std::string &rhs, char c)
 
bool split_last (const std::string &s, std::string &lhs, std::string &rhs, char c)
 
void tokenize (std::vector< std::string > &v, const std::string &s, char token, bool ignore)
 

Function Documentation

◆ split_first()

bool split_first ( const std::string &  s,
std::string &  lhs,
std::string &  rhs,
char  c 
)

Definition at line 35 of file str.cc.

References ArmISA::c, ArmISA::offset, and ArmISA::s.

Referenced by TEST().

◆ split_last()

bool split_last ( const std::string &  s,
std::string &  lhs,
std::string &  rhs,
char  c 
)

Definition at line 50 of file str.cc.

References ArmISA::c, ArmISA::offset, and ArmISA::s.

Referenced by TEST().

◆ tokenize()

void tokenize ( std::vector< std::string > &  v,
const std::string &  s,
char  token,
bool  ignore 
)

Generated on Tue Mar 23 2021 19:41:31 for gem5 by doxygen 1.8.17