diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-28 19:27:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-28 19:27:51 +0200 |
commit | b8749d41c4ded030201744f321b4e38a9093fd98 (patch) | |
tree | 3f451cbbf4e33c4319bd7a108bae843b2e573807 /libxsde/xsde/cxx/parser/validating/uri.cxx | |
parent | f5b85ddc9a0e3ac4bb8a200d2ab1a05d5ca9f41b (diff) |
Add facet support for other string-based types (parser)
Diffstat (limited to 'libxsde/xsde/cxx/parser/validating/uri.cxx')
-rw-r--r-- | libxsde/xsde/cxx/parser/validating/uri.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
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 <xsde/cxx/config.hxx> #include <xsde/cxx/parser/validating/uri.hxx> +#include <xsde/cxx/parser/validating/string-common.hxx> 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 (); } } |