mirror of
https://github.com/zoriya/xmlParser.git
synced 2026-05-31 09:22:06 +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)
|
||||
{
|
||||
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