MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / isBoundary

Method isBoundary

Bcore/src/main/cpp/Dobby/tests/catch.hpp:5105–5111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5103 }
5104
5105 auto isBoundary(size_t at) const -> bool {
5106 assert(at > 0);
5107 assert(at <= line().size());
5108
5109 return at == line().size() || (isWhitespace(line()[at]) && !isWhitespace(line()[at - 1])) ||
5110 isBreakableBefore(line()[at]) || isBreakableAfter(line()[at - 1]);
5111 }
5112
5113 void calcLength() {
5114 assert(m_stringIndex < m_column.m_strings.size());

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected