@param len length of text to be copied (it can include suffix length)
| 67 | |
| 68 | //! @param len length of text to be copied (it can include suffix length) |
| 69 | inline void CopyTokenText(wchar16* buffer, const wchar16* entry, size_t len, size_t& destpos, size_t& srcpos) { |
| 70 | std::char_traits<wchar16>::copy(buffer + destpos, entry + srcpos, len); // srcpos - the beginning of source token |
| 71 | srcpos += len; |
| 72 | destpos += len; |
| 73 | } |
| 74 | |
| 75 | inline bool CutSubtoken(TCharSpan& s, size_t maxLen) { |
| 76 | if (s.EndPos() > maxLen) { |
no test coverage detected