blob: 761c72aef2f1bfb4cd6a2e7164bc0469f79c4a7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/**
* @file NormalizeCaseInsensitiveString.cpp
*
* This module contains the implementation of the
* Uri::NormalizeCaseInsensitiveString function.
*
* © 2018 by Richard Walters
*/
#include "NormalizeCaseInsensitiveString.hpp"
#include <ctype.h>
namespace Uri {
std::string NormalizeCaseInsensitiveString(const std::string& inString) {
std::string outString;
for (char c: inString) {
outString.push_back(tolower(c));
}
return outString;
}
}
|