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

Add a nonstd::camel_case util function #6349

Closed

Conversation

eddyashton
Copy link
Member

Useful for https://github.com/microsoft/CCF/pull/6326#issuecomment-2214510569, potentially other situations.

@eddyashton eddyashton requested a review from a team July 10, 2024 14:07
@@ -288,4 +292,32 @@ namespace ccf::nonstd

return resolved.lexically_normal().string();
}

static inline std::string camel_case(
Copy link
Member

Choose a reason for hiding this comment

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

Let's start a src/ds/nonstd.cpp and stop inlining everything.

Copy link
Member

Choose a reason for hiding this comment

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

Actually let's not export that in public headers either.

@lemmy
Copy link
Contributor

lemmy commented Jul 10, 2024

FYI: Trying this PR out in the context of #6326 right now.

@lemmy
Copy link
Contributor

lemmy commented Jul 10, 2024

@eddyashton Would camel-casing all-caps strings such as "POST", "DELETE", ... also be an input that the function could/should accept?

@eddyashton
Copy link
Member Author

Flattened this into #6326, will add followup (making definition private) next.

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.

3 participants