Tests if a character vector contains any zero character or all whitespace elements.
Value
an integer or real vector of length one with value
the 1-based index of the first zero char/all whitespace value
if any, otherwise 0.
Details
anyZchar() and anyWS() return an index immediately when
encountering a zero character or a whitespace element,
respectively.
Whitespace elements are defined as any character that is a
space, horizontal tab, carriage return or newline:
aka "[ \t\r\n]". See trimws for more details and how to
instead match all unicode whitespace.
anyZchar() implements the same definition of a zero char
as nzchar.
NA_character_ is not considered zero char or all whitespace.
