]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
regex_compiler.h: Add todo comment.
authorTim Shen <timshen91@gmail.com>
Tue, 3 Dec 2013 10:04:32 +0000 (10:04 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Tue, 3 Dec 2013 10:04:32 +0000 (10:04 +0000)
2013-12-03  Tim Shen  <timshen91@gmail.com>

* regex_compiler.h: Add todo comment.
* regex_executor.tcc: Likewise.

From-SVN: r205624

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_compiler.h
libstdc++-v3/include/bits/regex_executor.tcc

index aea11172db9c75b68651a66be0672ac77110d7a9..4c564e898bb86993e1bd905603f36d7b504ad79f 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-03  Tim Shen  <timshen91@gmail.com>
+
+       * regex_compiler.h: Add todo comment.
+       * regex_executor.tcc: Likewise.
+
 2013-11-29  Matthias Klose  <doko@ubuntu.com>
 
        * testsuite/experimental/string_view/requirements/exception,
index b9f81272bb9d40f9a18ce78ce75286259731345d..5759d48c5e5a58c544bd06d50cb03380ba37f27e 100644 (file)
@@ -237,6 +237,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     };
 
   /// Matches a character range (bracket expression)
+  // TODO: Convert used _M_flags fields to template parameters, including
+  // collate and icase. Avoid using std::set, could use flat_set
+  // (sorted vector and binary search) instead; use an fixed sized (256)
+  // vector<bool> for char specialization if necessary.
   template<typename _TraitsT>
     struct _BracketMatcher
     {
index 22fd67cfa3b4d9f20e063f7bcc28da0a7601ee23..150adb4f2df5a5524d862d02099753e3f75ea14a 100644 (file)
@@ -162,6 +162,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       return false;
     }
 
+  // TODO: Use a function vector to dispatch, instead of using switch-case.
   template<typename _BiIter, typename _Alloc, typename _TraitsT,
     bool __dfs_mode>
   template<bool __match_mode>