Andreas Rumpf
d31fe7666a
Merge pull request #2818 from flaviut/add-nre
...
Add nre to stdlib
2015-06-12 00:13:19 +02:00
Flaviu Tamas
31514550d3
Revert "Base re off of nre"
...
This reverts commit dc60a51e15 .
2015-06-10 17:14:20 -04:00
Adam Strzelecki
8742907133
db: InstantRow and instantRows
...
It is drop-in replacement for Row and fastRows, however instantRows returns a
handle, not seq[string], so no Nim string is created until [] operator is
called on the given handle. Also there is a len() proc returning number of
columns in the handle.
In some situations, when we iterate through many rows, but later we just read
few columns this solution will be quicker than converting all column to Nim
seq[string] on each iteration.
2015-06-09 20:53:03 +02:00
Flaviu Tamas
5118c09f49
Fix ambiguous character literal
2015-06-07 13:13:05 -04:00
Flaviu Tamas
3bbbb1a682
Fix potential code bloat
2015-06-07 13:13:05 -04:00
Flaviu Tamas
ca81749f2a
Rename RegexException according to NEP1
2015-06-07 13:13:04 -04:00
Flaviu Tamas
a707f8de65
Edit re and nre doc comments
2015-06-07 13:13:04 -04:00
Flaviu Tamas
4fbd95549d
Clean up nre imports
2015-06-07 13:13:04 -04:00
Flaviu Tamas
38064d043a
Use stdlib's PCRE in nre
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
Flaviu Tamas
be64b8d0d4
Ensure no one uses internal module
2015-06-07 13:12:19 -04:00
Flaviu Tamas
90ed34db72
Merge branch 'devel' of https://github.com/Araq/Nim into add-nre
...
* 'devel' of https://github.com/Araq/Nim :
Fix #964 , fix #1384
Don't inspect typedescs
2015-06-07 13:12:18 -04:00
Adam Strzelecki
2dcaa75e2d
Fixup: Reverted TZipFileStream name change
...
This fixes broken b0469c11e3 that incompletely
reverted TZipFileStream name change.
2015-06-05 12:44:28 +02:00
Perelandric
b0469c11e3
Reverted TZipFileStream name change
2015-06-04 13:18:41 +02:00
pdw
ea03fc6886
lib/impure - Dropped 'T' from types
2015-06-04 13:17:09 +02:00
Flaviu Tamas
075a5e8440
Disable static building of PCRE
2015-05-26 19:20:00 -04:00
Flaviu Tamas
42db40813c
Clarify nre licencing
2015-05-26 19:18:34 -04:00
Flaviu Tamas
0527e1f9fe
Rearrange nre files
2015-05-26 19:14:04 -04:00
Flaviu Tamas
0d4aeec9be
Merge remote 'nre' into add-nre
...
* nre-proj/master: (132 commits)
Change to options module
Reweave readme
Better handle errors
Update documentation
Change flags to inline
Improve performance
Add tests for empty or non-empty match
Fix skipping an empty match at the end
Add longer flags
Fix getinfo overflows
Use docweave
Convert readme to RST
Fix result shadowing warning
Throw an exception when replacing with a nil value
Fix potential buffer overflow
Fix zero-length matches for multibyte characters
Make splitting an empty string give 1 empty result
Change endpos to inclusive
Change endpos default from -1 to int.high
Change capture upper bounds to inclusive
...
2015-05-26 19:05:43 -04:00
Koala Zen
d620f566b2
Fix comment in re
2015-05-06 09:09:36 -07:00
def
ffad2be237
Make zipfiles module work again
...
Also adds an example usage to the module
2015-05-03 14:22:49 +02:00
def
e5a186a419
Fix Termios wrapper
2015-04-24 19:41:12 +02:00
Oleh Prypin
32109a7867
Don't run non-test code when defined(testing)
2015-04-21 14:37:29 +03: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
Andreas Rumpf
d7c39dd801
Merge pull request #2357 from reactormonk/zero-length-match
...
re.match returns true on zero-length match #2354
2015-03-22 08:58:06 +01:00
Simon Hafner
26749de828
re.match returns true on zero-length match #2354
2015-03-16 15:05:02 -05:00
KeMeGe
171d51a08c
move database encoding options to setEncoding(), leave open() as it is
2015-03-16 13:53:38 +08:00
KeMeGe
ca8102b96d
Add character set options when opening DB connection
2015-03-14 15:21:38 +08:00
Dominik Picheta
d6c957e9b4
Removed osinfo_* modules.
...
They will be available under the 'osinfo' Nimble package.
2015-03-12 23:40:58 +00:00
Araq
1efb5174f2
fixes #2220 ; #2219 ; breaks #2022 ; for #2022 callsite needs to be used
2015-03-10 12:32:46 +01:00
Araq
419199bf9a
don't use conio.h on windows ( #2137 )
2015-03-08 14:45:06 +01: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
Andreas Rumpf
1d65cd277e
Merge pull request #2095 from def-/rdstdin-winfix
...
Fix readPasswordFromStdin for Windows
2015-02-12 16:15:50 +01:00
Hans Raaf
ceffdebebb
Corrected warnings about deprecated names
...
I got warning about deprecated names here. I also know that other names probably need to change (T/P prefixes) but I am unsure about the exact rules. I may do that later if you like.
2015-02-11 21:38:55 +01:00
def
d6d152e451
Add a new line after readPasswordFromStdin, add result
2015-02-09 08:06:56 +01:00
def
18fb3a391c
Fix readPasswordFromStdin for Windows
2015-02-08 22:53:49 +01:00
Araq
008b0f19bb
'nimsuggest' compiles again
2015-02-08 15:47:55 +01:00