Re: [Mysql-cocoa-users] find replace strings
Brought to you by:
sergecohen
From: Aaron J. <aj...@ed...> - 2004-08-09 13:33:31
|
This is not so much an SMySQL question as it is a general Cocoa question, but what you want is NSMutableString's -replaceOccurrencesOfString:withString:options:range: method. Look at the class documentation for more information. On Aug 9, 2004, at 7:47 AM, Patel, Nilesh M wrote: > I guess poor choice of words on my part. I just need a char (e.g +) > that will automatically occur everytime it sees a +. > > so if user enters cat + dog > > I need a method that will display the string as: cat ++ dog. I need > that extra char > > -----Original Message----- > From: Aaron Jacobs [mailto:aj...@ed...] > Sent: Friday, August 06, 2004 10:07 AM > To: Patel, Nilesh M > Cc: mys...@li... > Subject: Re: [Mysql-cocoa-users] find replace strings > > > What do you mean by 'invoke a character'? The word 'invoke' is usually > used for calling functions or methods; it doesn't really make sense to > invoke a character. > > > On Aug 6, 2004, at 9:03 AM, Patel, Nilesh M wrote: > >> I have a string going into mysql database and I need away to invoke a >> specific character for example a plus sign (+) everytime a user enters >> a + character. Having even number of (+) would not crash my app. Does >> anyone know a method that I can implement that will allow me to invoke >> an extra charcter (+) everytime it is entered. >> Assumption: (+) is not alwasy entered. >> >> Thanks. > > > > ======================================================================= > ======= > The contents of this message, together with any attachments, are > intended only for the use of the person(s) to which they are addressed > and may contain confidential and/or privileged information. Further, > any medical information herein is confidential and protected by law. > It is unlawful for unauthorized persons to use, review, copy, > disclose, or disseminate confidential medical information. If you are > not the intended recipient, immediately advise the sender and delete > this message and any attachments. Any distribution, or copying of this > message, or any attachment, is prohibited. > ======================================================================= > ======= > |