<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/tiny-rex/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/tiny-rex/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/tiny-rex/bugs/</id><updated>2012-02-09T00:23:10Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Spurious *p++ constructs in code</title><link href="https://sourceforge.net/p/tiny-rex/bugs/5/" rel="alternate"/><published>2012-02-09T00:23:10Z</published><updated>2012-02-09T00:23:10Z</updated><author><name>John Byrd</name><uri>https://sourceforge.net/u/johnwbyrd/</uri></author><id>https://sourceforge.net7af10c5fcd2f9063ef20ba5ffab455fee6ba09a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;On lines 510, 516, 522, 528, and 618 of trex.cc, there are several pointer increments of the form:&lt;/p&gt;
&lt;p&gt;*p++&lt;/p&gt;
&lt;p&gt;Where the value acquired by deferencing p is not used in any way.  It is likely that the author meant:&lt;/p&gt;
&lt;p&gt;p++ &lt;/p&gt;
&lt;p&gt;In all these places.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Incorrect matching behaviour</title><link href="https://sourceforge.net/p/tiny-rex/bugs/4/" rel="alternate"/><published>2011-12-28T12:54:42Z</published><updated>2011-12-28T12:54:42Z</updated><author><name>Maxim Zinal</name><uri>https://sourceforge.net/u/zlat0/</uri></author><id>https://sourceforge.net76c88c2f5c49da47a1c5dff08aca45c0f0b1c242</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;T-Rex 1.3 does not correctly handle the following simple test case:&lt;/p&gt;
&lt;p&gt;REGEXP                     STRING                     RESULT&lt;br /&gt;
^.*_C$                        AB_C                           match (correct)&lt;br /&gt;
^.*_C$                        A_B_C                         non-match (INCORRECT)&lt;br /&gt;
^.*_C$                        _C                               non-match (INCORRECT)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Patch for C++ on MS Visual Studio 2005</title><link href="https://sourceforge.net/p/tiny-rex/bugs/3/" rel="alternate"/><published>2011-02-25T17:32:21Z</published><updated>2011-02-25T17:32:21Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net81c363f9ce0958830281ff046b7b29abc70feac0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;MS Visual Studio 2005 doesn't seem too impressed with &lt;br /&gt;
extern "C" {&lt;br /&gt;
#include "trex.h"&lt;br /&gt;
}&lt;br /&gt;
and still compiles with C++ name mangling causing linker errors.&lt;/p&gt;
&lt;p&gt;The fix is to place wrap the entire trex.h conditionally with extern "C" { } when __cplusplus is defined. Both should work, but MS is broken, so, apply the attached patch if having trouble.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>unicode version not tested</title><link href="https://sourceforge.net/p/tiny-rex/bugs/2/" rel="alternate"/><published>2008-08-22T10:35:26Z</published><updated>2008-08-22T10:35:26Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net52e23b7ac1d1f27b9965307ce00d7e6f132ea4e2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The unicode version seems to not have been tested&lt;/p&gt;
&lt;p&gt;#ifdef _UINCODE             &amp;lt;==== _UNICODE&lt;br /&gt;
#define scisprint iswprint&lt;br /&gt;
#define scstrlen wcslen&lt;br /&gt;
#define scprintf wprintf&lt;br /&gt;
#define _SC(x) L(x)         &amp;lt;==== L##x&lt;br /&gt;
#else&lt;br /&gt;
#define scisprint isprint&lt;br /&gt;
#define scstrlen strlen&lt;br /&gt;
#define scprintf printf&lt;br /&gt;
#define _SC(x) (x)&lt;br /&gt;
#endif&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>empty capture expression</title><link href="https://sourceforge.net/p/tiny-rex/bugs/1/" rel="alternate"/><published>2007-08-28T11:03:06Z</published><updated>2007-08-28T11:03:06Z</updated><author><name>ancuta_onofrei</name><uri>https://sourceforge.net/u/userid-1776274/</uri></author><id>https://sourceforge.netc6410c85d56c97d7ea189f6263583dca69e42c16</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello! &lt;/p&gt;
&lt;p&gt;After downloading t-rex1.3 release i've discovered a bug: empty capture expression. &lt;/p&gt;
&lt;p&gt;Using test.c i've tested some (pattern, test string) pairs. &lt;br /&gt;
Here it is: &lt;/p&gt;
&lt;p&gt;For the pattern "abc([0-9]{2})(a)(b)" and the string to be tested "abc12ab". &lt;br /&gt;
The captures were:&lt;br /&gt;
[0]abc12ab &lt;br /&gt;
[1]12 &lt;br /&gt;
[2] &lt;br /&gt;
[3]b &lt;br /&gt;
match! 4 sub matches. &lt;/p&gt;
&lt;p&gt;For the pattern "abc([0-9]{1})(a)(b)" and test string "abc1ab" the captures were ok. &lt;/p&gt;
&lt;p&gt;It surprised me to see that release 1.0 was displaying the correct output: &lt;br /&gt;
[0]abc12ab &lt;br /&gt;
[1]12 &lt;br /&gt;
[2]a &lt;br /&gt;
[3]b &lt;br /&gt;
match! 4 sub matches &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>