Re: cocoa-dev digest, Vol 2 #53 - 10 msgs
Re: cocoa-dev digest, Vol 2 #53 - 10 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #53 - 10 msgs
- From: Simon Stapleton <email@hidden>
- Date: Tue, 22 Jan 2002 17:57:08 +0000 (GMT)
>
Subject: HTML Parsing Follow-up
>
From: Sam Goldman <email@hidden>
>
To: Cocoa Dev <email@hidden>
>
>
There was a short e-mail series on this list about HTML Parsing and
>
it gave me a little inspiration to get it working.
<snippage, gist of which was 'where did my spaces go?'>
From the NSScanner docs:
"The default set of characters to skip is the whitespace and newline
character set."
- (void)setCharactersToBeSkipped:(NSCharacterSet *)skipSet
...is yor frend.
Looks as though the characters that get skipped only get skipped when
they occur before the string you're searching for, and, any overlap
is dealt with sensibly - i.e searching for "< >" returns "< >"
not "<>".
Although using one of the expat wrappers would seem to be a more
sensible idea than 'rolling your own' parser.
Simon
--
PGP Key ID : 0x50D0698D
--
If the answer isn\'t obvious, the question is a distraction. Go find
an easier question.