Returns string representation of match kind.
| 131 | |
| 132 | // Returns string representation of match kind. |
| 133 | static std::string FormatKind(Prog::MatchKind kind) { |
| 134 | switch (kind) { |
| 135 | case Prog::kFullMatch: |
| 136 | return "full match"; |
| 137 | case Prog::kLongestMatch: |
| 138 | return "longest match"; |
| 139 | case Prog::kFirstMatch: |
| 140 | return "first match"; |
| 141 | case Prog::kManyMatch: |
| 142 | return "many match"; |
| 143 | } |
| 144 | return "???"; |
| 145 | } |
| 146 | |
| 147 | // Returns string representation of anchor kind. |
| 148 | static std::string FormatAnchor(Prog::Anchor anchor) { |
no outgoing calls
no test coverage detected