Files
Nuake-custom/Nuake/src/Core/String.h
2021-07-12 20:17:16 -04:00

19 lines
518 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 std::vector<std::string> Split(const std::string& string, char delimiter);
static float ToFloat(const std::string& string);
};
}