Skip to content

Conversation

@caspervg
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors the RUL0 parser to eliminate sscanf usage and replace it with modern C++ parsing utilities using std::from_chars. The changes also introduce case-insensitive key comparisons for INI file parsing and add comment-stripping functionality.

Key changes:

  • Replaced sscanf calls with custom parsing functions (ParseIntAuto, ParseInt, ParseFloat, ParseHex, ParseIntPair)
  • Implemented case-insensitive string comparison for INI key matching
  • Added support for inline comments in piece value parsing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/RUL0.h Added kCommentPrefix constant and corrected key names from "Id" to "ID" suffix
src/RUL0.cpp Replaced sscanf with std::from_chars-based parsers, added case-insensitive comparisons, improved string handling
CMakeLists.txt Added INI_MAX_LINE=1000 compile definition for the library

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@caspervg caspervg merged commit 069300c into main Dec 17, 2025
1 check passed
@caspervg caspervg deleted the fix/no-sscanf branch December 17, 2025 07:49
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.

2 participants