Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use substr method to determine file extension #12

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

Alto1772
Copy link
Contributor

@Alto1772 Alto1772 commented Nov 9, 2023

Alternatively use the "find_last_of" & "substr" methods on this conveniently and performance wise.

This fixes the "." problem where we are working currently on a directory that contains ".", which prior to this will get rid of any occurences of this character from the original path (when using std::accumulate without a binary operation).

Will create PR at Shipwright once this one is accepted & merged... creates PR anyway

Alternatively use the "find_last_of" & "substr" methods on this
conveniently and performance wise.

This fixes the "." problem where we are working currently on a
directory that contains ".", which prior to this will get rid of any
occurences of this character from the original path (when using
std::accumulate without a binary operation).
@briaguya-ai briaguya-ai merged commit 04b85b9 into HarbourMasters:soh-macready Nov 14, 2023
Alto1772 added a commit to Alto1772/Kingship that referenced this pull request Nov 14, 2023
@Alto1772 Alto1772 deleted the splitpath-pr branch November 14, 2023 09:27
briaguya-ai pushed a commit to HarbourMasters/Shipwright that referenced this pull request Nov 14, 2023
Archez added a commit to Archez/OTRExporter that referenced this pull request Feb 27, 2024
Archez added a commit to Archez/OTRExporter that referenced this pull request Mar 4, 2024
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