diff OrthancFramework/Sources/HttpServer/StringMatcher.cpp @ 4300:b30a8de92ad9

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 19:33:18 +0100
parents 2d5209153b32
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/StringMatcher.cpp	Thu Nov 05 18:24:50 2020 +0100
+++ b/OrthancFramework/Sources/HttpServer/StringMatcher.cpp	Thu Nov 05 19:33:18 2020 +0100
@@ -69,6 +69,16 @@
     // otherwise lifetime is bad! (*)
     search_.reset(new Search(pattern_));
   }
+
+  const std::string &StringMatcher::GetPattern() const
+  {
+    return pattern_;
+  }
+
+  bool StringMatcher::IsValid() const
+  {
+    return valid_;
+  }
   
 
   bool StringMatcher::Apply(Iterator start,
@@ -91,6 +101,11 @@
     return valid_;
   }
 
+  bool StringMatcher::Apply(const std::string &corpus)
+  {
+    return Apply(corpus.begin(), corpus.end());
+  }
+
 
   StringMatcher::Iterator StringMatcher::GetMatchBegin() const
   {