mirror of
https://github.com/zoriya/xmlParser.git
synced 2026-06-04 02:36:19 +00:00
Adding a iscontain
This commit is contained in:
@@ -38,4 +38,11 @@ int xml_getbinaprop(node *n, const char *key)
|
|||||||
bool xml_hasproperty(node *n, const char *key)
|
bool xml_hasproperty(node *n, const char *key)
|
||||||
{
|
{
|
||||||
return (xml_gettempprop(n, key) != NULL);
|
return (xml_gettempprop(n, key) != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool xml_propcontains(node *n, const char *key, const char *tofind)
|
||||||
|
{
|
||||||
|
char *tmp = xml_gettempprop(n, key);
|
||||||
|
|
||||||
|
return tmp && my_strstr(tmp, tofind);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user