MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / psl_ut8_code_to_ISOLatin

Function psl_ut8_code_to_ISOLatin

src/postscriptlight.c:640–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638
639
640static 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
647static 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+ */

Callers 1

psl_fix_utf8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected