2013-12-03 Tim Shen <timshen91@gmail.com>
authortimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Dec 2013 10:04:32 +0000 (10:04 +0000)
committertimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Dec 2013 10:04:32 +0000 (10:04 +0000)
* regex_compiler.h: Add todo comment.
* regex_executor.tcc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205624 138bc75d-0d04-0410-961f-82ee72b054a4

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

index aea1117..4c564e8 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 b9f8127..5759d48 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 22fd67c..150adb4 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>