MCPcopy Create free account
hub / github.com/Profactor/cv-plot / trailingBytes

Function trailingBytes

CvPlot/ext/catch2/inc/catch.hpp:15109–15120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15107namespace {
15108
15109 size_t trailingBytes(unsigned char c) {
15110 if ((c & 0xE0) == 0xC0) {
15111 return 2;
15112 }
15113 if ((c & 0xF0) == 0xE0) {
15114 return 3;
15115 }
15116 if ((c & 0xF8) == 0xF0) {
15117 return 4;
15118 }
15119 CATCH_INTERNAL_ERROR("Invalid multibyte utf-8 start byte encountered");
15120 }
15121
15122 uint32_t headerValue(unsigned char c) {
15123 if ((c & 0xE0) == 0xC0) {

Callers 1

encodeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected