[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-recutils] New feature: %size
From: |
Jose E. Marchesi |
Subject: |
[bug-recutils] New feature: %size |
Date: |
Wed, 09 Feb 2011 22:00:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) |
Hi.
I just pushed a new feature to the git repo. The special field %size
can be used to specify a constraint in the number of records contained
in a record set. Both tests and documentation are included.
Record sets can be declared to have a fixed number of records:
%rec%rec: Day
%size: 7
%type: Name enum
+ Monday Tuesday Wednesday Thursday Friday
+ Saturday Sunday
%doc: There should be 7 days.
Or one of the <,<=,>,>= operators can be used to define a range:
%rec: Item
%key: Id
%size: <= 100
%doc: We have at much 100 different articles.
Enjoy!
--
Jose E. Marchesi address@hidden
GNU Project http://www.gnu.org
- [bug-recutils] New feature: %size,
Jose E. Marchesi <=