Skip to content

feat(diagnosticism): add nanoseconds_to_string for 0.4.0 - #31

Merged
synesissoftware merged 2 commits into
masterfrom
ns2s
Oct 17, 2026
Merged

synesissoftware merged 2 commits into
masterfrom
ns2s

Conversation

@synesissoftware

Copy link
Copy Markdown
Owner

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.

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.

@GarthJL1965 GarthJL1965 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@synesissoftware
synesissoftware merged commit 56343ab into master Oct 17, 2026
35 checks passed
@synesissoftware
synesissoftware deleted the ns2s branch October 17, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants