github.com/bytedance/sonic@v1.11.7-0.20240517092252-d2edb31b167b/native/validate_utf8.c (about) 1 #include "scanning.h" 2 3 long validate_utf8(const GoString *src, long *p, StateMachine *m) { 4 xassert(*p >= 0 && src->len > *p); 5 return validate_utf8_with_errors(src->buf, src->len, p, m); 6 }