Skip to content

Refactor argument handling around SegmentedStringView - #47

Merged
lbastigk merged 30 commits into
mainfrom
refactor/args/use-segmented-string-view
Oct 5, 2026
Merged

lbastigk merged 30 commits into
mainfrom
refactor/args/use-segmented-string-view

Conversation

@lbastigk

@lbastigk lbastigk commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Improve SegmentedStringView with:
    • size, at, front, and back accessors.
    • Safe copying, moving, and construction from vectors or pointer/size pairs.
    • Direct recombination without depending on StringHandler.
    • Compile-time named-argument lookup through OptionalFixedString.
  • Migrate all parsing APIs to use SegmentedStringView.
  • Simplify FFT named-argument parsing using getNamedSpannedArgument.
  • Improve OptionalFixedString constexpr support and add startsWith.
  • Fix floating-point equality to use std::numeric_limits<T>::epsilon(). (Bug was found while refactoring)
  • Update CMake dependency handling for RapidJSON and suppress unnecessary bundled tests under strict compiler settings. (Caused issues during compilation)

Testing

  • All tests passed. No new tests added, as the functionality stayed the same

…ier to refactor to the new SegmentedStringView type.
…ctors and improve integration with SegmentedStringView. Should be drop-in-compatible with std::span.
…alType for improved clarity and consistency in argument handling
…lement recombine methods directly for improved clarity and performance
…cks in recombineSubspan calls; if args is empty, the result is guaranteed to be an empty string anyways.
…streamline method signatures and improve clarity; unify size and segmentCount methods, and enhance copy functionality.
…wcall arguments; improve argument handling and clarity.
…mproving argument handling and consistency with existing parsing functionality.
…, replacing string_view with Utility::Args::SSV for improved argument handling and consistency.
…structors to accept vector of string_view, enhancing argument handling and consistency.
… retrieval in SegmentedStringView for safety
…ments and add a TODO for returning the last given value
@lbastigk
lbastigk merged commit 6768f61 into main Oct 5, 2026
2 checks passed
@lbastigk
lbastigk deleted the refactor/args/use-segmented-string-view branch October 5, 2026 17:39
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.

1 participant