mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Various fizes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11805 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f02d1c4666
commit
6cffd05410
12 changed files with 114 additions and 49 deletions
|
@ -1354,26 +1354,32 @@ static NSString *endMarker = @"At end of incremental parse";
|
|||
|
||||
- (BOOL) substituteEntities: (BOOL)yesno
|
||||
{
|
||||
BOOL result = ((xmlParserCtxtPtr)lib)->replaceEntities ? YES : NO;
|
||||
int oldVal;
|
||||
int newVal = (yesno == YES) ? 1 : 0;
|
||||
|
||||
((xmlParserCtxtPtr)lib)->replaceEntities = (yesno == YES) ? 1 : 0;
|
||||
return result;
|
||||
xmlGetFeature((xmlParserCtxtPtr)lib, "substitute entities", (void*)&oldVal);
|
||||
xmlSetFeature((xmlParserCtxtPtr)lib, "substitute entities", (void*)&newVal);
|
||||
return (oldVal == 1) ? YES : NO;
|
||||
}
|
||||
|
||||
- (BOOL) keepBlanks: (BOOL)yesno
|
||||
{
|
||||
BOOL result = ((xmlParserCtxtPtr)lib)->keepBlanks ? YES : NO;
|
||||
int oldVal;
|
||||
int newVal = (yesno == YES) ? 1 : 0;
|
||||
|
||||
((xmlParserCtxtPtr)lib)->keepBlanks = (yesno == YES) ? 1 : 0;
|
||||
return result;
|
||||
xmlGetFeature((xmlParserCtxtPtr)lib, "keep blanks", (void*)&oldVal);
|
||||
xmlSetFeature((xmlParserCtxtPtr)lib, "keep blanks", (void*)&newVal);
|
||||
return (oldVal == 1) ? YES : NO;
|
||||
}
|
||||
|
||||
- (BOOL) doValidityChecking: (BOOL)yesno
|
||||
{
|
||||
BOOL result = ((xmlParserCtxtPtr)lib)->validate ? YES : NO;
|
||||
int oldVal;
|
||||
int newVal = (yesno == YES) ? 1 : 0;
|
||||
|
||||
((xmlParserCtxtPtr)lib)->validate = (yesno == YES) ? 1 : 0;
|
||||
return result;
|
||||
xmlGetFeature((xmlParserCtxtPtr)lib, "validate", (void*)&oldVal);
|
||||
xmlSetFeature((xmlParserCtxtPtr)lib, "validate", (void*)&newVal);
|
||||
return (oldVal == 1) ? YES : NO;
|
||||
}
|
||||
|
||||
- (BOOL) getWarnings: (BOOL)yesno
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue