First way to publish
This commit is contained in:
parent
0be7fe9bff
commit
647b8f3072
17 changed files with 240 additions and 21 deletions
|
@ -23,21 +23,6 @@ bool Module::Module::hasPermission(const std::string& permission, const std::sha
|
|||
|
||||
Module::Module::~Module() noexcept {}
|
||||
|
||||
std::vector<std::string> Module::Module::split(const std::string& string, const std::string& delimiter) {
|
||||
std::vector<std::string> result;
|
||||
|
||||
std::size_t last = 0;
|
||||
std::size_t next = string.find(delimiter, last);
|
||||
while (next != std::string::npos) {
|
||||
result.emplace_back(string.substr(last, next - last));
|
||||
last = next + 1;
|
||||
next = string.find(delimiter, last);
|
||||
}
|
||||
result.emplace_back(string.substr(last));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string Module::Module::lower(const std::string& text) {
|
||||
return std::ranges::to<std::string>(text | std::views::transform(::tolower));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue