mirror of
https://github.com/hyprwm/hyprutils.git
synced 2026-01-13 21:20:14 +01:00
14 lines
No EOL
562 B
C++
14 lines
No EOL
562 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace Hyprutils {
|
|
namespace String {
|
|
// trims beginning and end of whitespace characters
|
|
std::string trim(const char* in);
|
|
std::string trim(const std::string& in);
|
|
std::string_view trim(const std::string_view& in);
|
|
bool isNumber(const std::string& str, bool allowfloat = false);
|
|
void replaceInString(std::string& string, const std::string& what, const std::string& to);
|
|
bool truthy(const std::string_view& in);
|
|
};
|
|
}; |