Re: NSScanner? (was Re: NEWBIE: Easier way to do strings?)
Re: NSScanner? (was Re: NEWBIE: Easier way to do strings?)
- Subject: Re: NSScanner? (was Re: NEWBIE: Easier way to do strings?)
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 13 Mar 2002 19:53:07 -0600
Tyler may also be interested in <string.h> and <stdio.h>
ANSI C has libraries for string manipulation using NULL terminated ASCII
character arrays.
Functions like strrchr() and strtok() may be what he wants if he dislikes
Unicode so much.
Tyler may also be interested Perl or TCL. Both can be used along with
Objective-C in a variety of ways.
----- Original Message -----
From: "mmalcolm crawford" <email@hidden>
To: "Tyler Vano" <email@hidden>
Cc: <email@hidden>
Sent: Wednesday, March 13, 2002 7:30 PM
Subject: NSScanner? (was Re: NEWBIE: Easier way to do strings?)
>
On Wednesday, March 13, 2002, at 04:05 PM, Tyler Vano wrote:
>
>
> I seem to recall a string data type.
>
>
CFString? Just like an NSString, but implemented as a pure C struct,
>
with function calls instead of methods. I don't think it's going to get
>
you much further though...
>
>
> Are there any routines for working with these? (extracting
>
> substrings, search and replace, etc.?) If not, how
>
> would I go about writing my own?
>
>
>
Umm, there are such methods in NSString:
>
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/
>
Strings/index.html
>
>
There's also NSScanner...
>
>
On the subject of which, though, I'm sure I saw a note somewhere
>
somewhen that NSScanner is deprecated? Is this true?!
>
>
>
If you don't mind an external framework, as recently as February 20
>
James Montgomerie pointed out:
>
>
> Mike Ferris' MOKit has a more Cocoa-friendly, Unicode-save
>
> implementation of regular expressions, so you might want to take a look
>
> at it (http://www.lorax.com/FreeStuff/MOKit.html)
>
>
>
> And finally, could anyone point me towards a really
>
> good beginner's reference (online) to learning the
>
> Objective-C language? Most of the documents I've found
>
> consist of 20 chapters, each one assuming you've
>
> already read the other 19. =)
>
>
>
The best introduction is at:
>
http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/index.html
>
>
You only really need the chapters three and four get get a good
>
grounding, but chapter two is well worth reading.
>
>
mmalc
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.