~ubuntu-branches/debian/sid/gource/sid

« back to all changes in this revision

Viewing changes to src/core/regex.h

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2014-04-15 16:30:17 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20140415163017-ucdr2josj1spzrga
Tags: 0.41-1
* New upstream release
* Made VCS URIs canonical
* Changed watch file to look at Github for releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#define REGEX_MAX_MATCHES 100
32
32
 
33
33
#include "pcre.h"
 
34
 
34
35
#include <string>
35
36
#include <vector>
 
37
#include <exception>
36
38
 
37
39
class RegexCompilationException : public std::exception {
38
40
protected:
60
62
 
61
63
    bool match(const std::string& str, std::vector<std::string>* results = 0);
62
64
    bool matchAll(const std::string& str, std::vector<std::string>* results = 0);
63
 
    
 
65
 
64
66
    bool replace(std::string& str, const std::string& replacement_str);
65
67
    bool replaceAll(std::string& str, const std::string& replacement_str);
66
 
    
 
68
 
67
69
    bool isValid();
68
70
 
69
71
};