From b8749d41c4ded030201744f321b4e38a9093fd98 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Mar 2010 19:27:51 +0200 Subject: Add facet support for other string-based types (parser) --- libxsde/xsde/cxx/parser/validating/uri.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libxsde/xsde/cxx/parser/validating/uri.cxx') diff --git a/libxsde/xsde/cxx/parser/validating/uri.cxx b/libxsde/xsde/cxx/parser/validating/uri.cxx index d649d12..90f55f2 100644 --- a/libxsde/xsde/cxx/parser/validating/uri.cxx +++ b/libxsde/xsde/cxx/parser/validating/uri.cxx @@ -6,6 +6,7 @@ #include #include +#include namespace xsde { @@ -54,8 +55,8 @@ namespace xsde } } - char* uri_pimpl:: - post_uri () + void uri_pimpl:: + _post () { // According to Datatypes 3.2.17 and RFC2396 pretty much anything // can be a URI and conforming processors do not need to figure @@ -63,6 +64,14 @@ namespace xsde // ro_string tmp (str_); str_.truncate (trim_right (tmp)); + + string_common::validate_facets ( + str_.data (), str_.size (), _facets (), _context ()); + } + + char* uri_pimpl:: + post_uri () + { return str_.detach (); } } -- cgit v1.1