mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Merge branch 'patch-4' of https://github.com/moshekaplan/bro
* 'patch-4' of https://github.com/moshekaplan/bro: Clarified string documentation
This commit is contained in:
commit
46aafdc87b
3 changed files with 12 additions and 9 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
|
2.5-beta-17 | 2016-09-19 15:26:14 -0700
|
||||||
|
|
||||||
|
* Clarified string and fa_file documentation (Moshe Kaplan)
|
||||||
|
|
||||||
2.5-beta-12 | 2016-09-06 07:35:38 -0700
|
2.5-beta-12 | 2016-09-06 07:35:38 -0700
|
||||||
|
|
||||||
* Added a missing fclose in scan.l. Addresses BIT-1690.
|
* Added a missing fclose in scan.l. Addresses BIT-1690.
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.5-beta-12
|
2.5-beta-17
|
||||||
|
|
|
@ -150,18 +150,17 @@ Here is a more detailed description of each type:
|
||||||
|
|
||||||
.. bro:type:: string
|
.. bro:type:: string
|
||||||
|
|
||||||
A type used to hold character-string values which represent text, although
|
A type used to hold bytes which represent text and also can hold
|
||||||
strings in a Bro script can actually contain any arbitrary binary data.
|
arbitrary binary data.
|
||||||
|
|
||||||
String constants are created by enclosing text within a pair of double
|
String constants are created by enclosing text within a pair of double
|
||||||
quotes ("). A string constant cannot span multiple lines in a Bro script.
|
quotes ("). A string constant cannot span multiple lines in a Bro script.
|
||||||
The backslash character (\\) introduces escape sequences. The
|
The backslash character (\\) introduces escape sequences. Bro recognizes
|
||||||
following escape sequences are recognized: ``\n``, ``\t``, ``\v``, ``\b``,
|
the following escape sequences: ``\\``, ``\n``, ``\t``, ``\v``, ``\b``,
|
||||||
``\r``, ``\f``, ``\a``, ``\ooo`` (where each 'o' is an octal digit),
|
``\r``, ``\f``, ``\a``, ``\ooo`` (where each 'o' is an octal digit),
|
||||||
``\xhh`` (where each 'h' is a hexadecimal digit). For escape sequences
|
``\xhh`` (where each 'h' is a hexadecimal digit). If Bro does not
|
||||||
that don't match any of these, Bro will just remove the backslash (so
|
recognize an escape sequence, Bro will ignore the backslash
|
||||||
to represent a literal backslash in a string constant, you just use
|
("\\g" becomes "g").
|
||||||
two consecutive backslashes).
|
|
||||||
|
|
||||||
Strings support concatenation (``+``), and assignment (``=``, ``+=``).
|
Strings support concatenation (``+``), and assignment (``=``, ``+=``).
|
||||||
Strings also support the comparison operators (``==``, ``!=``, ``<``,
|
Strings also support the comparison operators (``==``, ``!=``, ``<``,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue