Skip to content

Commit 9b91e4c

Browse files
authored
Merge pull request #224 from tsoding/next-release
Release v3.7.0 - Add nob_sb_append_sv()
2 parents 35190a4 + 789a135 commit 9b91e4c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

nob.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* nob - v3.6.0 - Public Domain - https://github.com/tsoding/nob.h
1+
/* nob - v3.7.0 - Public Domain - https://github.com/tsoding/nob.h
22
33
This library is the next generation of the [NoBuild](https://github.com/tsoding/nobuild) idea.
44
@@ -446,6 +446,9 @@ NOBDEF void nob_sb_pad_align(Nob_String_Builder *sb, size_t size);
446446
// Append a sized buffer to a string builder
447447
#define nob_sb_append_buf(sb, buf, size) nob_da_append_many(sb, buf, size)
448448

449+
// Append a string view to a string builder
450+
#define nob_sb_append_sv(sb, sv) nob_sb_append_buf((sb), (sv).data, (sv).count)
451+
449452
// Append a NULL-terminated string to a string builder
450453
#define nob_sb_append_cstr(sb, cstr) \
451454
do { \
@@ -2912,6 +2915,7 @@ NOBDEF char *nob_temp_running_executable_path(void)
29122915
#define read_entire_file nob_read_entire_file
29132916
#define sb_appendf nob_sb_appendf
29142917
#define sb_append_buf nob_sb_append_buf
2918+
#define sb_append_sv nob_sb_append_sv
29152919
#define sb_append_cstr nob_sb_append_cstr
29162920
#define sb_append_null nob_sb_append_null
29172921
#define sb_append nob_sb_append
@@ -3008,6 +3012,7 @@ NOBDEF char *nob_temp_running_executable_path(void)
30083012
/*
30093013
Revision history:
30103014
3015+
3.7.0 (2026-03-20) Add nob_sb_append_sv()
30113016
3.6.0 (2026-03-16) Add nob_sv_chop_suffix()
30123017
Deprecate nob_sv_end_with()
30133018
Add nob_sv_ends_with_cstr() instead of nob_sv_end_with()

0 commit comments

Comments
 (0)