46 NFAState(
bool inverse, std::vector<bool> accepts, std::vector<int>
next)
50 for (
bool b : accepts) {
57 fData.push_back(token);
70 if ((
size_t) c <
fData.size()) {
83 std::string description()
const {
88 std::string
result =
"Char('" + std::string(1,
fChar) +
"'";
97 std::string
result =
"Dot(";
98 const char* separator =
"";
108 std::string
result =
"Remapped(";
109 const char* separator =
"";
110 for (
int v :
fData) {
119 std::string
result = std::string(
"Table(") + (
fInverse ?
"true" :
"false") +
", [";
120 const char* separator =
"";
121 for (
int v :
fData) {
123 result += v ?
"true" :
"false";
127 for (
int n :
fNext) {
static float next(float f)
static SkString to_string(int n)
NFAState(Kind kind, std::vector< int > next)
NFAState(std::vector< int > states)
NFAState(bool inverse, std::vector< bool > accepts, std::vector< int > next)
NFAState(char c, std::vector< int > next)
bool accept(char c) const