|
|
◆ previous_attribute()
template<class Ch = char>
| xml_attribute< Ch > * previous_attribute |
( |
const Ch * | name = 0, |
|
|
std::size_t | name_size = 0, |
|
|
bool | case_sensitive = true ) const |
|
inline |
Gets previous attribute, optionally matching attribute name. - Parameters
-
| name | Name of attribute to find, or 0 to return previous attribute regardless of its name; this string doesn't have to be zero-terminated if name_size is non-zero |
| name_size | Size of name, in characters, or 0 to have size calculated automatically from string |
| case_sensitive | Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters |
- Returns
- Pointer to found attribute, or 0 if not found.
References xml_base< char >::name(), and xml_base< char >::name_size().
|