diff OrthancFramework/Sources/HttpServer/StringMatcher.cpp @ 4652:0ad5736c8d62

use plain C strings in MultipartStreamReader instead of std::string to allow further optimizations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 May 2021 11:50:14 +0200
parents d9473bd5ed43
children 7053502fbf97
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/StringMatcher.cpp	Wed May 05 09:47:39 2021 +0200
+++ b/OrthancFramework/Sources/HttpServer/StringMatcher.cpp	Wed May 05 11:50:14 2021 +0200
@@ -31,7 +31,7 @@
 
 namespace Orthanc
 {
-  class StringMatcher::Search
+  class StringMatcher::Search : public boost::noncopyable
   {
   private:
     typedef boost::algorithm::boyer_moore<Iterator>  Algorithm;
@@ -70,7 +70,7 @@
     search_.reset(new Search(pattern_));
   }
 
-  const std::string &StringMatcher::GetPattern() const
+  const std::string& StringMatcher::GetPattern() const
   {
     return pattern_;
   }
@@ -101,7 +101,7 @@
     return valid_;
   }
 
-  bool StringMatcher::Apply(const std::string &corpus)
+  bool StringMatcher::Apply(const std::string& corpus)
   {
     return Apply(corpus.begin(), corpus.end());
   }