Commit Graph

59 Commits

Author SHA1 Message Date
Anatoly Galiulin
279e4b0451 Fixes #5382 2017-02-13 13:35:40 +01:00
jlp765
704eae8495 re additions for buffer (cstring) RE matching (#5117)
* Replace expr with untyped

* Add buffer (cstring) related procs
Replace expr with untyped
Replace testing assert() procs with doAssert()

* make the string variants call the cstring variants in order to fight code size

* Remove redundant proc

* fix casting of cstring
add init of variables (identified by verbosity:3)

* Speed up - use pattern.e for exec()
inline some procs
2017-01-16 15:55:15 +01:00
Andreas Rumpf
3715a5ac91 Merge pull request #4814 from scriptum/rpg-pcre-jit
Enable JIT in PCRE to improve regular expressions performance
2016-10-24 19:07:30 +02:00
Araq
b8325181d1 EIO is called IOError now 2016-09-28 23:39:56 +02:00
Pavel Roschin
61755945d2 Enable JIT in PCRE to improve regular expressions performance 2016-09-23 01:13:06 +03:00
Andreas Rumpf
112cde69c8 de-deprecate re.nim 2016-06-13 12:18:44 +02:00
Andreas Rumpf
1a88c01f92 documentation build cleaned up 2016-05-31 03:04:45 +02:00
Araq
8be9e46403 udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
patrick dw
15e7fe787a renamed writeln to writeLine in lib 2015-06-19 01:02:22 -05:00
Flaviu Tamas
31514550d3 Revert "Base re off of nre"
This reverts commit dc60a51e15.
2015-06-10 17:14:20 -04:00
Flaviu Tamas
a707f8de65 Edit re and nre doc comments 2015-06-07 13:13:04 -04:00
Flaviu Tamas
8caa5cd292 Deprecate re 2015-06-07 13:13:04 -04:00
Flaviu Tamas
15ef227c48 Adjust re for nre's inclusive bounds 2015-06-07 13:13:04 -04:00
Oleh Prypin
dc60a51e15 Base re off of nre 2015-06-07 13:13:04 -04:00
Koala Zen
d620f566b2 Fix comment in re 2015-05-06 09:09:36 -07:00
Andreas Rumpf
1b80e2f296 Merge pull request #2506 from BlaXpirit/update-pcre
Update and improve PCRE wrapper
2015-04-21 08:58:28 +02:00
Andreas Rumpf
97cb0eb694 Merge pull request #2560 from BlaXpirit/re-nre-hint
Add a hint about NRE library to 're' module
2015-04-15 17:32:21 +02:00
Oleh Prypin
aa327efa98 Add a hint about NRE to 're' module 2015-04-14 23:26:53 +03:00
Oleh Prypin
ff25c1272f Deprecate constant regular expression strings 2015-04-14 22:30:21 +03:00
Oleh Prypin
fd8c6d0a32 Fix deprecation warnings in re 2015-04-10 16:12:54 +03:00
Andreas Rumpf
2b8f8bbf19 Merge pull request #2502 from def-/pcre
Fix infinite loop in re.findAll
2015-04-10 01:16:01 +02:00
def
69d38f82a5 Fix infinite loop in findAll 2015-04-09 17:22:44 +02:00
def
ce0c4a8b58 Clean up re module a bit 2015-04-09 17:22:33 +02:00
Joseph Turner
7ee6c72b51 Adds test case to is isMainModule block
Adds the test case that originally caused the bug, issue #2418.
2015-04-08 21:58:31 +01:00
Joseph Turner
13e5a9ea6c Fixes matching error #2418
Fixes the split iterator, the main problem was with the incrementation
of 'last'. Last was first incremented to the index of the first
character after the match, but was then incremented again at the
beginning of the while loop. This caused a problem if that character
after the first match, also matched the regular expression.
2015-04-08 17:00:28 +01:00
Simon Hafner
26749de828 re.match returns true on zero-length match #2354 2015-03-16 15:05:02 -05:00
Andreas Rumpf
1ca2db0273 Merge pull request #2260 from oderwat/upd-deprecated-repeats
Updates to remove deprecated repeatStr() and repeatChar() from all files.
2015-03-04 16:42:13 +01:00
Johanna Berewinkel
12e4a62b44 Fixed examples in the documentation of module re (proc replace and proc replacef) 2015-03-04 09:05:30 +01:00
Hans Raaf
58186f6c1d Replaced deprecated repeatChar() with repeat() or spaces(). 2015-03-04 03:30:43 +01:00
Araq
a6082b2a20 slightly better docs for re module 2015-02-01 11:58:40 +01:00
Araq
280fa9624c fixes #1496 2014-12-18 14:54:26 +01:00
Flaviu Tamas
218cb7587a re module returns nil on failed captures
- tests included
- news.txt updated
2014-10-29 17:54:43 -04:00
Araq
3ba34f1762 prettified re.nim; make some tests green 2014-08-31 13:46:27 +02:00
Araq
4523b29d7a Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Araq
dd806cafa0 distinguish between 'defined' and 'declared' 2014-08-11 20:38:28 +02:00
Araq
bf205fa85d case consistency part 6 2013-12-28 01:17:02 +01:00
Grzegorz Adam Hankiewicz
ec6e267351 Warns to not modify string findAll is iterating over. 2013-07-16 02:00:25 +02:00
Araq
b767f34b6b manyloc test should be green again 2013-06-04 00:58:43 +02:00
Araq
44c4b945eb pegs/re =~ warns about scope rule change; improved docs 2013-05-08 15:49:04 +02:00
Araq
eaeb26f003 re.nim compiles again 2013-05-01 00:28:11 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
5e15dec175 first steps to make templates hygienic 2012-08-20 01:13:13 +02:00
Dominik Picheta
b839e42e92 Both the re and pegs module's =~ templates can now be used simultaneously from the same module. 2012-07-21 11:21:41 +01:00
Araq
049de0ef66 'addSon' for types deprecated for 'int literal type' analysis (3) 2012-07-09 20:04:19 +02:00
Araq
4fbba0a65a changed integer promotion rules; breaks bootstrapping and lots of code 2012-07-08 21:03:47 +02:00
Araq
a36a856a2f fixes #113 2012-05-20 12:09:47 +02:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
0b4d5e45b9 tester checks exitcode; osproc additions; DLL fixes; taint mode fixes 2011-11-07 23:25:34 +01:00