CCF
Loading...
Searching...
No Matches
endpoint_utils.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3
4#pragma once
5
6#include <string>
7
8namespace ccf::endpoints
9{
10 std::string camel_case(
11 std::string s,
12 // Should the first character be upper-cased?
13 bool camel_first = true,
14 // Regex fragment to identify which characters should be upper-cased, by
15 // matching a separator preceding them. Default is to match any
16 // non-alphanumeric character
17 const std::string& separator_regex = "[^[:alnum:]]");
18}
Definition endpoint.h:16
std::string camel_case(std::string s, bool camel_first=true, const std::string &separator_regex="[^[:alnum:]]")
Definition endpoint_utils.cpp:10