Lines Matching refs:p2
228 SJIStoJIS (int *p1, int *p2) in SJIStoJIS() argument
231 register unsigned char c2 = *p2; in SJIStoJIS()
237 *p2 -= cellOffset; in SJIStoJIS()
246 han2zen (int *p1, int *p2) in han2zen() argument
318 if (*p2 == 222 && IS_DAKU (*p1)) in han2zen()
320 else if (*p2 == 223 && IS_HANDAKU (*p1)) in han2zen()
324 *p2 = mtable[c - 161][1]; in han2zen()
328 if ((*p2 >= 74 && *p2 <= 103) || (*p2 >= 110 && *p2 <= 122)) in han2zen()
329 (*p2)++; in han2zen()
330 else if (*p2 == 131 || *p2 == 69) in han2zen()
331 *p2 = 148; in han2zen()
333 else if (handaku && *p2 >= 110 && *p2 <= 122) in han2zen()
334 (*p2) += 2; in han2zen()
379 int p1, p2, i, j; in do_convert()
435 p2 = from[++i]; in do_convert()
436 SJIStoJIS (&p1, &p2); in do_convert()
438 to[j++] = p2 + 128; in do_convert()
462 int p1, p2, i, j; in do_check_and_conv() local
521 p2 = tmp[i + 2]; in do_check_and_conv()
522 if (p2 == 222 || p2 == 223) in do_check_and_conv()
525 p2 = 0; in do_check_and_conv()
528 p2 = 0; in do_check_and_conv()
529 han2zen (&p1, &p2); in do_check_and_conv()
530 SJIStoJIS (&p1, &p2); in do_check_and_conv()
532 to[j++] = p2 + 128; in do_check_and_conv()