MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / NextBadU

Function NextBadU

scintilla/src/PositionCache.cxx:356–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354extern bool BadUTF(const char *s, int len, int &trailBytes);
355
356static int NextBadU(const char *s, int p, int len, int &trailBytes) {
357 while (p < len) {
358 p++;
359 if (BadUTF(s + p, len - p, trailBytes))
360 return p;
361 }
362 return -1;
363}
364
365BreakFinder::BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_,
366 int xStart, bool breakForSelection, Document *pdoc_) :

Callers 1

BreakFinderMethod · 0.85

Calls 1

BadUTFFunction · 0.85

Tested by

no test coverage detected