|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75587 - trunk/boost/property_tree
From: sebastian.redl_at_[hidden]
Date: 2011-11-21 05:56:45
Author: cornedbee
Date: 2011-11-21 05:56:45 EST (Mon, 21 Nov 2011)
New Revision: 75587
URL: http://svn.boost.org/trac/boost/changeset/75587
Log:
Give string_path an accessor for the separator.
Text files modified:
trunk/boost/property_tree/string_path.hpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/boost/property_tree/string_path.hpp
==============================================================================
--- trunk/boost/property_tree/string_path.hpp (original)
+++ trunk/boost/property_tree/string_path.hpp 2011-11-21 05:56:45 EST (Mon, 21 Nov 2011)
@@ -122,6 +122,9 @@
/// Test if the path contains a single element, i.e. no separators.
bool single() const;
+ /// Get the separator used by this path.
+ char_type separator() const { return m_separator; }
+
std::string dump() const {
return detail::dump_sequence(m_value);
}
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