Function utf8ValidateSlice [src]

Returns true if the input consists entirely of UTF-8 codepoints

Prototype

pub fn utf8ValidateSlice(input: []const u8) bool

Parameters

input: []const u8

Source

pub fn utf8ValidateSlice(input: []const u8) bool { return utf8ValidateSliceImpl(input, .cannot_encode_surrogate_half); }