Click here to Skip to main content
15,891,529 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Help me- Retreiving the points lying on a curve Pin
Alan Balkany29-Apr-09 3:54
Alan Balkany29-Apr-09 3:54 
GeneralRe: Help me- Retreiving the points lying on a curve Pin
OriginalGriff29-Apr-09 5:32
mveOriginalGriff29-Apr-09 5:32 
QuestionAre the permutaion tables or sbox in DES fixed? Pin
maishuiking26-Apr-09 21:36
maishuiking26-Apr-09 21:36 
AnswerRe: Are the permutaion tables or sbox in DES fixed? Pin
Arash Partow26-Apr-09 23:51
Arash Partow26-Apr-09 23:51 
QuestionOCR algorithm Pin
mehdad.koulab26-Apr-09 19:24
mehdad.koulab26-Apr-09 19:24 
AnswerRe: OCR algorithm Pin
CPallini26-Apr-09 23:34
mveCPallini26-Apr-09 23:34 
QuestionSearching string.. Pin
Quake2Player24-Apr-09 14:02
Quake2Player24-Apr-09 14:02 
AnswerRe: Searching string Pin
Luc Pattyn24-Apr-09 16:58
sitebuilderLuc Pattyn24-Apr-09 16:58 
Hi,

this should do it (pseudo-code):

stringlist list=new stringlist
string[] searches=search.split('\'')      // split on quotes
bool quoted=false
foreach string s in searches {
    if (quoted) list.add(s)
    else foreach string s2 in s.split(' ')  list.add(s2)   // split on spaces
    quoted=!quoted
}
foreach string s in list if !text.contains(s) return false
return true



PS: it could be handled without the list, just test right away instead of adding to list...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


modified on Friday, April 24, 2009 11:38 PM

AnswerRe: Searching string.. Pin
Fatbuddha 16-May-09 23:14
Fatbuddha 16-May-09 23:14 
AnswerRe: Searching string.. Pin
wb_program11-May-09 8:54
wb_program11-May-09 8:54 
Questionhelp me plz to find the algorithm for circle hough transform Pin
javeria khalid21-Apr-09 7:45
javeria khalid21-Apr-09 7:45 
AnswerRe: help me plz to find the algorithm for circle hough transform Pin
Tim Craig21-Apr-09 8:52
Tim Craig21-Apr-09 8:52 
AnswerRe: help me plz to find the algorithm for circle hough transform Pin
Yusuf21-Apr-09 11:05
Yusuf21-Apr-09 11:05 
AnswerRe: help me plz to find the algorithm for circle hough transform Pin
Alan Balkany22-Apr-09 3:29
Alan Balkany22-Apr-09 3:29 
Questioni need genetic algorithm coding for the objective function of the controllers i know.help me friends its my project Pin
trinath8118-Apr-09 20:12
trinath8118-Apr-09 20:12 
QuestionHow to get the body of an email message? Pin
Quake2Player17-Apr-09 15:01
Quake2Player17-Apr-09 15:01 
AnswerRe: How to get the body of an email message? Pin
Curtis Schlak.19-Apr-09 6:59
Curtis Schlak.19-Apr-09 6:59 
GeneralRe: How to get the body of an email message? Pin
Quake2Player19-Apr-09 9:40
Quake2Player19-Apr-09 9:40 
GeneralRe: How to get the body of an email message? Pin
Curtis Schlak.19-Apr-09 12:43
Curtis Schlak.19-Apr-09 12:43 
QuestionAlgorithm Books Pin
DBLearner17-Apr-09 6:30
DBLearner17-Apr-09 6:30 
AnswerRe: Algorithm Books Pin
SQLServerIO1-Jun-09 3:57
SQLServerIO1-Jun-09 3:57 
Questionalgorithm Pin
letaya13-Apr-09 21:06
letaya13-Apr-09 21:06 
AnswerRe: algorithm Pin
madicursar13-Apr-09 22:58
madicursar13-Apr-09 22:58 
AnswerRe: algorithm Pin
Alan Balkany14-Apr-09 3:54
Alan Balkany14-Apr-09 3:54 
AnswerRe: algorithm Pin
Pete O'Hanlon14-Apr-09 4:38
mvePete O'Hanlon14-Apr-09 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.