summary refs log tree commit diff stats
path: root/lib/pure/streams.nim
Commit message (Collapse)AuthorAgeFilesLines
* streams: implement readStr for VM, document VM limitations (#24058)metagn2024-09-041-3/+12
| | | | | | | | | | | fixes #24054 `readData` is not implemented for the VM as mentioned in the issue, but `readDataStr` is, so that is used for `readStr` instead on the VM. We could also just use it in general since it falls back to `readData` anyway but it's kept the same otherwise for now. Also where and why streams in general don't work in VM is now documented on the top level `streams` module documentation.
* complete std prefixes for stdlib (#22887)ringabout2023-10-301-1/+1
| | | | follow up https://github.com/nim-lang/Nim/pull/22851 follow up https://github.com/nim-lang/Nim/pull/22873
* Markdown code blocks migration part 8 (#22478)Andrey Makarov2023-08-151-44/+44
|
* replace `doAssert false` with `raiseAssert` in lib, which works better with ↵ringabout2023-08-111-1/+1
| | | | strictdefs (#22458)
* Refines raises list in osproc (#21323)ringabout2023-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Remove Exception from raises in closeImpl * Update osproc.nim * refine errors * add ValueError * cast raises * refactor raises lists * Update lib/pure/osproc.nim * Update lib/pure/osproc.nim --------- Co-authored-by: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Export FileMode (#20726)Antonis Geralis2022-11-021-0/+1
|
* allow deferred close of nil stream (#20706)n5m2022-10-311-4/+14
| | | | | * allow deferred close of nil stream * improve example
* [Orc] fixes "streams.readDataStr segafaults" when accepting a string ↵flywind2022-07-151-0/+5
| | | | | literal (#20019) [backport] fixes streams.readDataStr accept a string literal
* Really fix StringStream with ARC at compile-time, improve streams test (#19739)Danil Yarantsev2022-04-251-2/+8
| | | | | * Fix compile-time StringStream with ARC * make readDataStr work with ARC, improve test
* Fix string stream crashing when created on nimscript due to last fix (#19717)Jason Beetham2022-04-141-1/+1
|
* StringStreams no longer errors when intialized with literals on arc/orc (#19708)Jason Beetham2022-04-111-0/+2
|
* move io out of system (#19442)flywind2022-02-021-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
* add sink and lent annotations for xmltree and streams (#18037)Antonis Geralis2021-05-181-1/+1
|
* fix #17888: remove undefined behavior for posix.open; fix ↵Timothee Cour2021-04-291-0/+1
| | | | | | | | | | | tempfiles.createTempFile (#17889) * fix #17888: remove undefined behavior for posix.open; fix tempfiles.createTempFile * fix for tests/async/tasyncfile.nim * hide mode for now * add notice regarding stability
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-281-5/+5
|
* fix some warnings (#16952)flywind2021-02-081-2/+2
|
* remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)Timothee Cour2021-01-291-8/+2
| | | | | | | | | * cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors * simplify nimNoNilSeqs2 * simplify nimNoNilSeqs * fixup
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-43/+35
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fixed article duplication typos (#16216)ihlec2020-12-021-1/+1
|
* move tests to testament (#16101)flywind2020-11-241-14/+0
| | | | | | | | | * move tests to testament * minor * fix random * disable test random
* Fix #12410 (#15685)Clyybber2020-10-231-1/+1
| | | | | * Fix #12410, big thanks to @pmetras for this fix * Add testcase
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-1/+1
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* StringStream & more stdlib modules support for JS/NimScript (#14095)hlaaftana2020-04-281-189/+287
| | | | | * StringStream & more stdlib modules support for JS/NimScript * change back pegs test in line with #14134
* Faster readStr() (#14099)Christopher Dunn2020-04-251-6/+22
| | | | | | | | | * Faster readStr() * https://github.com/nim-lang/Nim/issues/13857 * Add .since annotation and add to changelog * Private, un-sinced proc for csource bootstrapping
* Added fix for handling TaintedStrings in streams and httpclient (#12969)Sam Wang2019-12-291-2/+10
| | | | | | * Added fix for taint mode in streams and httpclient * Removed taintMode export from system.nim
* Fix many broken linksJjp1372019-10-221-1/+1
| | | | | | 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.
* use system.move instead of system.shallowCopy if the GC mode requires itAndreas Rumpf2019-10-041-4/+2
|
* [backport] run nimpretty on string stuffnarimiran2019-09-301-7/+9
|
* More of StringStream now works at compile time (#12284)Clyybber2019-09-291-28/+103
| | | | | | | | * 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
* fixes #9026 adds a readLineImpl to streams so that FileStreams can be fast ↵Ray Imber2019-09-231-13/+24
| | | | (#12234)
* streams.nim: indentation changeAraq2019-09-081-1/+1
|
* streams: change error message of `openFileStream` (#11438) [feature]jiro2019-06-101-1/+1
|
* fixes #11049, wrong streams.readBool and streams.peekBool (#11284)Miran2019-05-201-4/+16
|
* streams: Update documentation, refs #10330 (#11059)jiro2019-04-291-81/+832
|
* newruntime: progressAraq2019-04-011-7/+7
|
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-1/+32
|
* make travis greenAraq2019-02-061-1/+1
|
* make streams.close more forgiving in order to break less code out thereAraq2019-02-061-1/+1
|
* Improve exception tracking in the streams module (#10453)Oscar Nihlgård2019-01-281-21/+16
|
* make the stdlib work with the changed docgenAraq2019-01-111-1/+1
|
* make Stream.{read,peek} procs public (#9806)Notkea2019-01-091-2/+2
| | | Those are useful in generic code, and `proc write*[T](s: Stream, x: T)` was already public.
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-28/+28
|
* Fixes #8841 (#9101)Yasuhiro Horimoto2018-10-091-2/+2
| | | Modify comments for readChar and peekChar to the same as the comment for them in the source code.
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-1/+4
|
* stdlib workZahary Karadjov2018-06-161-2/+14
|
* Hide readAll from js for tests passingdata-man2018-05-251-13/+14
|
* Fixes streams bugsdata-man2018-05-251-3/+3
|
* Fixes #7877data-man2018-05-251-1/+0
|
* Fixes #7877data-man2018-05-251-6/+8
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-31/+0
|