|
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 |
2 | 2 |
|
3 | 3 | This library is the next generation of the [NoBuild](https://github.com/tsoding/nobuild) idea. |
4 | 4 |
|
@@ -446,6 +446,9 @@ NOBDEF void nob_sb_pad_align(Nob_String_Builder *sb, size_t size); |
446 | 446 | // Append a sized buffer to a string builder |
447 | 447 | #define nob_sb_append_buf(sb, buf, size) nob_da_append_many(sb, buf, size) |
448 | 448 |
|
| 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 | + |
449 | 452 | // Append a NULL-terminated string to a string builder |
450 | 453 | #define nob_sb_append_cstr(sb, cstr) \ |
451 | 454 | do { \ |
@@ -2912,6 +2915,7 @@ NOBDEF char *nob_temp_running_executable_path(void) |
2912 | 2915 | #define read_entire_file nob_read_entire_file |
2913 | 2916 | #define sb_appendf nob_sb_appendf |
2914 | 2917 | #define sb_append_buf nob_sb_append_buf |
| 2918 | + #define sb_append_sv nob_sb_append_sv |
2915 | 2919 | #define sb_append_cstr nob_sb_append_cstr |
2916 | 2920 | #define sb_append_null nob_sb_append_null |
2917 | 2921 | #define sb_append nob_sb_append |
@@ -3008,6 +3012,7 @@ NOBDEF char *nob_temp_running_executable_path(void) |
3008 | 3012 | /* |
3009 | 3013 | Revision history: |
3010 | 3014 |
|
| 3015 | + 3.7.0 (2026-03-20) Add nob_sb_append_sv() |
3011 | 3016 | 3.6.0 (2026-03-16) Add nob_sv_chop_suffix() |
3012 | 3017 | Deprecate nob_sv_end_with() |
3013 | 3018 | Add nob_sv_ends_with_cstr() instead of nob_sv_end_with() |
|
0 commit comments