2021-02-07 19:19:08 +00:00
|
|
|
#include "be_constobj.h"
|
|
|
|
|
|
|
|
static be_define_const_map_slots(m_libstring_map) {
|
2021-02-13 11:01:45 +00:00
|
|
|
{ be_const_key(tolower, -1), be_const_func(str_tolower) },
|
|
|
|
{ be_const_key(count, -1), be_const_func(str_count) },
|
|
|
|
{ be_const_key(hex, -1), be_const_func(str_i2hex) },
|
|
|
|
{ be_const_key(split, 5), be_const_func(str_split) },
|
2021-02-07 19:19:08 +00:00
|
|
|
{ be_const_key(byte, -1), be_const_func(str_byte) },
|
2021-02-13 11:01:45 +00:00
|
|
|
{ be_const_key(char, 6), be_const_func(str_char) },
|
|
|
|
{ be_const_key(toupper, 1), be_const_func(str_toupper) },
|
2021-02-07 19:19:08 +00:00
|
|
|
{ be_const_key(find, -1), be_const_func(str_find) },
|
2021-02-13 11:01:45 +00:00
|
|
|
{ be_const_key(format, -1), be_const_func(str_format) },
|
2021-02-07 19:19:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static be_define_const_map(
|
|
|
|
m_libstring_map,
|
2021-02-13 11:01:45 +00:00
|
|
|
9
|
2021-02-07 19:19:08 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static be_define_const_module(
|
|
|
|
m_libstring,
|
|
|
|
"string"
|
|
|
|
);
|
|
|
|
|
|
|
|
BE_EXPORT_VARIABLE be_define_const_native_module(string, NULL);
|