void TSC_source::find(StrPtr istr) { QString str;str=istr;str.ToUpper(); if ((cursor_linenr<0)||(cursor_linenr>=G_linecount())) return; int testlinenr=cursor_linenr; int testcolnr=cursor_colnr; while (testlinenr<G_linecount()) { if ((testcolnr>=0)&&(testcolnr<lines[testlinenr]->G_length())) { QString st2=*lines[testlinenr]; st2.substring(testcolnr,st2.G_length()); st2.ToUpper(); int ps=st2.findfirst(str); if (ps>=0) { sel1_linenr=testlinenr;sel2_linenr=testlinenr; sel1_colnr=testcolnr+ps; sel2_colnr=sel1_colnr+qstrlen(str); cursor_linenr=testlinenr; cursor_colnr=sel2_colnr; return; } } testlinenr++; testcolnr=0; } }