Finishing the WlaDx label's parser

This commit is contained in:
Zoe Roux
2021-02-17 17:10:35 +01:00
parent f33593c51f
commit a53568bf5d
6 changed files with 94 additions and 21 deletions
+2
View File
@@ -55,4 +55,6 @@ namespace ComSquare::Utility
{
return std::bitset<24>(i).to_string();
}
const std::string WHITESPACES = " \t\n\r\f\v";
}
+4 -9
View File
@@ -2,13 +2,12 @@
// Created by anonymus-raccoon on 2/16/20.
//
#ifndef COMSQUARE_UTILITY_HPP
#define COMSQUARE_UTILITY_HPP
#pragma once
#include <string>
#include <ios>
#include <sstream>
#include "../Models/Int24.hpp"
#include "Models/Int24.hpp"
namespace ComSquare::Utility
{
@@ -19,16 +18,12 @@ namespace ComSquare::Utility
};
std::string to_hex(uint8_t i, HexString prefix = AsmPrefix);
std::string to_hex(uint16_t i, HexString prefix = AsmPrefix);
std::string to_hex(uint24_t i, HexString prefix = AsmPrefix);
std::string to_binary(uint8_t i);
std::string to_binary(uint16_t i);
std::string to_binary(uint24_t i);
}
#endif //COMSQUARE_UTILITY_HPP
extern const std::string WHITESPACES;
}