MCPcopy Create free account
hub / github.com/cxasm/notepad-- / PrintScriptingIndicatorOffset

Function PrintScriptingIndicatorOffset

src/qscint/scintilla/lexers/LexHTML.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124int PrintScriptingIndicatorOffset(Accessor &styler, Sci_PositionU start, Sci_PositionU end) {
125 int iResult = 0;
126 std::string s = GetStringSegment(styler, start, end);
127 if (0 == strncmp(s.c_str(), "php", 3)) {
128 iResult = 3;
129 }
130 return iResult;
131}
132
133script_type ScriptOfState(int state) {
134 if ((state >= SCE_HP_START) && (state <= SCE_HP_IDENTIFIER)) {

Callers 1

LexMethod · 0.85

Calls 1

GetStringSegmentFunction · 0.85

Tested by

no test coverage detected