MCPcopy Create free account
hub / github.com/VCVRack/Rack / UTF8PrevCodepoint

Function UTF8PrevCodepoint

src/string.cpp:501–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499
500
501size_t UTF8PrevCodepoint(const std::string& s8, size_t pos) {
502 if (pos == 0)
503 return 0;
504 return UTF8StartCodepoint(s8, pos - 1);
505}
506
507
508size_t UTF8Length(const std::string& s8) {

Callers 3

truncatePrefixFunction · 0.85
ellipsizeFunction · 0.85
onSelectKeyMethod · 0.85

Calls 1

UTF8StartCodepointFunction · 0.85

Tested by

no test coverage detected