Search A String

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2007
Posts: 60
Reputation: guitarrick is an unknown quantity at this point 
Solved Threads: 0
guitarrick guitarrick is offline Offline
Junior Poster in Training

Search A String

 
0
  #1
Feb 27th, 2008
Looking for the best way to search a string for project that must test for bad input. Must be able to detect wrong characters, letters, etc.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,678
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 263
Lerner Lerner is offline Offline
Posting Virtuoso

Re: Search A String

 
0
  #2
Feb 27th, 2008
Depends I suppose on the list of wrong characters, and the type of string you're going to use, etc. A brute force char by char analysis of the string will always work of course, but you may be able to use find(), strtok(), etc too, depending on the situation.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 50
Reputation: farag is an unknown quantity at this point 
Solved Threads: 1
farag farag is offline Offline
Junior Poster in Training

Re: Search A String

 
0
  #3
Feb 27th, 2008
there is a class has name string
i think that it is very useful for you
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC