From 62cae697c9825abc4ef66264e04708d5ee5bba9a Mon Sep 17 00:00:00 2001 From: bustico Date: Wed, 20 Sep 2006 11:19:05 +0000 Subject: update doc with new intervall regexp syntax --- doc/ivy-c-functions.1 | 7 +++++++ doc/ivy-c.sgml | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'doc') 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 cb to the regular expression specif regex_format and the optional following arguments. regex_format and the following arguments are handled as in printf. 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. void IvyUnbindMsg (MsgRcvPtr id); -- cgit v1.1