- for (i = 0; i < lng - wrd; i++)
- {
- j = 0;
- while ((j < wrd) && (buf[i + j] == kwd[j])) j++;
- if (j == wrd) { found = true; break; }
- }
+ // insert ' ' at the beginning and at the end
+ keyword.insert( 0, _T(" ") );
+ keyword.append( _T(" ") );
+ bufStr.insert( 0, _T(" ") );
+ bufStr.append( _T(" ") );