From f0510d2f90467de8e8f260b47d79a9baaf9bef17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2009 07:15:29 +0200 Subject: Start tracking XSD with git --- libxsd/xsd/cxx/parser/xml-schema.txx | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libxsd/xsd/cxx/parser/xml-schema.txx (limited to 'libxsd/xsd/cxx/parser/xml-schema.txx') diff --git a/libxsd/xsd/cxx/parser/xml-schema.txx b/libxsd/xsd/cxx/parser/xml-schema.txx new file mode 100644 index 0000000..c0e2de9 --- /dev/null +++ b/libxsd/xsd/cxx/parser/xml-schema.txx @@ -0,0 +1,34 @@ +// file : xsd/cxx/parser/xml-schema.txx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace xsd +{ + namespace cxx + { + namespace parser + { + // string_sequence + // + template + bool + operator== (const string_sequence& a, const string_sequence& b) + { + if (a.size () != b.size ()) + return false; + + for (typename string_sequence::const_iterator + ai (a.begin ()), bi (b.begin ()), ae (a.end ()); + ai != ae; ++ai, ++bi) + { + if (*ai != *bi) + return false; + } + + return true; + } + } + } +} + -- cgit v1.1