mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 10:13:42 +00:00
Add helper lib for strings and vectors
This commit is contained in:
parent
6ef9740db9
commit
2bb7fcfcc6
10 changed files with 168 additions and 123 deletions
|
@ -11,15 +11,15 @@
|
|||
#include <cctype>
|
||||
#include <locale>
|
||||
#include <regex>
|
||||
#include <cpp-utils/string.h>
|
||||
#include <cpp-utils/vector.h>
|
||||
|
||||
void ltrim(std::string& s);
|
||||
void rtrim(std::string& s);
|
||||
void trim(std::string& s);
|
||||
namespace mirai {
|
||||
namespace stringUtils = cpputils::string;
|
||||
namespace vectorUtils = cpputils::vector;
|
||||
|
||||
std::string ltrim_copy(std::string s);
|
||||
std::string rtrim_copy(std::string s);
|
||||
std::string trim_copy(std::string s);
|
||||
bool isDate(const std::string& dateStr);
|
||||
}
|
||||
|
||||
bool isDate(const std::string& dateStr);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue