MCPcopy Create free account
hub / github.com/WinMerge/winmerge / isSafeWhitespace

Function isSafeWhitespace

Src/stringdiffs.cpp:783–787  ·  view source on GitHub ↗

* @brief Is it whitespace (excludes all lead & trail bytes)? */

Source from the content-addressed store, hash-verified

781 * @brief Is it whitespace (excludes all lead & trail bytes)?
782 */
783static inline bool
784isSafeWhitespace(tchar_t ch)
785{
786 return tc::istspace((unsigned)ch) && !IsLeadByte(ch) && (ch != '\r' && ch != '\n');
787}
788
789/**
790 * @brief Is it a non-whitespace wordbreak character (ie, punctuation)?

Callers 3

BuildWordsArrayMethod · 0.85
AdvanceOverWhitespaceFunction · 0.85
ComputeByteDiffMethod · 0.85

Calls 1

IsLeadByteFunction · 0.70

Tested by

no test coverage detected