Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
98
Issues
98
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
cb718def
Commit
cb718def
authored
Dec 08, 2013
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put utils::tolower definition in its own cpp file
parent
fb01f78b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
CMakeLists.txt
CMakeLists.txt
+1
-0
src/utils/tolower.cpp
src/utils/tolower.cpp
+13
-0
src/utils/tolower.hpp
src/utils/tolower.hpp
+1
-8
No files found.
CMakeLists.txt
View file @
cb718def
...
...
@@ -34,6 +34,7 @@ if((NOT ${POLLER} MATCHES "POLL") AND
(
NOT
${
POLLER
}
MATCHES
"EPOLL"
))
message
(
FATAL_ERROR
"POLLER must be either POLL or EPOLL"
)
endif
()
#
## utils
#
...
...
src/utils/tolower.cpp
0 → 100644
View file @
cb718def
#include <utils/tolower.hpp>
namespace
utils
{
std
::
string
tolower
(
const
std
::
string
&
original
)
{
std
::
string
res
;
res
.
reserve
(
original
.
size
());
for
(
const
char
c
:
original
)
res
+=
static_cast
<
char
>
(
std
::
tolower
(
c
));
return
res
;
}
}
src/utils/tolower.hpp
View file @
cb718def
...
...
@@ -5,14 +5,7 @@
namespace
utils
{
std
::
string
tolower
(
const
std
::
string
&
original
)
{
std
::
string
res
;
res
.
reserve
(
original
.
size
());
for
(
const
char
c
:
original
)
res
+=
static_cast
<
char
>
(
std
::
tolower
(
c
));
return
res
;
}
std
::
string
tolower
(
const
std
::
string
&
original
);
}
#endif // SPLIT_INCLUDED
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment