Lines Matching defs:ctx
60 idnConvDone(idn_resconf_t ctx)
62 if (ctx != NULL) {
64 idn_resconf_destroy(ctx);
72 idn_resconf_t ctx;
88 if ((r = idn_resconf_create(&ctx)) != idn_success) {
96 if ((r = idn_resconf_loadfile(ctx, NULL)) != idn_success) {
99 if ((r = idn_resconf_setdefaults(ctx)) != idn_success) {
103 idnConvDone(ctx);
113 r = idn_resconf_setlocalconvertername(ctx, encoding,
119 idnConvDone(ctx);
123 return ctx;
133 idnConvReq(idn_resconf_t ctx, const char FAR *from, char FAR *to, size_t tolen)
140 if (ctx == NULL) {
141 idnLogPrintf(idn_log_level_trace, "idnConvReq: ctx is NULL\n");
148 r = idn_res_encodename(ctx, IDN_ENCODE_APP, from, to, tolen);
164 idnConvRsp(idn_resconf_t ctx, const char FAR *from, char FAR *to, size_t tolen)
169 if (ctx == NULL) {
174 } else if (idn_res_decodename(ctx, IDN_DECODE_APP,