cpp/string/wide/wcsspn

Returns the length of the maximum initial segment of the wide string pointed to by, that consists of only the characters found in wide string pointed to by.

Return value
The length of the maximum initial segment that contains only characters from wide string pointed to by.