static ERL_NIF_TERM get_timezone_ids(ErlNifEnv* env) { ERL_NIF_TERM out; StringEnumeration* en; en = TimeZone::createEnumeration(); out = enum_to_term(env, en); delete en; return out; }
static ERL_NIF_TERM get_trans_ids(ErlNifEnv* env, UErrorCode& status) { ERL_NIF_TERM out; UEnumeration* en; en = utrans_openIDs(&status); CHECK(env, status); out = enum_to_term(env, en); uenum_close(en); return out; }
ERL_NIF_TERM trans_ids(ErlNifEnv* env, int argc, const ERL_NIF_TERM /*argv*/[]) { ERL_NIF_TERM out; UEnumeration* en; UErrorCode status = U_ZERO_ERROR; if (argc != 0) return enif_make_badarg(env); en = utrans_openIDs(&status); CHECK(env, status); out = enum_to_term(env, en); uenum_close(en); return out; }