Home | History | Annotate | Download | only in common

Lines Matching refs:c2

1541 _2022ToSJIS(uint8_t c1, uint8_t c2, char bytes[2]) {
1544 if(c2 <= 0x5f) {
1545 c2 += 0x1f;
1546 } else if(c2 <= 0x7e) {
1547 c2 += 0x20;
1549 c2 = 0; /* invalid */
1552 if((uint8_t)(c2-0x21) <= ((0x7e)-0x21)) {
1553 c2 += 0x7e;
1555 c2 = 0; /* invalid */
1567 bytes[1] = (char)c2;