MCPcopy Create free account
hub / github.com/comaps/comaps / Iterator

Class Iterator

libs/base/uni_string_dfa.hpp:12–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11public:
12 class Iterator
13 {
14 public:
15 Iterator & Move(UniChar c);
16
17 bool Accepts() const { return !Rejects() && m_pos == m_s.size(); }
18 bool Rejects() const { return m_rejected; }
19 size_t ErrorsMade() const { return 0; }
20 size_t PrefixErrorsMade() const { return 0; }
21
22 private:
23 friend class UniStringDFA;
24
25 explicit Iterator(UniString const & s);
26
27 UniString const & m_s;
28 size_t m_pos;
29 bool m_rejected;
30 };
31
32 explicit UniStringDFA(UniString const & s) : m_s(s) {}
33 explicit UniStringDFA(std::string const & s);

Callers 1

BeginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected