-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add missing features and some optimizations
- Loading branch information
Showing
13 changed files
with
158 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
#ifndef FUNCTIONS_H | ||
#define FUNCTIONS_H | ||
#include <string> | ||
#include <vector> | ||
|
||
bool ichar_equals(char, char); | ||
|
||
bool iequals(std::string_view, std::string_view); | ||
|
||
// trim from start (in place) | ||
// trim from start | ||
std::string ltrim(std::string); | ||
|
||
// trim from end (in place) | ||
// trim from end | ||
std::string rtrim(std::string); | ||
|
||
// trim from both ends (in place) | ||
std::string trim(std::string); | ||
// trim from both ends | ||
std::string trim(const std::string&); | ||
|
||
// convert string to lower case | ||
std::string toLowerCase(const std::string&); | ||
std::string to_lower(const std::string&); | ||
|
||
// split by given character | ||
std::vector<std::string> split(const std::string&, char); | ||
|
||
// split by space | ||
std::vector<std::string> split(const std::string&); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.