|
reglibcpp
1.5.0
(Naïve) C++ implementation of models for regular languages
|
Contains the reg::dfa member definitions. More...
#include "dfa.h"#include <unordered_set>#include <unordered_map>#include <forward_list>#include <algorithm>#include <cstdint>#include "nfa.h"#include "expression.h"Go to the source code of this file.
Classes | |
| struct | reg::dfa::pImpl |
| Private implementation details of DFAs. More... | |
| struct | reg::dfa::builder::pImpl |
| Private implementation details of DFA builders. More... | |
Namespaces | |
| reg | |
| Where this library lives. | |
Typedefs | |
| using | reg::Dtransitionmap = unordered_map< string, unordered_map< char32_t, string > > |
| Shorthand for the map from state name and transition symbol to target state. More... | |
Functions | |
| u32string | reg::findShortestWord (dfa const &d) |
| Searches the shortest UTF-32-encoded word accepted by a given DFA. More... | |
| string | reg::findShortestUtf8Word (dfa const &d) |
| Same as above for a UTF-8-encoded word. More... | |
| template<class T > | |
| size_t | reg::index_of (vector< T > const &vec, T const &element) |
| Basically Java's List interface's indexOf, but as a non-member function and returning the container's size upon failure. More... | |
| template size_t | reg::index_of (vector< char32_t > const &vec, char32_t const &element) |
| Explicit instantiation for use in other translation units. More... | |
| template size_t | reg::index_of (vector< string > const &vec, string const &element) |
| Explicit instantiation for use in other translation units. More... | |
Variables | |
| std::wstring_convert< std::codecvt_utf8< char32_t >, char32_t > | reg::converter |
| Converts between UTF-8-encoded and UTF-32-encoded strings. More... | |
1.8.14