mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use std::vector for charmap output
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#define RGBDS_ASM_CHARMAP_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
#define DEFAULT_CHARMAP_NAME "main"
|
||||
|
||||
@@ -13,7 +14,7 @@ void charmap_Push(void);
|
||||
void charmap_Pop(void);
|
||||
void charmap_Add(char *mapping, uint8_t value);
|
||||
bool charmap_HasChar(char const *input);
|
||||
size_t charmap_Convert(char const *input, uint8_t *output);
|
||||
size_t charmap_ConvertNext(char const **input, uint8_t **output);
|
||||
void charmap_Convert(char const *input, std::vector<uint8_t> &output);
|
||||
size_t charmap_ConvertNext(char const **input, std::vector<uint8_t> *output);
|
||||
|
||||
#endif // RGBDS_ASM_CHARMAP_H
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
char const *printChar(int c);
|
||||
|
||||
/*
|
||||
* @return The number of bytes read, or 0 if invalid data was found
|
||||
*/
|
||||
size_t readUTF8Char(uint8_t *dest, char const *src);
|
||||
size_t readUTF8Char(std::vector<uint8_t> *dest, char const *src);
|
||||
|
||||
#endif // RGBDS_UTIL_H
|
||||
|
||||
Reference in New Issue
Block a user