Lines Matching refs:from
341 do_convert (unsigned char *to, unsigned char *from, const char *code) in do_convert() argument
353 strcpy ((char *) to, (const char *) from); in do_convert()
357 from_len = strlen ((const char *) from) + 1; in do_convert()
360 if ((int) iconv(cd, (char **) &from, &from_len, (char **) &to, &to_len) == -1) in do_convert()
370 strcpy ((char *) to, (const char *) from); in do_convert()
386 for (i = 0; from[i] != '\0' && j < BUFSIZ; i++) in do_convert()
388 if (from[i] == ESC) in do_convert()
391 if (from[i] == '$') in do_convert()
397 else if (from[i] == '(') in do_convert()
401 if (from[i] == 'I') /* Hankaku Kana */ in do_convert()
410 to[j++] = from[i] + 128; in do_convert()
414 to[j++] = from[i] + 128; in do_convert()
417 to[j++] = from[i]; in do_convert()
423 for (i = 0; from[i] != '\0' && j < BUFSIZ; i++) in do_convert()
425 p1 = from[i]; in do_convert()
435 p2 = from[++i]; in do_convert()
451 ustrcpy (to, from); in do_convert()
459 do_check_and_conv (unsigned char *to, unsigned char *from) in do_check_and_conv() argument
465 switch (DetectKanjiCode (from)) in do_check_and_conv()
469 do_convert (tmp, from, NEWJISSTR); in do_check_and_conv()
473 do_convert (tmp, from, OLDJISSTR); in do_check_and_conv()
477 do_convert (tmp, from, NEWJISSTR); in do_check_and_conv()
482 ustrcpy (tmp, from); in do_check_and_conv()
487 ustrcpy (tmp, from); in do_check_and_conv()
491 do_convert (tmp, from, SJISSTR); in do_check_and_conv()
495 ustrcpy (tmp, from); in do_check_and_conv()
500 ustrcpy (tmp, from); in do_check_and_conv()
505 ustrcpy (tmp, from); in do_check_and_conv()