root/win32/xsd-3.1.0-i686/libxsd/xsd/cxx/parser/xml-schema.txx @ 129

Revision 111, 0.8 kB (checked in by mido, 16 years ago)

pridana knihovna XSD (a jeji chlebodarkyne XERCES), v ramci Win32 zprovoznen priklad tests/test_xsd_hello.cxx

Line 
1// file      : xsd/cxx/parser/xml-schema.txx
2// author    : Boris Kolpackov <boris@codesynthesis.com>
3// copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC
4// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file
5
6namespace xsd
7{
8  namespace cxx
9  {
10    namespace parser
11    {
12      // string_sequence
13      //
14      template <typename C>
15      bool
16      operator== (const string_sequence<C>& a, const string_sequence<C>& b)
17      {
18        if (a.size () != b.size ())
19          return false;
20
21        for (typename string_sequence<C>::const_iterator
22               ai (a.begin ()), bi (b.begin ()), ae (a.end ());
23             ai != ae; ++ai, ++bi)
24        {
25          if (*ai != *bi)
26            return false;
27        }
28
29        return true;
30      }
31    }
32  }
33}
Note: See TracBrowser for help on using the browser.