ringabout
2df633180a
enable experimental:strictDefs ( #24225 )
2024-11-23 22:01:39 +01:00
ringabout
95a7695810
documentation and comments use HTTPS when possible ( #24264 )
2024-10-08 21:50:35 +02:00
ringabout
4d11d0619d
complete std prefixes for stdlib ( #22887 )
...
follow up https://github.com/nim-lang/Nim/pull/22851
follow up https://github.com/nim-lang/Nim/pull/22873
2023-10-30 17:03:04 +01:00
ringabout
3f7e1d7daa
replace doAssert false with raiseAssert in lib, which works better with strictdefs ( #22458 )
2023-08-11 18:24:46 +02:00
ringabout
a345cde26e
allow destructors to accept non var parameters; deprecate proc =destroy(x: var T) ( #22130 )
...
* make destructors accept non var parameters
* define nimAllowNonVarDestructor
* add a test case and a changelog
* update documentation and error messages
* deprecate destructors taking 'var T'
2023-06-21 08:51:03 +02:00
ringabout
ac5a36c0a4
re and nre now link to regex and tinyre ( #21161 )
2022-12-23 10:50:07 -05:00
Andrey Makarov
3eef0491a8
fix a few "broken link" warnings ( #20837 )
2022-11-14 15:43:29 +08:00
ringabout
3d2f0e2c7c
make more standard libraries work with nimPreviewSlimSystem ( #20343 )
...
* make more standard libraries work with `nimPreviewSlimSystem`
* typo
* part two
* Delete specutils.nim
* fixes more tests
* more fixes
* fixes tests
* fixes three more tests
* add formatfloat import
* fix
* last
2022-09-27 20:06:23 +02:00
Carlo Capocasa
0ff4b2ba7e
fix bug #14468 zero-width split ( #19248 )
2021-12-13 07:29:22 +01:00
Kaushal Modi
12d2901e89
libs/impore/re: Add note about the requirement of matches to be pre-allocated ( #19081 )
...
Add few runnableExamples for `findBounds` for clarity.
Fixes https://github.com/nim-lang/Nim/issues/18775
2021-11-02 09:12:54 +01:00
sivchari
980a9ed523
fix comment ( #18473 )
2021-07-11 02:19:20 -04:00
Andrey Makarov
969cb97c0a
PCRE, nimgrep: add limit for buffer size ( #18280 )
2021-06-17 08:19:52 +02:00
flywind
6b97889f44
fix #9437(fix re.replace wrong behaviour) ( #17546 )
...
* fix nim js cmp fails at CT
* fix
2021-06-10 18:26:58 +02:00
flywind
c0e8199acc
[std/re] fix findBounds and find procs ( #18028 )
...
* [std/re] make interface consistent
* tiny
* revert
2021-05-31 23:28:22 +02:00
flywind
65f6b66820
Revert "[std/re]fix terrible and strange interface" ( #18027 )
...
This reverts commit c218f2ba0b .
2021-05-16 11:10:41 +08:00
flywind
c218f2ba0b
[std/re]fix terrible and strange interface
2021-05-16 10:39:52 +08:00
Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
flywind
a1a18cfe66
use single backtick ( #17115 )
2021-02-20 03:20:29 -08:00
Timothee Cour
b9994925f5
remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ( #16918 )
...
* nimNoArrayToCstringConversion deadcode
* nimbabel deadcode
* nimHasalignOf deadcode
* nimvarargstyped deadcode
* nimhygiene deadcode
* nimNewTypedesc deadcode
* nimlocks deadcode
* nimHasCppDefine deadcode
* nimHasRunnableExamples deadcode
* nimHasNilChecks deadcode
* nimSymKind deadcode
* minor macros refactoring
* nimVmEqIdent deadcode
* nimNoNil deadcode
* nimNoZeroTerminator deadcode
* nimHasSymOwnerInMacro deadcode
* nimVmExportFixed deadcode
* nimNewRuntime deadcode
* nimAshr deadcode
* nimUncheckedArrayTyp deadcode
* nimHasTypeof deadcode
* nimErrorProcCanHaveBody deadcode
* nimHasHotCodeReloading deadcode
* nimHasSignatureHashInMacro deadcode
* nimHasDefault deadcode
* nimMacrosSizealignof deadcode
2021-02-17 09:32:36 +01:00
flywind
f140c92409
fix some warnings ( #16952 )
2021-02-08 13:50:15 +01:00
narimiran
46aacf917f
Fix style inconsistencies due to the previous commit
2020-07-06 11:24:43 +02:00
narimiran
ebaf603c84
revert 0944b0f4
2020-07-06 10:55:51 +02:00
Juan Carlos
4f6acf24ff
Add jsre ( #14870 )
2020-07-03 20:13:10 +02:00
Miran
e7f280bd26
Remove deprecated stuff from stdlib ( #14699 )
...
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
2020-06-17 15:25:02 +02:00
Timothee Cour
17d08ff71c
close #14284 document semantics for start for re,nre; improve examples ( #14483 )
2020-05-28 20:43:36 +02:00
Kaushal Modi
a2a3fa1039
Fail quickly if re or nre module is attempted to be compiled with js [backport] ( #14341 )
...
Fixes https://github.com/nim-lang/Nim/issues/14338 .
2020-05-14 07:27:57 +02:00
whiterock
ef9fb39cdf
added note to re constructor regarding performance ( #13224 )
...
Since I was new to regex I did not know that there is a compilation going on with ``re"[abc]"`` constructor and so I followed the other examples in the docs blindly, that is I just put the constructor directly in the arguments of match, find, etc., which was inside a loop and then wondered why my performance was so bad. Of course putting it outside the loop made it vastly more performant. People like me would benefit from the small note I added I would think :)
2020-01-22 16:02:16 +01:00
Araq
bafb4f119c
ported re.nim to ARC
2019-12-24 17:33:27 +01:00
3n-k1
0944b0f441
[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687 . ( #12754 )
2019-11-28 08:32:11 +01:00
LemonBoy
7d217a71d3
Render deprecated pragmas ( #8886 )
...
* Render deprecated pragmas
* fix the expected html
* clean up the documentation regarding deprecations
* fix typo
* fix system.nim
* fix random
2019-06-03 10:15:20 +02:00
Miran
9d4190a5cc
fixes #11139 (re.nim memory leak) ( #11265 )
...
Use the same PCRE function for freeing up the memory as nre.nim does.
2019-05-16 21:06:31 +02:00
Araq
eeae88d81e
live with the hacks, PCRE's design is crap
2019-03-19 15:49:24 +01:00
Andreas Rumpf
cd9caf09d1
pcre.nim: added pcre_free and removed hacks in nre and re.nim
2019-03-19 12:48:54 +01:00
Kobi
dd422bfb0f
fix replacef typo in example
2019-02-13 23:30:14 +01:00
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Denis Lisovik
8b4a910c91
fix split proc ignored maxsplit argument. Proc split didn't pass maxsplit argument to split iterator
2018-11-11 18:40:43 +03:00
Andreas Rumpf
8955470644
fixes #9306 properly, fixes #9306
2018-10-14 11:19:51 +02:00
Josh Goebel
38454c6951
Fix type in docs ( #9362 )
2018-10-14 08:44:36 +02:00
Araq
8ab6fa1be2
fixes #9306
2018-10-11 16:15:35 +02:00
Araq
18859cbaa1
make nimweb compile again
2018-08-14 01:36:02 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
Kaushal Modi
0321ea36c9
Fix typo: PRCE -> PCRE
2018-06-05 12:58:23 -04:00
Andreas Rumpf
e2094bc6f4
make re.split consistent with strutils.split and other programming languages; refs #7278
2018-03-05 21:39:13 +01:00
Araq
0c28dcd9e2
Cleanup docs about re.nim
2018-03-05 13:20:49 +01:00
Araq
01304db5b2
re.nim: removed deprecated symbols
2017-11-28 01:57:44 +01:00
Araq
d0d02c2fe3
re.nim: Make tests green and deprecate 'parallelReplace'; it should be 'multiReplace' for consistency with strutils.nim
2017-11-28 01:57:44 +01:00
Dominik Picheta
aa96343f1d
Remove reExtended from re constructor. Fixes #5627 . ( #6514 )
...
* Remove reExtended from re constructor. Fixes #5627 .
* Implement `rex` procedure as requested by @Araq.
2017-10-20 21:43:34 +02:00
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