--- On Sun, 1/6/08, Frederic Bouvier wrote:
> I confirm there in no strcasestr or equivalent in MS
> runtime.
> The patch below should be portable, although more
> convoluted.

>From reading the patch, I don't think this does quite what we want either. My 
>reading is that this ensures that the identifier of the airport is in upper 
>case. However, thanks for pointing out another approach to the problem.

What we really want is to ensure that any search is completely case-insensitive.

For example, apt.dat contains the following lines:

1     400 1 1 KLVK LIVERMORE MUNI
1     425 0 1 4AK2 Livengood Camp
1    3982 0 0 LIVD Dobbiaco

Currently, searching for "LIV" returns the first and last lines, while 
searching for "Livermore" returns nothing, despite being what most people would 
search for.

I think a use searching for "liv" would expect to see all the results above, 
and more.

One issue that is worth discussion is that if we make the search completely 
case-insensitive, we obviously increase the number of results returned. 

In the example above, searching for "liv" would return a total of 54 results. A 
much less unique string, such as "san" would return over 400. 

Note that this assumes that the user has the entire world scenery installed, 
which is pretty unlikely.

Nevertheless, I think these are acceptable numbers for a 3 character string. 
The user can easily perform a more specific search on receiving a large number 
of results.

I will continue looking at this, though if anyone else would like to jump in 
with suggestions, that would be very welcome.

-Stuart


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to