| 1051 | } |
| 1052 | |
| 1053 | void Document::DelCharBack(int pos) { |
| 1054 | if (pos <= 0) { |
| 1055 | return; |
| 1056 | } else if (IsCrLf(pos - 2)) { |
| 1057 | DeleteChars(pos - 2, 2); |
| 1058 | } else if (dbcsCodePage) { |
| 1059 | int startChar = NextPosition(pos, -1); |
| 1060 | DeleteChars(startChar, pos - startChar); |
| 1061 | } else { |
| 1062 | DeleteChars(pos - 1, 1); |
| 1063 | } |
| 1064 | } |
| 1065 | |
| 1066 | static int NextTab(int pos, int tabSize) { |
| 1067 | return ((pos / tabSize) + 1) * tabSize; |
nothing calls this directly
no outgoing calls
no test coverage detected