26static char *
get_one_roman(
int num,
char one,
char five,
char ten,
char *str)
28 static const char *one_strs[] =
30 "",
"i",
"ii",
"iii",
"iv",
"v",
"vi",
"vii",
"viii",
"ix"
33 strcpy(str, one_strs[num]);
67 while( 0 != (
ch = *c++))
73 *
i++ = (
ch << 8) | *c;
void str2hstr(const char *c, hchar *i)
Transfer 8bit string to 16bit string used internally in hwp.
void num2roman(int num, char *buf)
Transfer number to roman character.
static char * get_one_roman(int num, char one, char five, char ten, char *str)
char16_t hchar
size of hunit is 4 since hwp96 version