| 47 |
#include <assert.h> |
#include <assert.h> |
| 48 |
#include <string> |
#include <string> |
| 49 |
#include <vector> |
#include <vector> |
| 50 |
|
|
| 51 |
#include <pcrecpp.h> |
#include <pcrecpp.h> |
| 52 |
#include <pcre_stringpiece.h> |
#include <pcre_stringpiece.h> |
| 53 |
|
|
| 54 |
namespace pcrecpp { |
namespace pcrecpp { |
| 55 |
|
|
| 56 |
class Scanner { |
class PCRECPP_EXP_DEFN Scanner { |
| 57 |
public: |
public: |
| 58 |
Scanner(); |
Scanner(); |
| 59 |
explicit Scanner(const std::string& input); |
explicit Scanner(const std::string& input); |
| 80 |
// If it returns true, it skips over the matched input and any |
// If it returns true, it skips over the matched input and any |
| 81 |
// following input that matches the "skip" regular expression. |
// following input that matches the "skip" regular expression. |
| 82 |
bool Consume(const RE& re, |
bool Consume(const RE& re, |
| 83 |
const Arg& arg0 = no_arg, |
const Arg& arg0 = RE::no_arg, |
| 84 |
const Arg& arg1 = no_arg, |
const Arg& arg1 = RE::no_arg, |
| 85 |
const Arg& arg2 = no_arg |
const Arg& arg2 = RE::no_arg |
| 86 |
// TODO: Allow more arguments? |
// TODO: Allow more arguments? |
| 87 |
); |
); |
| 88 |
|
|