2022-04-30 21:09:11 +02:00
|
|
|
#include <SDL.h>
|
|
|
|
|
2022-12-30 23:09:36 +01:00
|
|
|
#include "Localization.h"
|
2022-04-30 21:09:11 +02:00
|
|
|
#include "UtilityClass.h"
|
|
|
|
|
2022-12-30 23:09:36 +01:00
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
|
|
|
|
char* HELP_number_words(int _t)
|
2022-04-30 21:09:11 +02:00
|
|
|
{
|
|
|
|
/* C wrapper for UtilityClass::number_words.
|
2022-12-01 07:30:16 +01:00
|
|
|
* Caller must VVV_free. */
|
2022-04-30 21:09:11 +02:00
|
|
|
|
|
|
|
std::string str = help.number_words(_t);
|
|
|
|
|
|
|
|
char* buffer = (char*) SDL_malloc(str.size() + 1);
|
|
|
|
str.copy(buffer, str.size());
|
|
|
|
buffer[str.size()] = '\0';
|
|
|
|
|
|
|
|
return buffer;
|
|
|
|
}
|
2022-12-30 23:09:36 +01:00
|
|
|
|
|
|
|
uint32_t LOC_toupper_ch(uint32_t ch)
|
|
|
|
{
|
|
|
|
return loc::toupper_ch(ch);
|
|
|
|
}
|
|
|
|
|
|
|
|
} /* extern "C" */
|