mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00

The broxygen-generated files now live in the git repo, have tests that check that they are up-to-date, and a script to re-generate them on-demand.
37 lines
843 B
ReStructuredText
37 lines
843 B
ReStructuredText
:tocdepth: 3
|
|
|
|
base/utils/numbers.bro
|
|
======================
|
|
|
|
|
|
|
|
Summary
|
|
~~~~~~~
|
|
Functions
|
|
#########
|
|
============================================= =================================
|
|
:bro:id:`extract_count`: :bro:type:`function` Extract an integer from a string.
|
|
============================================= =================================
|
|
|
|
|
|
Detailed Interface
|
|
~~~~~~~~~~~~~~~~~~
|
|
Functions
|
|
#########
|
|
.. bro:id:: extract_count
|
|
|
|
:Type: :bro:type:`function` (s: :bro:type:`string`, get_first: :bro:type:`bool` :bro:attr:`&default` = ``T`` :bro:attr:`&optional`) : :bro:type:`count`
|
|
|
|
Extract an integer from a string.
|
|
|
|
|
|
:s: The string to search for a number.
|
|
|
|
|
|
:get_first: Provide `F` if you would like the last number found.
|
|
|
|
|
|
:returns: The request integer from the given string or 0 if
|
|
no integer was found.
|
|
|
|
|