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

Constant folding of startswith() #1507

Merged
merged 1 commit into from
May 13, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented May 13, 2022

We have constant folded endswith() for a long time. Dunno why we
overlooked startswith, but here it is.

Also simplified endswith to use Strutil::ends_with instead of replicating
the logic here for no good reason.

Signed-off-by: Larry Gritz [email protected]

@lgritz lgritz requested a review from lkerley May 13, 2022 00:12
We have constant folded endswith() for a long time. Dunno why we
overlooked startswith, but here it is.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz merged commit fdd8ff0 into AcademySoftwareFoundation:main May 13, 2022
@lgritz lgritz deleted the lg-startswith branch May 13, 2022 05:48
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request May 13, 2022
We have constant folded endswith() for a long time. Dunno why we
overlooked startswith, but here it is.

Signed-off-by: Larry Gritz <[email protected]>
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