You can't use StrStr() because it searches case-sensitive, which is even
more counter-intuitive to average users than the FindStrInStr way.
In languages like German where you have many composites (a single word
made up of multiple other words), the standard Find behaviour is rarely
useful.
So you end up writing your own char-based search routines wasting either
cycles with a generic approach or precious memory when using
sophisticated algorithms.
Why not add a FindStrInStrV20 routine to PalmOS that does it right?
Andreas
>Date: 7 May 1999 10:07:08 -0700
>From: David Fedor <[EMAIL PROTECTED]>
>Subject: Re: Find's Funny Convention
>
>It is feature, intentionally done. It is also the
>intended behavior of
>FindStrInStr to find matches only at the start of words. >(The
documention says "partial word search"...
>perhaps it could be clearer.)
>
>As to why the UI is defined this way: it would probably
>confuse users if
>they searched for "put" and found references to computers, or "sin" and
>found memos about businesses. Those typically aren't the
>results you want
>as a user, though they're strictly speaking valid matches.
>
>I think you want to
>use StrStr for matching that isn't required to start at the
>beginning of a
>word.
>
>- -David Fedor
>Palm Developer Support