summary refs log tree commit diff stats
path: root/lib/system/widestrs.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #18550 (#18553)Andreas Rumpf2021-07-211-1/+1
| | | | | * fixes #18550 * update the manual to reflect reality
* Rename `=` to `=copy` in stdlib (#17781)Clyybber2021-04-191-1/+1
|
* use single backtick (#17133)flywind2021-02-211-1/+1
|
* better getTempDir (#16914)flywind2021-02-151-2/+2
| | | | | | | | | | | * better getTempDir * fix comments * better * address comments * use uint32
* add widestrs.newWideCString overload (#16860)flywind2021-02-011-0/+3
|
* fix #15663 (#15839) [backport:1.4]flywind2020-11-051-0/+7
|
* arc allocation method aligned (#15588)cooldome2020-10-191-2/+8
| | | | | * progress * fix typo
* Move `wasMoved` out of `=destroy`Clyybber2020-07-101-1/+0
|
* fix #14750, don't allocate too much in newWideCString (#14773)Miran2020-06-231-3/+2
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-0/+1
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* nimv2 widestring indexing (#13279)cooldome2020-01-281-2/+2
|
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-231-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-171-1/+1
| | | | | | | | | | | | | * first implementation of the =trace and =dispose hooks for the cycle collector * a cycle collector for ARC: progress * manual: the .acyclic pragma is a thing once again * gcbench: adaptations for --gc:arc * enable valgrind tests for the strutils tests * testament: better valgrind support * ARC refactoring: growable jumpstacks * ARC cycle detector: non-recursive algorithm * moved and renamed core/ files back to system/ * refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
* fixes #11807 (#11900)Andreas Rumpf2019-08-071-6/+51
| | | | | * fixes #11807 * make tests green again
* code cleanup (#10874)Arne Döring2019-03-281-11/+14
|
* system refactorings (#10559)Andreas Rumpf2019-02-061-2/+2
| | | | | | | | * move IO subsystem into its own module; refs #10385 * make standalone test compile again * make C++ examples compile again * make more tests green * make sysAssert and gcAssert work again
* more progress on destructor based stringsAndreas Rumpf2018-07-131-2/+1
|
* remove ArrayDummySize with unchecked arrays (#5818)Jacek Sieka2017-08-281-1/+1
|
* fixes #6131Andreas Rumpf2017-07-221-1/+1
|
* system/unicode: check for buffer overflows; refs #5284Araq2017-02-081-18/+31
|
* system.nim: don't use deprecated symbols/constructsAraq2017-02-081-2/+2
|
* Fix newWideCString(cstring, int)Dmitry Polienko2016-07-191-3/+3
|
* fix types of ansi_c/sysio to more closely match C ABIJacek Sieka2016-06-051-6/+1
| | | | | also fixes some instances of using C library functions when there are nim alternatives available
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-3/+3
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* fixed UTF-16 to UTF-8 conversion in widestrs.nimjangko2015-08-211-6/+20
| | | | | | the source of problem for issue #3228 also add test for entire range of valid UTF-16 and test for invalid UTF-16 sequence
* fixed UTF-16 to UTF-8 conversion in widestrs.nimjangko2015-08-201-7/+7
| | | | | the source of problem for issue #3228 also add test for entire range of valid UTF-16
* fixed UTF-16 to UTF-8 conversion in widestrs.nimjangko2015-08-201-26/+18
| | | | the source of problem for issue #3228
* lib/system/g-w - Dropped 'T' from typespdw2015-06-041-7/+8
|
* the big renamefest: first stepsAraq2014-08-221-2/+2
|
* distinguish between 'defined' and 'declared'Araq2014-08-111-2/+2
|
* Downgrades public module comments to private level.Grzegorz Adam Hankiewicz2014-08-051-2/+2
| | | | | This avoids the weird concatenation in the final system.html file which doesn't make any sense.
* case consistency part 4Araq2013-12-271-148/+148
|
* tcnstseq works againAraq2013-12-231-0/+3
|
* new VM: some progress for the FFI supportAraq2013-12-231-1/+2
|
* GC'ed wide strings for windowsAraq2013-05-201-235/+124
|
* win64 is a supported target; bugfix: nimrod c -r on windows; stdlib uses ↵Araq2012-03-041-0/+260
wide char versions of the WinAPI