summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits
diff options
context:
space:
mode:
authortimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-03 10:04:32 +0000
committertimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-03 10:04:32 +0000
commit8321122bd2e982329ced55ea8af33c8d5a161086 (patch)
tree6f470a261576c668797c45e7015cd92de4e983d8 /libstdc++-v3/include/bits
parent194eb161dd0f4e043686837da8844a3cd81c476b (diff)
downloadppe42-gcc-8321122bd2e982329ced55ea8af33c8d5a161086.tar.gz
ppe42-gcc-8321122bd2e982329ced55ea8af33c8d5a161086.zip
2013-12-03 Tim Shen <timshen91@gmail.com>
* 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
Diffstat (limited to 'libstdc++-v3/include/bits')
-rw-r--r--libstdc++-v3/include/bits/regex_compiler.h4
-rw-r--r--libstdc++-v3/include/bits/regex_executor.tcc1
2 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/regex_compiler.h b/libstdc++-v3/include/bits/regex_compiler.h
index b9f81272bb9..5759d48c5e5 100644
--- a/libstdc++-v3/include/bits/regex_compiler.h
+++ b/libstdc++-v3/include/bits/regex_compiler.h
@@ -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
{
diff --git a/libstdc++-v3/include/bits/regex_executor.tcc b/libstdc++-v3/include/bits/regex_executor.tcc
index 22fd67cfa3b..150adb4f2df 100644
--- a/libstdc++-v3/include/bits/regex_executor.tcc
+++ b/libstdc++-v3/include/bits/regex_executor.tcc
@@ -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>
OpenPOWER on IntegriCloud