MCPcopy Create free account
hub / github.com/nodejs/node / Wtf8PositionTreatment

Function Wtf8PositionTreatment

deps/v8/test/mjsunit/wasm/stringrefs-exec.js:949–955  ·  view source on GitHub ↗
(wtf8, offset)

Source from the content-addressed store, hash-verified

947 return (wtf8[offset] & 0xc0) != 0x80;
948 }
949 function Wtf8PositionTreatment(wtf8, offset) {
950 while (offset < wtf8.length) {
951 if (Wtf8StartsCodepoint(wtf8, offset)) return offset;
952 offset++;
953 }
954 return wtf8.length;
955 }
956 function CodepointStart(wtf8, offset) {
957 if (offset >= wtf8.length) return wtf8.length;
958 while (!Wtf8StartsCodepoint(wtf8, offset)) {

Callers 2

stringrefs-exec.jsFile · 0.85
checkEncodingFunction · 0.85

Calls 1

Wtf8StartsCodepointFunction · 0.85

Tested by

no test coverage detected