DRAFT of specification if Indexing By words for strings.

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Sep 22 18:26:11 CDT 2004


On 9/22/04 6:09 PM, "Sims, John" <AYU8 at CDC.GOV> wrote:

>> Hmm, follow this, we can think about inheritance of lists.
>> But better no.
>> 
>> Better combination as you point...
>> 
>> Although what to do if combined Prefs have different IngoreLength ?
>> 
>> 
>> 
>>> As always, thank you for letting us contribute our ideas
>> and keep up 
>>> the great work!
>> 
>> Ok, so we have more hard work now :-)
> 
> 
> I also saw the possibility of different ignore lengths as a problem but
> wanted to tell you my idea while this concept is still in the early
> stages.
> 
> Perhaps you should place this responsibility on the developer to use
> combinations of IndexStrPrefs in ways that make sense and set the rules
> as something like the following:
> 
> If combining 2 or more IndexStrPrefs and any of them have IgnoreLength >
> 0, then you use the largest ignore length.  If any of them have words to
> ignore, then those words are ignored in addition to words that fall
> under the IgnoreLength.  This could be quite powerful.
> 
> For example:
> 
> Prefs1.Name = "SingleLetters" :: IgnoreLength = 1
> Prefs2.Name = "LittleWords" :: IgnoreLength = 2
> Prefs3.Name = "Colors" :: Words to ignore =
> "red;blue;green;yellow;orange;purple;white;black"
> 
> Dim myPrefs(2) as string
> myPrefs(0) = "SingleLetters"
> myPrefs(1) = "LittleWords"
> myPrefs(2) = "Colors"
> 
> myVstring.UseIndexPrefs ( myPrefs ) :: would ignore any words with
> length <= 2 and the words
> "red;blue;green;yellow;orange;purple;white;black" ---- Notice that the
> "SingleLetters" IndexStrPref does not really have any affect because it
> is "overridden" by the "LittleWords" IndexStrPref due to its larger
> IgnoreLength.  So, I as a developer should be smart enough to realize
> the I do not need to include "SingleLetters" in my IndexStrPrefs array.
> The correct call would be:
> 
> Dim myPrefs(1) as string
> myPrefs(0) = "LittleWords"
> myPrefs(1) = "Colors"
> 
> myVstring.UseIndexPrefs ( myPrefs )
> 
> Again, I hope I'm making good sense.


I very like this !!!

Thank you!

We will try to implement this now


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina-beta mailing list