I realise we have, as is often the case, gone off topic from the original question about newline.
FWIW the docs in C11 are more or less the same as what Paul has shown from C6, although formatted differently.
to answer the original question, I tested using the ‘.P’ and ‘U.A’ shown in the docs:
x long
code
loop x = 0 to 255
if strPos(chr(x) & 'P','.P') <> 1
stop('strPos did not match .P on ' & x)
end
if strPos('U' & chr(x) & 'A','U.A') <> 1
stop('strPos did not match U.A on ' & x)
end
end
what it shows is that the docs are wrong.
the ONLY char that does not match is chr(0)
I suspect this is because somewhere internally they are using a cstring and so the null char is interpretted as “end of string”. So ignore the bit about “newline” but remember to be wary of embedded nulls.