mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Allow NUL characters in strings (#1405)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#define DEFAULT_CHARMAP_NAME "main"
|
||||
@@ -16,6 +17,6 @@ void charmap_Pop();
|
||||
void charmap_Add(std::string const &mapping, uint8_t value);
|
||||
bool charmap_HasChar(std::string const &input);
|
||||
void charmap_Convert(std::string const &input, std::vector<uint8_t> &output);
|
||||
size_t charmap_ConvertNext(char const *&input, std::vector<uint8_t> *output);
|
||||
size_t charmap_ConvertNext(std::string_view &input, std::vector<uint8_t> *output);
|
||||
|
||||
#endif // RGBDS_ASM_CHARMAP_HPP
|
||||
|
||||
Reference in New Issue
Block a user