gem5  v20.1.0.0
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 string &s, string &lhs, string &rhs, char c)
 
bool split_last (const string &s, string &lhs, string &rhs, char c)
 
void tokenize (vector< string > &v, const string &s, char token, bool ignore)
 

Function Documentation

◆ split_first()

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

Definition at line 37 of file str.cc.

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

Referenced by TEST().

◆ split_last()

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

Definition at line 52 of file str.cc.

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

Referenced by TEST().

◆ tokenize()

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

Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17