mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
strings: Implement join_string_set() as bif
Haven't measured speed, but this is probably faster than the cat() and string invocations.
This commit is contained in:
parent
31aeb58e10
commit
0e28a7faf5
6 changed files with 69 additions and 28 deletions
|
@ -16,9 +16,6 @@ test_binary_string("\xFF\xFF\xFF\x00");
|
|||
test_binary_string("\x00\x00\xFF\x00");
|
||||
test_binary_string("\x00\x00\x00\x00");
|
||||
|
||||
print join_string_set(set("one", "two", "three"), ", ");
|
||||
print join_string_set(set("one"), ", ");
|
||||
|
||||
print string_escape("hello world", "od");
|
||||
print string_escape("\\hello world\\", "");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue