reglibcpp  1.7.0
(Naïve) C++ implementation of models for regular languages
Classes | Namespaces | Typedefs | Functions
dfa.cpp File Reference

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 "utils.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...
 

Detailed Description

Contains the reg::dfa member definitions.

Definition in file dfa.cpp.