update formatting style to be more consistent
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
TokenizerException::TokenizerException(const std::string & msg, const std::string & token){
|
||||
TokenizerException::TokenizerException(const std::string &msg, const std::string &token){
|
||||
if(token.empty()) {
|
||||
message = msg;
|
||||
} else {
|
||||
@ -47,13 +47,13 @@ TokenizerException::TokenizerException(const std::string & msg, const std::strin
|
||||
* \param str string to be processed
|
||||
* \param separators string with separator characters (default: " \t\r\n\f") */
|
||||
|
||||
Tokenizer::Tokenizer(const std::string & str, const std::string & separators) :
|
||||
Tokenizer::Tokenizer(const std::string &str, const std::string &separators) :
|
||||
text(str), separators(separators), start(0), ntokens(std::string::npos)
|
||||
{
|
||||
reset();
|
||||
}
|
||||
|
||||
Tokenizer::Tokenizer(const Tokenizer & rhs) :
|
||||
Tokenizer::Tokenizer(const Tokenizer &rhs) :
|
||||
text(rhs.text), separators(rhs.separators), ntokens(rhs.ntokens)
|
||||
{
|
||||
reset();
|
||||
@ -75,7 +75,7 @@ void Tokenizer::reset() {
|
||||
*
|
||||
* \param str string to be searched for
|
||||
* \return true if string was found, false if not */
|
||||
bool Tokenizer::contains(const std::string & str) const {
|
||||
bool Tokenizer::contains(const std::string &str) const {
|
||||
return text.find(str) != std::string::npos;
|
||||
}
|
||||
|
||||
@ -169,13 +169,13 @@ std::vector<std::string> Tokenizer::as_vector() {
|
||||
*
|
||||
* \see Tokenizer InvalidIntegerException InvalidFloatException */
|
||||
|
||||
ValueTokenizer::ValueTokenizer(const std::string & str, const std::string & separators) : tokens(str, separators) {
|
||||
ValueTokenizer::ValueTokenizer(const std::string &str, const std::string &separators) : tokens(str, separators) {
|
||||
}
|
||||
|
||||
ValueTokenizer::ValueTokenizer(const ValueTokenizer & rhs) : tokens(rhs.tokens) {
|
||||
ValueTokenizer::ValueTokenizer(const ValueTokenizer &rhs) : tokens(rhs.tokens) {
|
||||
}
|
||||
|
||||
ValueTokenizer::ValueTokenizer(ValueTokenizer && rhs) : tokens(std::move(rhs.tokens)) {
|
||||
ValueTokenizer::ValueTokenizer(ValueTokenizer &&rhs) : tokens(std::move(rhs.tokens)) {
|
||||
}
|
||||
|
||||
/*! Indicate whether more tokens are available
|
||||
@ -189,7 +189,7 @@ bool ValueTokenizer::has_next() const {
|
||||
*
|
||||
* \param value string with value to be searched for
|
||||
* \return true if string was found, false if not */
|
||||
bool ValueTokenizer::contains(const std::string & value) const {
|
||||
bool ValueTokenizer::contains(const std::string &value) const {
|
||||
return tokens.contains(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user