mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-23 11:41:20 +00:00
supports 'true' and 'false' now. Will be transformed into YES and NO
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19438 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6de752ae5e
commit
3842bb1060
1 changed files with 13 additions and 1 deletions
|
@ -585,7 +585,19 @@ Returns a NSString
|
|||
};
|
||||
break;
|
||||
};
|
||||
};
|
||||
}
|
||||
else if (_uniBuf[_index]=='t' || _uniBuf[_index]=='f') // true/false
|
||||
{
|
||||
if (((_uniBuf[(_index)]=='t') && (_uniBuf[(_index)+1]=='r')) &&
|
||||
((_uniBuf[(_index)+2]=='u') && (_uniBuf[(_index)+3]=='e'))) {
|
||||
value=[NSNumber numberWithBool:YES];
|
||||
_index+=4;
|
||||
} else if ((((_uniBuf[(_index)]=='f') && (_uniBuf[(_index)+1]=='a')) &&
|
||||
((_uniBuf[(_index)+2]=='l') && (_uniBuf[(_index)+3]=='s'))) && (_uniBuf[(_index)+3]=='e')) {
|
||||
value=[NSNumber numberWithBool:NO];
|
||||
_index+=5;
|
||||
}
|
||||
}
|
||||
NSDebugMLog(@"value=%@",value);
|
||||
//ParserDebugLogBuffer(_uniBuf,_length,_index,20);
|
||||
return value;
|
||||
|
|
Loading…
Reference in a new issue