This implementation of the STRING_POOL uses tuples to represent the
automaton transitions. It is highly specialized for
MANIFEST_STRING_POOL and should not be used for anything else.
The given strings will be the ones
that can be matched. In that case, match will return the index
of the matched string in that collection.
Be aware that the processing time is quite heavy during the
initialization. It's the pay-off to make it really lighter
matches. Don't use the string_pool for a one-time test, it's only
useful in the long run.
After initialization, you can safely discard or modify the
collection; it will not change the automaton.
require
headers_not_void: a_headers /= Void
headers_not_empty: a_headers.count > 0
each string contains a different word
headers_not_empty: -- each string is non-empty
Append in str the Eiffel coding of the character (Table in chapter 25 of ETL, page 423).%%%%%%%%
When the % letter notation exists, it is returned in priority: '%N' gives "%N", '%T'
gives "%T", etc.
When % letter notation does not exists (not in the ETL table), numbered coding
used ("%/1/", "%/2/" etc).