| 73 | } |
| 74 | |
| 75 | inline bool CutSubtoken(TCharSpan& s, size_t maxLen) { |
| 76 | if (s.EndPos() > maxLen) { |
| 77 | s.Len = maxLen - s.Pos; |
| 78 | s.SuffixLen = 0; |
| 79 | return true; |
| 80 | } else if (s.EndPos() + s.SuffixLen > maxLen) { |
| 81 | s.SuffixLen = maxLen - s.EndPos(); |
| 82 | return true; |
| 83 | } |
| 84 | return false; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | void CorrectDelimiters(TCharSpan& prevtok, wchar16 suffixChar, TCharSpan& lasttok, wchar16 prefixChar) { |
no test coverage detected