[Bro-Dev] #757: Change split* to return a string_vec rather string_array
Bro Tracker
bro at tracker.bro-ids.org
Fri Jan 27 10:24:26 PST 2012
#757: Change split* to return a string_vec rather string_array
----------------------+------------------------
Reporter: matthias | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone:
Component: Bro | Version: git/master
Keywords: language |
----------------------+------------------------
Currently, ``split`` and friends return a ``string_array``, which is a
``table[count] of string``. However, these BiFs should return a
``string_vec`` or ``vector of string`` to allow for sequential iteration
over the result. The problem with the current approach is not only that it
is wrong modeled (the associative container does not make sense), but also
that iteration over the elements, which are obviously ordered, is neither
deterministic nor sequential. Presumably this mismatch exists because
vectors were not available when the ``split*`` functions have been
created.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/757>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list