aboutsummaryrefslogtreecommitdiff
path: root/std/buffer.zig
AgeCommit message (Collapse)Author
2018-07-16self-hosted: create tmp dir for .o files and emit .o file for fnAndrew Kelley
2018-07-16all integer sizes are available as primitivesAndrew Kelley
* fix wrong implicit cast for `@IntType` bit_count parameter. * fix incorrect docs for `@IntType` bit_count parameter. closes #1242 closes #745 closes #1240
2018-06-08Fix error handling in Buffer::fromOwnedSlice (#1082)isaachier
2018-06-06Fix const-ness of buffer in replaceContents method (#1065)isaachier
2018-06-04disallow single-item pointer indexingAndrew Kelley
add pointer arithmetic for unknown length pointer
2018-05-31use * for pointer type instead of &Andrew Kelley
See #770 To help automatically translate code, see the zig-fmt-pointer-reform-2 branch. This will convert all & into *. Due to the syntax ambiguity (which is why we are making this change), even address-of & will turn into *, so you'll have to manually fix thes instances. You will be guaranteed to get compile errors for them - expected 'type', found 'foo'
2018-05-13Merge branch 'master' into pointer-reformAndrew Kelley
2018-05-11update std.Buffer APIAndrew Kelley
* remove Buffer.appendFormat * remove Buffer.appendByte * remove Buffer.appendByteNTimes Added test to demo what to use instead of the above functions
2018-05-10partial conversion to post-fix pointer deref using zig fmtAndrew Kelley
2018-05-04Made container methods that can be const, constJimmi Holst Christensen
2018-01-31*WIP* error sets converting std libAndrew Kelley
2018-01-25syntax: functions require return type. remove `->`Andrew Kelley
The purpose of this is: * Only one way to do things * Changing a function with void return type to return a possible error becomes a 1 character change, subtly encouraging people to use errors. See #632 Here are some imperfect sed commands for performing this update: remove arrow: ``` sed -i 's/\(\bfn\b.*\)-> /\1/g' $(find . -name "*.zig") ``` add void: ``` sed -i 's/\(\bfn\b.*\))\s*{/\1) void {/g' $(find ../ -name "*.zig") ``` Some cleanup may be necessary, but this should do the bulk of the work.
2018-01-16Revert "Buffer.toSliceCopy"Josh Wolfe
This reverts commit c58f5a4742156c09e215533ae274f9f991e287a7.
2018-01-16Buffer.toSliceCopyJosh Wolfe
2018-01-09remove %% prefix operatorAndrew Kelley
See #632 closes #545 closes #510 this makes #651 higher priority
2018-01-07replace `%return` with `try`Andrew Kelley
See #632 better fits the convention of using keywords for control flow
2018-01-03fix self hosted compiler on windowsAndrew Kelley
2017-12-23move std/debug.zig to a subdirectoryAndrew Kelley
self hosted compiler parser tests do some fuzz testing
2017-12-23port most of main.cpp to self hosted compilerAndrew Kelley
2017-12-22explicitly return from blocksAndrew Kelley
instead of last statement being expression value closes #629
2017-12-10add self-hosted parsing and rendering to main testsAndrew Kelley
2017-11-29add Buffer.appendFormat()Josh Wolfe
2017-11-10add a std lib test for reading and writing filesAndrew Kelley
* fix fstat wrong on darwin * move std.debug.global_allocator to std.debug.global_allocator_state and make it private * add std.debug.global_allocator as a pointer (to upgrade your zig code remove the '&')
2017-10-31breaking change to std.io APIAndrew Kelley
* Merge io.InStream and io.OutStream into io.File * Introduce io.OutStream and io.InStream interfaces - io.File implements both of these * Move mem.IncrementingAllocator to heap.IncrementingAllocator Instead of: ``` %return std.io.stderr.printf("hello\n"); ``` now do: ``` std.debug.warn("hello\n"); ``` To print to stdout, see `io.getStdOut()`. * Rename std.ArrayList.resizeDown to std.ArrayList.shrink.
2017-10-14implement std.os.ChildProcess for windowsAndrew Kelley
2017-10-11implement command line argument parsing for windowsAndrew Kelley
See #302
2017-09-08fix std.Buffer.endsWithAndrew Kelley
thanks for the report by jean-dao closes #443
2017-05-19change slicing syntax from ... to ..Andrew Kelley
See #359
2017-05-04std: rename List to ArrayList and re-organize...Andrew Kelley
...the exports of std. closes #356
2017-04-21zig build system supports building a libraryAndrew Kelley
See #329 Supporting work: * move std.cstr.Buffer0 to std.buffer.Buffer * add build.zig to example/shared_library/ and add an automated test for it * add std.list.List.resizeDown * improve std.os.makePath - no longer recursive - takes into account . and .. * add std.os.path.isAbsolute * add std.os.path.resolve * reimplement std.os.path.dirname - no longer requires an allocator - handles edge cases correctly