Moved String helper functions to service class
This commit is contained in:
21
src/Services/StringService.hpp
Normal file
21
src/Services/StringService.hpp
Normal 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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user