|
Boost-Commit : |
From: eric_at_[hidden]
Date: 2008-06-12 14:05:03
Author: eric_niebler
Date: 2008-06-12 14:05:02 EDT (Thu, 12 Jun 2008)
New Revision: 46360
URL: http://svn.boost.org/trac/boost/changeset/46360
Log:
formatters can return null-terminated strings in addition to ranges
Text files modified:
trunk/boost/xpressive/match_results.hpp | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
Modified: trunk/boost/xpressive/match_results.hpp
==============================================================================
--- trunk/boost/xpressive/match_results.hpp (original)
+++ trunk/boost/xpressive/match_results.hpp 2008-06-12 14:05:02 EDT (Thu, 12 Jun 2008)
@@ -826,6 +826,20 @@
/// INTERNAL ONLY
///
+ template<typename OutputIterator, typename Char>
+ OutputIterator format2_(OutputIterator out, Char const *const &result) const
+ {
+ Char const *tmp = result;
+ BOOST_ASSERT(0 != tmp);
+ for(; 0 != *tmp; ++tmp, ++out)
+ {
+ *out = *tmp;
+ }
+ return out;
+ }
+
+ /// INTERNAL ONLY
+ ///
template<typename OutputIterator, typename ForwardRange>
OutputIterator format_
(
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk