• 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: compare two strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compare two strings


  • Subject: Re: compare two strings
  • From: Jörn Salewski <email@hidden>
  • Date: Mon, 02 Feb 2004 00:49:42 +0100

am 02.02.2004 0:27 Uhr schrieb Sascha Kuehn unter email@hidden:

> thanks! works great.
>
> i have too other questions:
>
> how can i check if a string ends with a "=" or any other character?

Many ways to do so. One of them (caution:typed in mail):

NSString * str // declared somewhere

int indexOfLastChar = [str length] -1;

Bool endsInEqualSign;
EndsInEqualSign = ([str characterAtIndex:indexOfLastChar] == '=');

> how can i leave a for-loop before it's regularly end?
>

break;

> sorry for that questions, but i'm new to obj-c.
>
Don't worry. (however, the last question was a plain c question)

> sascha
>
>

Yours,

Joern Salewski
_______________________________________________
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.

References: 
 >Re: compare two strings (From: Sascha Kuehn <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator: bug?
  • Next by Date: Re: NSProgressIndicator: bug?
  • Previous by thread: Re: compare two strings
  • Next by thread: Re: compare two strings
  • Index(es):
    • Date
    • Thread