mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-13 04:50:41 +01:00
- building the necessary plumbing to support more functions with decent runtime performance. This is also necessary towards the long-term goal of loadable library modules. - added new RainerScript function "tolower"
22 lines
456 B
Plaintext
22 lines
456 B
Plaintext
# a simple RainerScript test
|
|
result: 0
|
|
in:
|
|
strlen($msg & strlen('abc')) > 20 +30 + -40 then
|
|
$$$
|
|
out:
|
|
00000000: push_msgvar msg[cstr]
|
|
00000001: push_const abc[cstr]
|
|
00000002: push_const 1[nbr]
|
|
00000003: func_call strlen
|
|
00000004: strconcat
|
|
00000005: push_const 1[nbr]
|
|
00000006: func_call strlen
|
|
00000007: push_const 20[nbr]
|
|
00000008: push_const 30[nbr]
|
|
00000009: add
|
|
00000010: push_const 40[nbr]
|
|
00000011: unary_minus
|
|
00000012: add
|
|
00000013: cmp_>
|
|
$$$
|