diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ivy-c-functions.1 | 7 | ||||
-rw-r--r-- | doc/ivy-c.sgml | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/ivy-c-functions.1 b/doc/ivy-c-functions.1 index 9c20ad4..d54bb77 100644 --- a/doc/ivy-c-functions.1 +++ b/doc/ivy-c-functions.1 @@ -172,6 +172,13 @@ Message binding In this example the function \fBStartTimeCallback\fR will be called each time the string \fBCLOCK Start time=(.*)\fR will be emitted on the bus. +There is a special syntax for specifying numeric interval, in this case +the interval is locally transformed in a pcre regexp. +syntax is \fB(?Imin#max[fi])\fR. min and max are the bounds, +by default the regexp match decimal number, but if max bound is +followed by 'i', the regexp match only integers ex : \fB(?I-10#20), (?I20#25i)\fR +Note that due to the regexp generator limitation (which will perhaps be raised eventually) +the bounds are always integers. .SH \fBIvyUnbindMsg\fR: Message unbinding diff --git a/doc/ivy-c.sgml b/doc/ivy-c.sgml index 0021035..b737f6c 100644 --- a/doc/ivy-c.sgml +++ b/doc/ivy-c.sgml @@ -364,6 +364,13 @@ binds callback function <function>cb</function> to the regular expression specif <parameter>regex_format</parameter> and the optional following arguments. <parameter>regex_format</parameter> and the following arguments are handled as in <function>printf</function>. The return value is an identifier that can be used later for cancelling the subscription. +There is a special syntax for specifying numeric interval, in this case +the interval is locally transformed in a pcre regexp. +syntax is (?Imin#max[fi]). min and max are the bounds, +by default the regexp match decimal number, but if max bound is +followed by 'i', the regexp match only integers ex : (?I-10#20), (?I20#25i) +Note that due to the regexp generator limitation (which will perhaps be raised eventually) +the bounds are always integers. <programlisting> void IvyUnbindMsg (MsgRcvPtr id); |