• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa-dev digest, Vol 2 #53 - 10 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: app preferences top view
  • Next by Date: How to make Tiff with a mask?
  • Previous by thread: Archiving problem with subclass of NSCalendarDate
  • Next by thread: How to make Tiff with a mask?
  • Index(es):
    • Date
    • Thread