Skip to content

Update StepKernel.cpp - #7

Open
gsohler wants to merge 1 commit into
slugdev:masterfrom
gsohler:patch-1
Open

Update StepKernel.cpp#7
gsohler wants to merge 1 commit into
slugdev:masterfrom
gsohler:patch-1

Conversation

@gsohler

@gsohler gsohler commented Nov 15, 2024

Copy link
Copy Markdown

Now works if = is folllowed by space

Now works if = is folllowed by space
@slugdev

slugdev commented Mar 1, 2025

Copy link
Copy Markdown
Owner

Thanks for the PR. I need to study it a bit to jog my memory...

@bkw777

bkw777 commented Mar 1, 2025

Copy link
Copy Markdown
Contributor

looks right to me fwiw

@gsohler

gsohler commented Mar 1, 2025 via email

Copy link
Copy Markdown
Author

@bkw777

bkw777 commented Mar 1, 2025

Copy link
Copy Markdown
Contributor

gsohler Nice looking project btw. I like your motivation text.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts STEP entity-line parsing in StepKernel::read_step to correctly extract the function name when the = character is followed by whitespace, improving robustness for STEP files that include spaces after =.

Changes:

  • Updated function-name delimiter search to start after the first non-whitespace character following =, so function names parse correctly when = is used.

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

Comment thread StepKernel.cpp
Comment on lines 295 to 299
auto id_str = cur_str.substr(1, equal_pos - 1);
id = std::atoi(id_str.c_str());
auto func_start = cur_str.find_first_not_of("\t ", equal_pos+1);
auto func_end = cur_str.find_first_of("\t (", equal_pos + 1);
auto func_end = cur_str.find_first_of("\t (", func_start + 1);
auto func_name = cur_str.substr(func_start, func_end - func_start);
@gsohler

gsohler commented Aug 1, 2026

Copy link
Copy Markdown
Author

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.

4 participants