Moved String helper functions to service class

This commit is contained in:
Nav
2022-12-26 21:57:28 +00:00
parent 8fa7e82c56
commit 90ef72f686
5 changed files with 19 additions and 16 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include <string>
#include <vector>
namespace Bloom::Services
{
class StringService
{
public:
static std::string asciiToLower(std::string str);
static std::string asciiToUpper(std::string str);
static bool isAscii(const std::string& str);
static std::string toHex(unsigned char value);
static std::string toHex(const std::vector<unsigned char>& data);
static std::string toHex(const std::string& data);
};
}