23 std::vector<bool> chars;
26 while (chars.size() <= (
size_t) child.fPayload.fChar) {
27 chars.push_back(
false);
29 chars[child.fPayload.fChar] =
true;
32 while (chars.size() <= (
size_t) child.fChildren[1].fPayload.fChar) {
33 chars.push_back(
false);
35 for (
char c = child.fChildren[0].fPayload.fChar;
36 c <= child.fChildren[1].fPayload.fChar;
54 std::vector<int> states =
fChildren[0].createStates(nfa, accept);
55 result.insert(
result.end(), states.begin(), states.end());
56 states =
fChildren[1].createStates(nfa, accept);
57 result.insert(
result.end(), states.begin(), states.end());
61 std::vector<int>
next = accept;
62 std::vector<int> placeholder;
71 result.insert(
result.end(), accept.begin(), accept.end());
76 std::vector<int>
next = accept;
77 std::vector<int> placeholder;
81 result.insert(
result.end(), accept.begin(), accept.end());
100 result += c.description();
static float next(float f)
static bool right(const SkPoint &p0, const SkPoint &p1)
static SkString to_string(int n)
std::vector< NFAState > fStates
union RegexNode::Payload fPayload
std::string description() const
std::vector< int > createStates(NFA *nfa, const std::vector< int > &accept) const
std::vector< RegexNode > fChildren