From c964e1d8c0ff4e645691386ff92b41440223649b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Mar 2010 20:04:12 +0200 Subject: Add facet support for other string-based types (serializer) --- libxsde/xsde/cxx/serializer/validating/normalized-string.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libxsde/xsde/cxx/serializer/validating/normalized-string.cxx') diff --git a/libxsde/xsde/cxx/serializer/validating/normalized-string.cxx b/libxsde/xsde/cxx/serializer/validating/normalized-string.cxx index 72ade2e..89bb32c 100644 --- a/libxsde/xsde/cxx/serializer/validating/normalized-string.cxx +++ b/libxsde/xsde/cxx/serializer/validating/normalized-string.cxx @@ -4,6 +4,7 @@ // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #include +#include namespace xsde { @@ -38,7 +39,13 @@ namespace xsde } if (*s == '\0') - _characters (value_); + { + if (string_common::validate_facets ( + value_, _facets (), _context ())) + { + _characters (value_); + } + } else _schema_error (schema_error::invalid_normalized_string_value); @@ -52,4 +59,3 @@ namespace xsde } } } - -- cgit v1.1