Returns string representation of anchor kind.
| 146 | |
| 147 | // Returns string representation of anchor kind. |
| 148 | static std::string FormatAnchor(Prog::Anchor anchor) { |
| 149 | switch (anchor) { |
| 150 | case Prog::kAnchored: |
| 151 | return "anchored"; |
| 152 | case Prog::kUnanchored: |
| 153 | return "unanchored"; |
| 154 | } |
| 155 | return "???"; |
| 156 | } |
| 157 | |
| 158 | struct ParseMode { |
| 159 | Regexp::ParseFlags parse_flags; |