Browse thread
[Caml-list] Substring search on an array of strings
-
Diego Olivier Fernandez Pons
-
Shawn Wagner
- Diego Olivier Fernandez Pons
-
Shawn Wagner
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Diego Olivier Fernandez Pons <Diego.FERNANDEZ_PONS@e...> |
| Subject: | Re: [Caml-list] Substring search on an array of strings |
Bonjour,
> Do you want to find out if one of the strings in the array equals some other
> string, or if that other string appears as a substring in one of the array's
> strings? Either way, annexlib has the needed functions:
> http://raevnos.pennmush.org/code/annexlib/
Find out if a string appears as a substring in an array of strings and
return the list of couples (string_index, position) of all matches.
After having examined annexlib, it seems that it doesn't have a
_specific_ function to do what I want. Of course I could always launch
Array.size searches, one on each string. But it is a performance issue
of course because the database is really big.
Diego Olivier
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners