diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-08 15:35:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-08 15:35:23 +0200 |
commit | 7db026e8056914d113ac0bbfd9bdc4908a9e7874 (patch) | |
tree | 0ab15cb8b0ee160a10cca21edaf0aca1e97e8921 /libxsde/xsde/cxx/parser/non-validating/string-common.hxx | |
parent | 4f38adc11ab1a3a1ab2dd3f958c917182be7d71f (diff) |
Add support for the whiteSpace facet
Use the same mechanism to handle whitespace processing for build-in types
and enumerations.
Diffstat (limited to 'libxsde/xsde/cxx/parser/non-validating/string-common.hxx')
-rw-r--r-- | libxsde/xsde/cxx/parser/non-validating/string-common.hxx | 43 |
1 files changed, 43 insertions, 0 deletions
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 <boris@codesynthesis.com> +// 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 <xsde/cxx/config.hxx> + +#ifdef XSDE_STL +#include <string> +#else +#include <xsde/cxx/string.hxx> +#endif + +#include <xsde/cxx/parser/non-validating/xml-schema-pskel.hxx> + +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 |