| 396 | } |
| 397 | |
| 398 | const char *ControlCharacterString ( unsigned char ch ) |
| 399 | { |
| 400 | const char *reps[] = { |
| 401 | "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", |
| 402 | "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI", |
| 403 | "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", |
| 404 | "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US" |
| 405 | }; |
| 406 | if ( ch < ( sizeof ( reps ) / sizeof ( reps[0] ) ) ) { |
| 407 | return reps[ch]; |
| 408 | } else { |
| 409 | return "BAD"; |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * Convenience class to ensure LineLayout objects are always disposed. |
no outgoing calls
no test coverage detected