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

Function stateForPrintState

scintilla/lexers/LexHTML.cxx:157–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157static int stateForPrintState(int StateToPrint) {
158 int state;
159
160 if ((StateToPrint >= SCE_HPA_START) && (StateToPrint <= SCE_HPA_IDENTIFIER)) {
161 state = StateToPrint - SCE_HA_PYTHON;
162 } else if ((StateToPrint >= SCE_HBA_START) && (StateToPrint <= SCE_HBA_STRINGEOL)) {
163 state = StateToPrint - SCE_HA_VBS;
164 } else if ((StateToPrint >= SCE_HJA_START) && (StateToPrint <= SCE_HJA_REGEX)) {
165 state = StateToPrint - SCE_HA_JS;
166 } else {
167 state = StateToPrint;
168 }
169
170 return state;
171}
172
173static inline bool IsNumber(unsigned int start, Accessor &styler) {
174 return IsADigit(styler[start]) || (styler[start] == '.') ||

Callers 1

ColouriseHyperTextDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected