Repository navigation
feat(diagnosticism): add nanoseconds_to_string for 0.4.0 - #31
Merged
Merged
Conversation
Port compact duration formatting with Python/Rust golden parity (`ns` / `µs` / `ms` / `s`), UTF-8 MICRO SIGN by default, `F_PLUS` / `F_ASCII_ONLY`, size-probe `cchBuffer==0` without errno, and `ERANGE` only on a non-zero undersize buffer: - C API **nanoseconds_to_string.h** / **.c** and C++ wrappers (**hpp**); - unit programs **test.unit.nanoseconds_to_string** and **test.unit.C++.nanoseconds_to_string**; - **example.nanoseconds_to_string** plus **EXAMPLES.md** / README coverage; - Components **since** badges (MAJOR.MINOR colour legend) and richer `calc_version_string` α/β/rc/final samples; align **example.version_string**; - ATF/SKIP `.sis` gold, tip runners, CI `--skip-interactive`; bump to **0.4.0**.
Replace (char)0xC2/(char)0xB5 initialisers with a "\xC2\xB5s" string literal so signed-char MSVC builds do not treat the high bytes as truncating casts.
mwsis
approved these changes
Oct 17, 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.
Port compact duration formatting with Python/Rust golden parity (
ns/µs/ms/s), UTF-8 MICRO SIGN by default,F_PLUS/F_ASCII_ONLY, size-probecchBuffer==0without errno, andERANGEonly on a non-zero undersize buffer:calc_version_stringα/β/rc/final samples; align example.version_string;.sisgold, tip runners, CI--skip-interactive; bump to 0.4.0.