Public Member Functions | Public Attributes
namespace_uri_predicate Struct Reference

List of all members.

Public Member Functions

 namespace_uri_predicate (const char_t *name)
bool operator() (const xml_attribute &a) const

Public Attributes

const char_t * prefix
size_t prefix_length

Detailed Description

Definition at line 7030 of file pugixml.cpp.


Constructor & Destructor Documentation

namespace_uri_predicate::namespace_uri_predicate ( const char_t *  name) [inline]

Definition at line 7035 of file pugixml.cpp.

References find_char(), prefix, and prefix_length.

                {
                        const char_t* pos = find_char(name, ':');

                        prefix = pos ? name : 0;
                        prefix_length = pos ? static_cast<size_t>(pos - name) : 0;
                }

Member Function Documentation

bool namespace_uri_predicate::operator() ( const xml_attribute &  a) const [inline]

Definition at line 7043 of file pugixml.cpp.

References prefix, prefix_length, starts_with(), and strequalrange().

                {
                        const char_t* name = a.name();

                        if (!starts_with(name, PUGIXML_TEXT("xmlns"))) return false;

                        return prefix ? name[5] == ':' && strequalrange(name + 6, prefix, prefix_length) : name[5] == 0;
                }

Member Data Documentation

Definition at line 7032 of file pugixml.cpp.

Referenced by namespace_uri(), namespace_uri_predicate(), and operator()().

Definition at line 7033 of file pugixml.cpp.

Referenced by namespace_uri_predicate(), and operator()().


The documentation for this struct was generated from the following file:

Generated on Mon Sep 15 2014 01:23:55 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001