Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.428 kB
#ifndef RBX_KCODE_HPP
#define RBX_KCODE_HPP
namespace rubinius {
namespace kcode {
typedef const uint8_t table;
enum CodePage {
eAscii, eEUC, eSJIS, eUTF8
};
static inline bool mbchar_p(table* tbl, uint8_t c) {
return tbl[c] != 0;
}
static inline size_t mbclen(table* tbl, uint8_t c) {
return tbl[c] + 1;
}
void init(STATE);
table* null_table();
void set(STATE, CodePage page);
}}
#endif
Jump to Line
Something went wrong with that request. Please try again.