-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
string.h
executable file
·32 lines (27 loc) · 1.1 KB
/
string.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Copyright 2011 - 2021 José Expósito <jose.exposito89@gmail.com>
*
* This file is part of Touchégg.
*
* Touchégg is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* Touchégg is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* Touchégg. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UTILS_STRING_H_
#define UTILS_STRING_H_
#include <string>
#include <vector>
std::vector<std::string> split(const std::string &string, char delimiter);
std::string ltrim(const std::string &s);
std::string rtrim(const std::string &s);
std::string trim(const std::string &s);
std::string toLower(const std::string &string);
#endif // UTILS_STRING_H_