Uses the endian-ness for the platform. Returns 0, 1, or 2. +
-Cardinal values below $10000 result in a single WideChar code value for the -code point. Other cardinal values result in 2 WideChar values in the result to -represent the UTF-16 code point. +Cardinal values below $10000 result in a single WideChar value for the code +point. Cardinal values in the range $D800 - $DFFF are reserved code points +and contain 2 WideChar values in the result to represent the UTF-16 code +point. WIdeChar values are cast to the UnicodeString type used in the return +value.
-Examines the content in AWideStr for valid UTF-16 characters. Calls -IsUTF16CharValid for consecutive code point pairs. +Examines the content in AStr for valid UTF-16 characters. Calls IsUTF16CharValid for consecutive code point pairs.