From 7db026e8056914d113ac0bbfd9bdc4908a9e7874 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Oct 2010 15:35:23 +0200 Subject: Add support for the whiteSpace facet Use the same mechanism to handle whitespace processing for build-in types and enumerations. --- libxsde/xsde/cxx/parser/validating/string-common.hxx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'libxsde/xsde/cxx/parser/validating/string-common.hxx') diff --git a/libxsde/xsde/cxx/parser/validating/string-common.hxx b/libxsde/xsde/cxx/parser/validating/string-common.hxx index 3191a3c..f31fd16 100644 --- a/libxsde/xsde/cxx/parser/validating/string-common.hxx +++ b/libxsde/xsde/cxx/parser/validating/string-common.hxx @@ -6,6 +6,14 @@ #ifndef XSDE_CXX_PARSER_VALIDATING_STRING_COMMON_HXX #define XSDE_CXX_PARSER_VALIDATING_STRING_COMMON_HXX +#include + +#ifdef XSDE_STL +#include +#else +#include +#endif + #include namespace xsde @@ -19,10 +27,14 @@ namespace xsde struct string_common { static bool - validate_facets (const char* s, - size_t n, - const string_facets::facets&, - context&); + validate_facets ( +#ifdef XSDE_STL + std::string& str, +#else + string& str, +#endif + const string_facets::facets&, + context&); }; } } -- cgit v1.1