MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / ControlCharacterString

Function ControlCharacterString

scintilla/src/Editor.cxx:398–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398const 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.

Callers 3

LayoutLineMethod · 0.85
DrawEOLMethod · 0.85
DrawLineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected