Code styling pass

This commit is contained in:
Antoine Pilote
2023-07-10 13:26:43 -04:00
parent bf51b3be00
commit 1e2c379462
7 changed files with 25 additions and 14 deletions

View File

@@ -2,11 +2,14 @@
#include <iostream>
#include <sstream>
namespace Nuake {
namespace Nuake
{
bool String::BeginsWith(const std::string& string, const std::string& begin)
{
if (string.rfind(begin, 0) == 0)
{
return true;
}
return false;
}
@@ -14,9 +17,11 @@ namespace Nuake {
bool String::EndsWith(const std::string& string, const std::string& end)
{
if (string.length() >= end.length())
{
return (0 == string.compare(string.length() - end.length(), end.length(), end));
else
return false;
}
return false;
}
std::vector<std::string> String::Split(const std::string& string, char delimiter)