Re: compare two strings
Re: compare two strings
- Subject: Re: compare two strings
- From: Sascha Kuehn <email@hidden>
- Date: Mon, 2 Feb 2004 00:27:50 +0100
thanks! works great.
i have too other questions:
how can i check if a string ends with a "=" or any other character?
how can i leave a for-loop before it's regularly end?
sorry for that questions, but i'm new to obj-c.
sascha
On 2. Feb 2004, at 0:04 Uhr, emh wrote:
>
NSString* str = @"foo bar";
>
>
if ([str rangeOfString:@"foo"].location != NSNotFound) {
>
...
>
}
>
>
On Feb 1, 2004, at 2:55 PM, Sascha Kuehn wrote:
>
>
> hi,
>
>
>
> how can i check if one string contains an other string?
>
>
>
> i.e. i will check if "foo bar" contains "foo"
>
>
>
> sascha
>
> _______________________________________________
>
> 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.