Files
Nuake-custom/Nuake/src/Core/String.h
Antoine Pilote e90776e6bb Merge pull request #23 from antopilo/cleanup/code-autoformatting
Cleanup/code autoformatting
2023-07-10 16:01:36 -04:00

24 lines
690 B
C++

#pragma once
#include <string>
#include <vector>
/*
This class purpose is to provide helper methods related to strings.
It is not meant to be a replacement for std::string.
*/
namespace Nuake
{
class String
{
public:
static bool BeginsWith(const std::string& string, const std::string& begin);
static bool EndsWith(const std::string& string, const std::string& end);
static bool IsDigit(const char& character);
static std::string RemoveWhiteSpace(const std::string& string);
static std::vector<std::string> Split(const std::string& string, char delimiter);
static float ToFloat(const std::string& string);
static std::string ToUpper(const std::string& string);
};
}