MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetCharShift

Function GetCharShift

GUI/RichTextarea.cpp:126–129  ·  view source on GitHub ↗

Get shift after symbol ch in characters from current position to the next

Source from the content-addressed store, hash-verified

124
125// Get shift after symbol ch in characters from current position to the next
126int GetCharShift(char ch, int currPos)
127{
128 return ch == '\t' ? TAB_SIZE - currPos % TAB_SIZE : 1;
129}
130
131bool IsPressed(int key)
132{

Callers 5

OnPaintMethod · 0.85
AreaCursorUpdateMethod · 0.85
CursorToClientMethod · 0.85
ClientToCursorMethod · 0.85
OnCharacterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected