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. --- .../cxx/parser/non-validating/string-common.hxx | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 libxsde/xsde/cxx/parser/non-validating/string-common.hxx (limited to 'libxsde/xsde/cxx/parser/non-validating/string-common.hxx') diff --git a/libxsde/xsde/cxx/parser/non-validating/string-common.hxx b/libxsde/xsde/cxx/parser/non-validating/string-common.hxx new file mode 100644 index 0000000..6935e9f --- /dev/null +++ b/libxsde/xsde/cxx/parser/non-validating/string-common.hxx @@ -0,0 +1,43 @@ +// file : xsde/cxx/parser/non-validating/string-common.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef XSDE_CXX_PARSER_NON_VALIDATING_STRING_COMMON_HXX +#define XSDE_CXX_PARSER_NON_VALIDATING_STRING_COMMON_HXX + +#include + +#ifdef XSDE_STL +#include +#else +#include +#endif + +#include + +namespace xsde +{ + namespace cxx + { + namespace parser + { + namespace non_validating + { + struct string_common + { + static void + process_facets ( +#ifdef XSDE_STL + std::string& str, +#else + string& str, +#endif + const string_facets::facets&); + }; + } + } + } +} + +#endif // XSDE_CXX_PARSER_NON_VALIDATING_STRING_COMMON_HXX -- cgit v1.1