Skip to content

Commit

Permalink
Updates for 0.8.0.
Browse files Browse the repository at this point in the history
darcs-hash:20090920074952-ced27-263d97034981850b6fd321885ed82d32396be3b6.gz
  • Loading branch information
Ville Laurikari committed Sep 20, 2009
1 parent 9301b14 commit cdce45e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
10 changes: 10 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
Version 0.8.0
- Added tre_ prefix to all functions exported from libtre. This
changes the binary interface (ABI). The old source interface
(API) is still available in <tre/regex.h>. New programs should
use <tre/tre.h>.

- Visual C++ 6 project files replaced with Visual Studio 2008 files.

- Bug fixes.

Version 0.7.6
- The license is changed from LGPL to a BSD-style license. The new
license is essentially the same as the "2 clause" BSD-style
Expand Down
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Dominick Meglio <[email protected]>
Aymeric Moizard <[email protected]>
Daniel Nylander <[email protected]>
William J Poser <[email protected]>
Nikolai Saoukh <[email protected]>
Santiago Vila <[email protected]>
Nikolai Weibull <[email protected]>
Bill Yerazunis <[email protected]>
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(TRE, 0.7.6, [[email protected]])
AC_INIT(TRE, 0.8.0, [[email protected]])
AC_CONFIG_SRCDIR([lib/regcomp.c])
AC_CONFIG_AUX_DIR(utils)
AC_CANONICAL_TARGET
Expand Down
23 changes: 13 additions & 10 deletions doc/tre-syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@ <h3>Repeat operators</h3>


<p>
Adding a <tt>?</tt> to a repeat operator makes the subexpression
minimal, or non-greedy. Normally a repeated expression is greedy,
that is, it matches as many characters as possible. A non-greedy
subexpression matches as few characters as possible. Note that this
does not (always) mean the same thing as matching as many or few
repetitions as possible.
Adding a <tt>?</tt> to a repeat operator makes the subexpression minimal, or
non-greedy. Normally a repeated expression is greedy, that is, it matches as
many characters as possible. A non-greedy subexpression matches as few
characters as possible. Note that this does not (always) mean the same thing
as matching as many or few repetitions as possible. Also note
that <strong>minimal repetitions are not currently supported for approximate
matching</strong>.
</p>

<h3>Approximate matching settings</h3>
Expand Down Expand Up @@ -193,7 +194,9 @@ <h3>Approximate matching settings</h3>
can have a multiplier for each of <tt>i</tt>, <tt>d</tt>, and
<tt>s</tt>. The multiplier is the cost of the error, and the number
after <tt>&lt;</tt> is the maximum allowed cost of a match. Spaces
and pluses can be inserted to make the equation readable.
and pluses can be inserted to make the equation readable. In fact, when
specifying only a cost equation, adding a space after the opening <tt>{</tt>
is <strong>required</strong>.
</p>

<p>
Expand All @@ -208,7 +211,7 @@ <h3>Approximate matching settings</h3>
of insertions to two.</dd>
<dt><tt>{&lt;3}</tt></dt>
<dd>Sets the maximum cost to three.
<dt><tt>{2i + d + 2s &lt; 5}</tt></dt>
<dt><tt>{ 2i + 1d + 2s &lt; 5 }</tt></dt>
<dd>Sets the cost of an insertion to two, a deletion to one, a
substitution to two, and the maximum cost to five.
</dl>
Expand Down Expand Up @@ -394,14 +397,14 @@ <h3>Options</h3>
</td></tr>
</table>

Options allow compile time options to be turned on/off for particular parts of the
Options allow compile time options to be turned on/off for particular parts of the
regular expression. The options equate to several compile time options specified to
the regcomp API function. If the option is specified in the first section, it is
turned on. If it is specified in the second section (after the <tt>-</tt>), it is
turned off.
<ul>
<li>i - Case insensitive.
<li>n - Forces special handling of the new line character. See the REG_NEWLINE flag in
<li>n - Forces special handling of the new line character. See the REG_NEWLINE flag in
the <a href="tre-api.html">API Manual</a>.
<li>r - Causes the regex to be matched in a right associative manner rather than the normal
left associative manner.
Expand Down
2 changes: 1 addition & 1 deletion po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: TRE 0.7.4\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2009-05-22 12:11+0300\n"
"POT-Creation-Date: 2009-09-18 15:41+0300\n"
"PO-Revision-Date: 2002-07-29 23:46+0300\n"
"Last-Translator: Ville Laurikari <[email protected]>\n"
"Language-Team: Finnish <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion po/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tre\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2009-05-22 12:11+0300\n"
"POT-Creation-Date: 2009-09-18 15:41+0300\n"
"PO-Revision-Date: 2006-05-23 21:27+0100\n"
"Last-Translator: Daniel Nylander <[email protected]>\n"
"Language-Team: Swedish <[email protected]>\n"
Expand Down

0 comments on commit cdce45e

Please sign in to comment.