MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / isBoundary

Method isBoundary

extlibs/catch/include/catch/catch.hpp:8198–8206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8196 auto line() const -> std::string const& { return m_column.m_strings[m_stringIndex]; }
8197
8198 auto isBoundary(size_t at) const -> bool {
8199 assert(at > 0);
8200 assert(at <= line().size());
8201
8202 return at == line().size() ||
8203 (isWhitespace(line()[at]) && !isWhitespace(line()[at - 1])) ||
8204 isBreakableBefore(line()[at]) ||
8205 isBreakableAfter(line()[at - 1]);
8206 }
8207
8208 void calcLength() {
8209 assert(m_stringIndex < m_column.m_strings.size());

Callers

nothing calls this directly

Calls 5

lineClass · 0.85
isWhitespaceFunction · 0.85
isBreakableBeforeFunction · 0.85
isBreakableAfterFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected