Repository navigation
Fix some recently implemented comparisons of token strings - #6452
kimkulling merged 2 commits into
Conversation
…y, the `keyword` included the following space along with the token, which broke the string comparison using the equality operator.
📝 WalkthroughWalkthroughReworked token parsing in ObjFileMtlImporter to use a delimiter-first approach: introduce Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@code/AssetLib/Obj/ObjTools.h`:
- Around line 88-115: Update the getEndOfToken documentation to state it returns
a pointer to the first delimiter (space/newline) or pEnd (i.e., an end-exclusive
iterator), not the last character of the token; mention that callers should use
the returned pointer as the end for substring ranges (e.g., [start,
getEndOfToken(...)) so behavior is clear, and ensure the doc for getNextToken
remains consistent since it calls getEndOfToken and getNextWord.
|
|
Merged, thank you for the contribution. |
* Fix some recently implemented comparisons of token strings. Previously, the `keyword` included the following space along with the token, which broke the string comparison using the equality operator. * Rename `getEndOfToken` -> `getNextDelimiter`, to reflect the actual usage
* Fix some recently implemented comparisons of token strings. Previously, the `keyword` included the following space along with the token, which broke the string comparison using the equality operator. * Rename `getEndOfToken` -> `getNextDelimiter`, to reflect the actual usage



Previously, the
keywordincluded the following space along with the token, which broke the string comparison using the equality operator.This is an addition to 709fe3c which (partly) addressed issues #6253 and #5635.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.