| 167 | // SeqOperator |
| 168 | template <typename Source> |
| 169 | inline int RegEx::MatchOpSeq(const Source& source) const { |
| 170 | int offset = 0; |
| 171 | for (const RegEx& param : m_params) { |
| 172 | int n = param.Match(source + offset); // note Match, not |
| 173 | // MatchUnchecked because we |
| 174 | // need to check validity after |
| 175 | // the offset |
| 176 | if (n == -1) |
| 177 | return -1; |
| 178 | offset += n; |
| 179 | } |
| 180 | |
| 181 | return offset; |
| 182 | } |
| 183 | } // namespace YAML |
| 184 | |
| 185 | #endif // REGEXIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66 |