bpp-core3  3.0.0
NestedStringTokenizer.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_TEXT_NESTEDSTRINGTOKENIZER_H
6 #define BPP_TEXT_NESTEDSTRINGTOKENIZER_H
7 
8 
9 // From the STL:
10 #include <deque>
11 #include <string>
12 
13 #include "StringTokenizer.h"
14 #include "../Exceptions.h"
15 
16 namespace bpp
17 {
25  public StringTokenizer
26 {
27 public:
37  NestedStringTokenizer(const std::string& s, const std::string& open, const std::string& end, const std::string& delimiters = " \t\n\f\r", bool solid = false);
38 
40 
41 public:
48  const std::string& nextToken();
49 
50 
56  std::string unparseRemainingTokens() const { return ""; }
57 };
58 } // end of namespace bpp;
59 #endif // BPP_TEXT_NESTEDSTRINGTOKENIZER_H
std::string unparseRemainingTokens() const
This function is not supported for nested tokenizers.
A tokenizer for strings.
const std::string & nextToken()
Get the next available token. If no token is availbale, throw an Exception.
NestedStringTokenizer(const std::string &s, const std::string &open, const std::string &end, const std::string &delimiters=" \\", bool solid=false)
Build a new StringTokenizer from a string.
An improved tokenizer for strings.