| 638 | |
| 639 | |
| 640 | static unsigned int psl_ut8_code_to_ISOLatin (char code) { |
| 641 | /* This is called when the previous character in a string has octal 0303 */ |
| 642 | unsigned int kode = (unsigned char)code; |
| 643 | |
| 644 | return (kode >= 0200 && kode <= 0277) ? kode += 64 : 0; |
| 645 | } |
| 646 | |
| 647 | static void psl_fix_utf8 (struct PSL_CTRL *PSL, char *in_string) { |
| 648 | /* Given in_string check if UTF8 characters are present and if so replace with PSL octal codes. Assumes ISOLatin1+ */ |