0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Andrew Kelley d569e37cb5 std.fs.path.extension: different behavior for ending dot
extension("a.") now returns "." instead of "".

This matches both Python and Node.js standard library behavior as well
as my personal opinion on how this function should be defined.

Apologies for missing this in the code review.
History 2020-12-11 18:20:57 -07:00
..
atomic std: Validate the atomic ordering parameter in atomic.Int 2020-12-10 09:23:48 +01:00
build remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
c small fixes and zig fmt 2020-12-09 13:54:26 +02:00
compress small fixes and zig fmt 2020-12-09 13:54:26 +02:00
crypto std/crypto - edwards25519 precomp: prefer doublings over adds 2020-11-25 15:37:43 -08:00
event linuxWaitFd: make NetworkSubsystemFailed error unreachable 2020-11-16 14:03:19 -08:00
fmt std: Implement more useful approxEq semantics 2020-11-05 16:08:49 +01:00
fs std.fs.path.extension: different behavior for ending dot 2020-12-11 18:20:57 -07:00
hash Change seed for Murmur2_64 from u32 to u64 2020-11-18 17:05:38 -08:00
heap small fixes and zig fmt 2020-12-09 13:54:26 +02:00
io Make zig fmt happy with multiline arguments for readAllArrayListAligned 2020-12-03 10:24:49 +00:00
json std.json: unreachable -> expect in tests 2020-12-08 19:16:17 -05:00
math std: explicitly cast indices to usize 2020-12-09 16:48:41 +01:00
mem use Allocator.allocSentinel now that the stage1 bug is fixed 2020-09-29 12:06:35 -07:00
meta std: introduce meta.traits.is{Integral,Float} 2020-12-10 09:23:48 +01:00
net More fixups for Windows targets 2020-10-28 10:03:23 +01:00
os Merge pull request #7369 from jorangreef/io_uring_timeout 2020-12-10 15:45:38 -05:00
rand add license header to all std lib files 2020-08-20 16:07:04 -04:00
special Added global-cache argument to build system + removed extra args. 2020-12-10 18:06:19 -05:00
target Use correct names for generic SPARC targets 2020-10-24 20:03:41 +07:00
testing add license header to all std lib files 2020-08-20 16:07:04 -04:00
time add license header to all std lib files 2020-08-20 16:07:04 -04:00
unicode std: Make utf8CountCodepoints much faster 2020-11-05 16:10:34 +01:00
valgrind add license header to all std lib files 2020-08-20 16:07:04 -04:00
zig zig fmt: Fix alignment of initializer elements 2020-12-11 02:34:44 -05:00
array_hash_map.zig std: Re-enable ArrayHashMap test for mips targets 2020-11-02 11:46:07 +01:00
array_list.zig make ArrayList.span into a compile error 2020-11-07 11:15:47 +00:00
array_list_sentineled.zig remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
ascii.zig std: Add a few helpers for matching ascii strings (#7300) 2020-12-04 15:27:28 -05:00
atomic.zig std: add std.atomic.Bool 2020-11-19 00:58:13 +11:00
auto_reset_event.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
base64.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
buf_map.zig fix memory leak in BufMap 2020-11-30 10:40:16 -08:00
buf_set.zig hash_map: rename to ArrayHashMap and add new HashMap implementation 2020-09-02 00:17:50 +02:00
build.zig Added global-cache argument to build system + removed extra args. 2020-12-10 18:06:19 -05:00
builtin.zig stage1: Initial implementation of @extern 2020-11-20 22:32:43 +01:00
c.zig std.c: freeing null is a no-op 2020-12-07 16:33:27 -05:00
child_process.zig std: Fix file locking logic for BSD targets 2020-11-23 18:00:05 +01:00
coff.zig remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
compress.zig std: Add a gzip decoder 2020-09-11 20:02:41 -04:00
comptime_string_map.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
crypto.zig std/crypto: add ISAPv2 (ISAP-A-128a) AEAD 2020-11-16 16:02:19 -08:00
cstr.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
debug.zig makes the implementation public 2020-12-03 15:14:59 -08:00
dwarf.zig Merge pull request #7005 from jshholland/deprecate-span 2020-11-18 13:14:48 +02:00
dwarf_bits.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
dynamic_library.zig Fix WindowsDynLib.openW trying to strip the \??\ prefix when it does not exist 2020-11-30 11:12:33 -08:00
elf.zig Merge branch 'piepiepie' of https://github.com/LemonBoy/zig into pie 2020-11-22 12:39:44 -07:00
event.zig std/event: Fix import path for WaitGroup 2020-12-03 12:43:55 -08:00
fifo.zig Merge pull request #6434 from daurnimator/fifo.pump 2020-11-18 16:35:13 +02:00
fmt.zig std: Implement named arguments & runtime width/precision 2020-11-20 08:36:47 +01:00
fs.zig fix the tinyest typo 2020-12-02 19:08:25 +02:00
hash.zig Promote hash/siphash to crypto/siphash 2020-08-22 02:47:50 -04:00
hash_map.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
heap.zig add std.heap.raw_c_allocator 2020-11-18 22:09:34 -07:00
io.zig zig fmt: Remove dynamic stack from auto-indenting-stream 2020-08-31 23:39:50 +10:00
json.zig make std.json.unescapeString pub 2020-12-10 21:19:41 +02:00
leb128.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
linked_list.zig std: remove init functions from linked list nodes 2020-08-22 02:47:39 -04:00
log.zig fix another round of regressions in this branch 2020-09-26 21:03:38 -07:00
macho.zig macho: cleanup export trie generation and parsing 2020-12-09 20:36:58 +01:00
math.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
mem.zig Merge pull request #7084 from xackus/mem-volatile 2020-11-18 13:06:35 +02:00
meta.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
mutex.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
net.zig Localhost is special (#6955) 2020-12-01 19:13:59 -05:00
once.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
os.zig std: Fix misuse of atomic.Int 2020-12-10 09:23:48 +01:00
packed_int_array.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
pdb.zig remove deprecated uses of ArrayList.span 2020-11-07 11:15:44 +00:00
priority_queue.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
process.zig Switch to using unicode when parsing the command line on windows (#7241) 2020-11-30 13:47:01 -05:00
progress.zig Introduces a space after the ellipsis for test and progress. 2020-09-03 18:07:30 -04:00
rand.zig Add builtin.Signedness, use it instead of is_signed 2020-11-19 18:59:21 +02:00
reset_event.zig std: Disable _only_ the flaky part of the ResetEvent test 2020-11-19 15:46:20 -07:00
SemanticVersion.zig std: Introduce SemanticVersion data structure 2020-11-06 15:07:48 -05:00
sort.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
spinlock.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
start.zig make start code more versatile 2020-11-24 19:51:24 -07:00
start_windows_tls.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
std.zig move std.SegmentedList to the std-lib-orphanage 2020-11-30 13:04:26 -07:00
target.zig stage2: Use correct ppc generic feature set 2020-11-20 08:38:10 +01:00
testing.zig add std.testing.expectStringEndsWith 2020-12-08 21:59:24 -07:00
thread.zig std: make the use of pthread_join POSIX-compliant 2020-12-02 10:59:35 +01:00
time.zig std: Fix early overflow in time calculation 2020-11-01 17:06:14 -05:00
unicode.zig Switch to using unicode when parsing the command line on windows (#7241) 2020-11-30 13:47:01 -05:00
valgrind.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
zig.zig std: remove renderStringLiteral in favor of std.fmt specifier 2020-10-17 23:20:38 +03:00