Unverified Commit f3ed1dea authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

minor tweaks

parent 8d45b724
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -35,7 +35,9 @@ TokenizerException::TokenizerException(const std::string & msg, const std::strin
 * This tokenizer will break down a string into sub-strings (i.e words)
 * separated by the given separator characters.
 *
 * \sa LAMMPS_NS::ValueTokenizer TokenizerException */
 * \exception TokenizerException
 *
 * \sa ValueTokenizer TokenizerException */

Tokenizer::Tokenizer(const std::string & str, const std::string & separators) :
    text(str), separators(separators), start(0), ntokens(std::string::npos)
@@ -147,7 +149,7 @@ std::vector<std::string> Tokenizer::as_vector() {

/*! Class for reading text with numbers
 *
 * \sa LAMMPS_NS::Tokenizer InvalidIntegerException InvalidFloatException */
 * \sa Tokenizer InvalidIntegerException InvalidFloatException */

ValueTokenizer::ValueTokenizer(const std::string & str, const std::string & separators) : tokens(str, separators) {
}
+1 −1
Original line number Diff line number Diff line
@@ -49,10 +49,10 @@ public:
    std::vector<std::string> as_vector();
};

/** \exception TokenizerException. Contains an error message string. */
class TokenizerException : public std::exception {
  std::string message;
public:
  /** Thrown during retrieving or skipping tokens */
  TokenizerException(const std::string & msg, const std::string & token);

  ~TokenizerException() throw() {