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

Function AdvanceOverWhitespace

Src/stringdiffs.cpp:834–840  ·  view source on GitHub ↗

* @brief advance current pointer over whitespace, until not whitespace or beyond end * @param pcurrent [in,out] current location (to be advanced) * @param end [in] last valid position (only go one beyond this) */

Source from the content-addressed store, hash-verified

832 * @param end [in] last valid position (only go one beyond this)
833 */
834static void
835AdvanceOverWhitespace(const tchar_t **pcurrent, const tchar_t *end)
836{
837 // advance over whitespace
838 while (*pcurrent <= end && isSafeWhitespace(**pcurrent))
839 ++(*pcurrent); // DBCS safe because of isSafeWhitespace above
840}
841
842/**
843 * @brief Compute begin1,begin2,end1,end2 to display byte difference between strings str1 & str2

Callers 1

ComputeByteDiffMethod · 0.85

Calls 1

isSafeWhitespaceFunction · 0.85

Tested by

no test coverage detected