MCPcopy Create free account
hub / github.com/SpartanJ/eepp / decodePoint

Method decodePoint

src/eepp/ui/doc/textformat.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 static TextDecodeResult decodePointSlowPath( std::string_view view );
44
45 static inline TextDecodeResult decodePoint( std::string_view view ) {
46 if ( view.size() > 0 ) {
47 Uint8 first = view[0];
48 if ( first < 0x80 ) {
49 return { first, TextDecodeResult::Status::Valid, 1 };
50 }
51 }
52 return decodePointSlowPath( view );
53 }
54};
55
56//-------------------------------------------------------------------

Callers 1

scanTextFileFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected