(wtf8, offset)
| 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)) { |
no test coverage detected