Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
flywind
f140c92409
fix some warnings ( #16952 )
2021-02-08 13:50:15 +01:00
Timothee Cour
6e267d28b3
remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs ( #16861 )
...
* cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors
* simplify nimNoNilSeqs2
* simplify nimNoNilSeqs
* fixup
2021-01-29 14:30:24 +01:00
Juan Carlos
78a99587a4
Deprecate TaintedString ( #15423 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-01-15 18:56:38 -08:00
ihlec
5c23ba7545
fixed article duplication typos ( #16216 )
2020-12-02 09:15:29 +01:00
flywind
cbc793b30b
move tests to testament ( #16101 )
...
* move tests to testament
* minor
* fix random
* disable test random
2020-11-24 19:06:41 +01:00
Clyybber
01a62320f0
Fix #12410 ( #15685 )
...
* Fix #12410 , big thanks to @pmetras for this fix
* Add testcase
2020-10-23 03:26:50 +02:00
hlaaftana
fbc97e712a
move since from inclrtl to std/private/since ( #14188 )
...
* move since from inclrtl to std/private/since
* move since import in system below for HCR
2020-05-02 23:51:59 +02:00
hlaaftana
cd9af6b804
StringStream & more stdlib modules support for JS/NimScript ( #14095 )
...
* StringStream & more stdlib modules support for JS/NimScript
* change back pegs test in line with #14134
2020-04-28 19:44:52 +02:00
Christopher Dunn
caf30e7cb5
Faster readStr() ( #14099 )
...
* Faster readStr()
* https://github.com/nim-lang/Nim/issues/13857
* Add .since annotation and add to changelog
* Private, un-sinced proc for csource bootstrapping
2020-04-25 20:19:11 +02:00
Sam Wang
441cacf70f
Added fix for handling TaintedStrings in streams and httpclient ( #12969 )
...
* Added fix for taint mode in streams and httpclient
* Removed taintMode export from system.nim
2019-12-29 17:37:22 +01:00
Jjp137
93461aee34
Fix many broken links
...
Note that contrary to what docgen.rst currently says, the ids have
to match exactly or else most web browsers will not jump to the
intended symbol.
2019-10-22 17:59:12 -07:00
Andreas Rumpf
60d64d1aef
use system.move instead of system.shallowCopy if the GC mode requires it
2019-10-04 09:48:45 +02:00
narimiran
dcf3181bd1
[backport] run nimpretty on string stuff
2019-09-30 13:58:13 +02:00
Clyybber
16c39f9b2e
More of StringStream now works at compile time ( #12284 )
...
* readLine of StringStream now works at compile time
* Work for js backend only at compile time
* readAll now works at CT
* readAll works in js ct now
* Add test
2019-09-29 22:20:00 +02:00
Ray Imber
6e681b546f
fixes #9026 adds a readLineImpl to streams so that FileStreams can be fast ( #12234 )
2019-09-23 08:25:26 +02:00
Araq
4bbafb47dc
streams.nim: indentation change
2019-09-08 13:08:41 +02:00
jiro
ced0527ae3
streams: change error message of openFileStream ( #11438 ) [feature]
2019-06-10 21:00:55 +02:00
Miran
dc6a4b1d43
fixes #11049 , wrong streams.readBool and streams.peekBool ( #11284 )
2019-05-20 19:39:38 +02:00
jiro
ddc86d1b4b
streams: Update documentation, refs #10330 ( #11059 )
2019-04-29 11:32:02 +02:00
Araq
c3067e36bb
newruntime: progress
2019-04-01 16:51:18 +02:00
Arne Döring
1102b8ac6e
StringStream and parseJson, parseCfg, parseSql et al for the vm ( #10746 )
2019-02-28 22:57:57 +01:00
Araq
e457ccc7e1
make travis green
2019-02-06 17:42:38 +01:00
Araq
035134de42
make streams.close more forgiving in order to break less code out there
2019-02-06 15:51:21 +01:00
Oscar Nihlgård
ac8f6c57a1
Improve exception tracking in the streams module ( #10453 )
2019-01-28 17:18:07 +01:00
Araq
647066e378
make the stdlib work with the changed docgen
2019-01-11 22:17:43 +01:00
Notkea
11050d1104
make Stream.{read,peek} procs public ( #9806 )
...
Those are useful in generic code, and `proc write*[T](s: Stream, x: T)` was already public.
2019-01-09 08:06:40 -06:00
Andreas Rumpf
223e92b83a
stdlib: documenation updates, the exception names have been changed
2018-10-25 07:42:45 +02:00
Yasuhiro Horimoto
fe19670c52
Fixes #8841 ( #9101 )
...
Modify comments for readChar and peekChar to the same as the comment for them in the source code.
2018-10-09 19:30:02 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
Zahary Karadjov
7ab1aafc6b
stdlib work
2018-06-16 16:46:32 +03:00
data-man
cc9e94cd96
Hide readAll from js for tests passing
2018-05-25 08:48:09 +03:00
data-man
8149c07458
Fixes streams bugs
2018-05-25 07:46:48 +03:00
data-man
3fd48b7622
Fixes #7877
2018-05-25 06:59:54 +03:00
data-man
605b65487f
Fixes #7877
2018-05-25 06:58:07 +03:00
Araq
bbb0fd4eb7
remove deprecated stuff from the stdlib; introduce better deprecation warnings
2018-05-05 21:45:07 +02:00
Dmitry Atamanov
cf6d41b51d
Fixes #5281 ( #7489 )
2018-04-06 10:09:05 +02:00
twetzel59
9079517d71
Resolves #5588 : adds openFileStream proc that throws on failure ( #7282 )
2018-03-04 17:30:28 +01:00
indianpojken
12d7503f76
Update streams.nim
2017-10-16 00:52:07 +02:00
indianpojken
a16062bf91
Adds uintX variants to read/peek procs
2017-10-09 17:44:45 +02:00
Dmitry Atamanov
9427724a71
Fix ( #6093 )
2017-07-17 08:09:54 +02:00
Andreas Rumpf
0915399b50
fixes a long standing string steams bug that caused lexbase to misbehave
2017-06-06 18:03:44 +02:00
Jacek Sieka
0d45c17388
disable StringStream for JS (needs copyMem)
2016-06-08 22:00:13 +08:00
Federico Ceratto
d9cb85c2d8
Spellcheck
2016-02-29 11:25:51 +00:00
Yuriy Glukhov
df211b24fd
Dont convert string to cstring when writing to stream.
2016-01-21 11:41:52 +02:00
Radu Oana
4bba8e026a
use const instead of let
2015-09-30 09:49:22 -04:00
Radu Oana
374b65289c
Move magic numbers to const
2015-09-30 08:20:24 -04:00
Araq
985594cbb8
added streams.readAll proc
2015-09-29 19:30:43 +02:00
JamesP
ff9a3d39d7
add default file mode to newFileStream()
2015-09-26 08:18:42 +10:00
JamesP
eed1000252
add examples to top of module for stringStream and fileStream
2015-09-26 08:18:09 +10:00