Repository navigation
Conversation
Add STLSoft_C_string_trim_{left,right,all}[_chars]_a() over
stlsoft_C_string_slice_m_t, with make-slice helpers and unit tests;
- the default trim set matches C++ trim (" \n\r\t\v");
- every zero-length result is the null slice {0, NULL};
- correct the copy_functions.h namespace-endif comment.
* 1.11.2 version elements * fix(stlsoft): silence GCC 12+ free-nonheap warning in auto_buffer Mark `deallocate_()` `STLSOFT_NOINLINE` on GCC 12+ so `operator delete` stays out of the inlined destructor, and suppress `-Wfree-nonheap-object` around the external-buffer `delete`, which GCC misattributes to the internal buffer. * test(stlsoft): compare a full sun_path with a counted string A 108-character path fills Linux sun_path and is not NUL-terminated. TEST_MS_EQ then read past the array. Use TEST_MS_EQ_N when the path length is the capacity, as the 104-character case already does. --------- Co-authored-by: Matt Wilson <matthew.wilson.synesis@gmail.com>
* refactor(unit-tests): applying xTests' null macros * 1.11.2-alpha1 * `auto_buffer` extraneous warning (synesissoftware#74) * 1.11.2 version elements * fix(stlsoft): silence GCC 12+ free-nonheap warning in auto_buffer Mark `deallocate_()` `STLSOFT_NOINLINE` on GCC 12+ so `operator delete` stays out of the inlined destructor, and suppress `-Wfree-nonheap-object` around the external-buffer `delete`, which GCC misattributes to the internal buffer. * test(stlsoft): compare a full sun_path with a counted string A 108-character path fills Linux sun_path and is not NUL-terminated. TEST_MS_EQ then read past the array. Use TEST_MS_EQ_N when the path length is the capacity, as the 104-character case already does. --------- Co-authored-by: Matt Wilson <matthew.wilson.synesis@gmail.com> --------- Co-authored-by: synesissoftware <matthew@synesis.com.au>
…roughout the repo (synesissoftware#75) * `auto_buffer` extraneous warning (synesissoftware#74) * 1.11.2 version elements * fix(stlsoft): silence GCC 12+ free-nonheap warning in auto_buffer Mark `deallocate_()` `STLSOFT_NOINLINE` on GCC 12+ so `operator delete` stays out of the inlined destructor, and suppress `-Wfree-nonheap-object` around the external-buffer `delete`, which GCC misattributes to the internal buffer. * test(stlsoft): compare a full sun_path with a counted string A 108-character path fills Linux sun_path and is not NUL-terminated. TEST_MS_EQ then read past the array. Use TEST_MS_EQ_N when the path length is the capacity, as the 104-character case already does. --------- Co-authored-by: Matt Wilson <matthew.wilson.synesis@gmail.com> * chore(nomenclature): standardise use of alpha/beta/rc nomenclature throughout the repo --------- Co-authored-by: Matt Wilson <matthew.wilson.synesis@gmail.com>
* test(stlsoft): add exhaustive c_string unit tests Cover strnchr, strnicmp, strnistrn, strnpbrkn, strnrchr, and strnstrn, plus each wchar analogue, with C and C++ programs. strnistrn stays on the current inner loop, so the first-character false-match cases fail; * fix(stlsoft): compare each strnistrn character, not only the first The inner loops of stlsoft_C_strnistrn() and stlsoft_C_wcsnistrn() compared *s1 with *s2 on every index, so a first-character hit was treated as a full match. Index the pair, and fold the wide form with towupper. * chore(automated tests): namespace commenting * fix(stlsoft): quiet MSVC C4310 Store high-bit c_string test bytes in unsigned char so MSVC does not warn C4310. --------- Co-authored-by: Matt Wilson <matthew.wilson.synesis@gmail.com>
synesissoftware
requested changes
Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.