Lines Matching defs:sp

54 raw2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
105 default_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw,
159 fe_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
162 return default_char2int(sp, str, len, cw, tolen, dst,
163 sp->conv.id[IC_FE_CHAR2INT]);
167 ie_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
170 return default_char2int(sp, str, len, cw, tolen, dst,
171 sp->conv.id[IC_IE_CHAR2INT]);
175 cs_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
178 return default_char2int(sp, str, len, cw, tolen, dst, (iconv_t)-1);
182 int2raw(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, size_t *tolen,
201 default_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw,
296 fe_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw,
299 return default_int2char(sp, str, len, cw, tolen, dst,
300 sp->conv.id[IC_FE_INT2CHAR]);
304 cs_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw,
307 return default_int2char(sp, str, len, cw, tolen, dst, (iconv_t)-1);
319 conv_init(SCR *orig, SCR *sp)
326 BCOPY(&orig->conv, &sp->conv, 1);
347 sp->conv.sys2int = sp->conv.file2int = raw2int;
348 sp->conv.int2sys = sp->conv.int2file = int2raw;
349 sp->conv.input2int = raw2int;
351 sp->conv.sys2int = cs_char2int;
352 sp->conv.int2sys = cs_int2char;
353 sp->conv.file2int = fe_char2int;
354 sp->conv.int2file = fe_int2char;
355 sp->conv.input2int = ie_char2int;
358 o_set(sp, O_INPUTENCODING, OS_STRDUP, codeset(), 0);
365 sp->conv.id[i] = (iconv_t)-1;
367 conv_enc(sp, O_INPUTENCODING, 0);
378 conv_enc(SCR *sp, int option, char *enc)
386 c2w = sp->conv.id + IC_FE_CHAR2INT;
387 w2c = sp->conv.id + IC_FE_INT2CHAR;
389 enc = O_STR(sp, O_FILEENCODING);
406 c2w = sp->conv.id + IC_IE_CHAR2INT;
407 w2c = sp->conv.id + IC_IE_TO_UTF16;
409 enc = O_STR(sp, O_INPUTENCODING);
436 F_CLR(sp, SC_CONV_ERROR);
437 F_SET(sp, SC_SCR_REFORMAT);
444 msgq(sp, M_ERR, "321|File encoding conversion not supported");
447 msgq(sp, M_ERR, "322|Input encoding conversion not supported");
460 conv_end(SCR *sp)
465 if (sp->conv.id[i] != (iconv_t)-1)
466 iconv_close(sp->conv.id[i]);
467 if (sp->cw.bp1.c != NULL)
468 free(sp->cw.bp1.c);