Home | History | Annotate | Download | only in common

Lines Matching refs:c2

1527 _2022ToSJIS(uint8_t c1, uint8_t c2, char bytes[2]) {
1530 if(c2 <= 0x5f) {
1531 c2 += 0x1f;
1532 } else if(c2 <= 0x7e) {
1533 c2 += 0x20;
1535 c2 = 0; /* invalid */
1538 if((uint8_t)(c2-0x21) <= ((0x7e)-0x21)) {
1539 c2 += 0x7e;
1541 c2 = 0; /* invalid */
1553 bytes[1] = (char)c2;