Function
uni_validate
Validate text.
Since v1.0
Parameters 🔗
| text | in | Input text. |
| text_len | in | Number of code units in |
| text_attr | in | Attributes of |
Return Value 🔗
| UNI_OK | If |
| UNI_BAD_OPERATION | If |
| UNI_BAD_ENCODING | If the encoding of |
| UNI_FEATURE_DISABLED | If the encoding form flagged in |
Discussion 🔗
Check if text is well-formed. The length of text is given in code units by text_len and its encoding form is specified by text_attr.
The UNI_TRUST flag has no effect when used with text_attr as the entire purpose of this function is to verify text is well-formed and assuming it is well-formed would defeat the purpose.