(wtf8, offset)
| 944 | ]); |
| 945 | |
| 946 | function Wtf8StartsCodepoint(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; |
no outgoing calls
no test coverage detected