CCF
Loading...
Searching...
No Matches
src
endpoints
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
8
namespace
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
}
ccf::endpoints
Definition
endpoint.h:16
ccf::endpoints::camel_case
std::string camel_case(std::string s, bool camel_first=true, const std::string &separator_regex="[^[:alnum:]]")
Definition
endpoint_utils.cpp:10
Generated by
1.9.8