mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Tidyups etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e360fa5bf5
commit
cfe8d9e881
8 changed files with 79 additions and 5 deletions
|
@ -1124,6 +1124,20 @@ static NSMapTable *nodeNames = 0;
|
|||
return nil;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method, equivalent to calling -type and comparing it
|
||||
* with the result of passing "XML_ELEMENT_NODE" to
|
||||
* +typeFromDescription: (but faster).
|
||||
*/
|
||||
- (BOOL) isElement
|
||||
{
|
||||
if ((int)((xmlNodePtr)(lib))->type == XML_ELEMENT_NODE)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) isEqual: (id)other
|
||||
{
|
||||
if ([other isKindOfClass: [self class]] == YES
|
||||
|
@ -1137,6 +1151,20 @@ static NSMapTable *nodeNames = 0;
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method, equivalent to calling -type and comparing it
|
||||
* with the result of passing "XML_TEXT_NODE" to
|
||||
* +typeFromDescription: (but faster).
|
||||
*/
|
||||
- (BOOL) isText
|
||||
{
|
||||
if ((int)((xmlNodePtr)(lib))->type == XML_TEXT_NODE)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a pointer to the raw libxml data used by this document.<br />
|
||||
* Only for use by libxml experts!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue