mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
22 lines
645 B
C++
22 lines
645 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_ASM_CHARMAP_HPP
|
|
#define RGBDS_ASM_CHARMAP_HPP
|
|
|
|
#include <stdint.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#define DEFAULT_CHARMAP_NAME "main"
|
|
|
|
void charmap_New(std::string const &name, std::string const *baseName);
|
|
void charmap_Set(std::string const &name);
|
|
void charmap_Push();
|
|
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);
|
|
|
|
#endif // RGBDS_ASM_CHARMAP_HPP
|