Function
uni_normqchk
Normalization quick check.
Since v1.0
unistat uni_normqchk(
Parameters 🔗
| form | in | Normalization form to check for. |
| text | in | Input text. |
| text_len | in | Number of code units in |
| text_attr | in | Attributes of |
| result | out |
Return Value 🔗
| UNI_OK | On success. |
| UNI_BAD_OPERATION | If |
| UNI_BAD_ENCODING | If |
| UNI_FEATURE_DISABLED | If Unicorn was built without support for |
Discussion 🔗
Performs a quick check to see if text is, is not, or might be normalized. For a definitive yes/no answer, use uni_normchk.
The implementation behaves as follows:
resultis set to UNI_YES if all characters intextquick check to yes.resultis set to UNI_NO if at least one character intextis quick checks to no.resultis set to UNI_MAYBE if at least one character intextquick checks to maybe and no characters quick check to no.
Support for normalization quick check must be enabled in the JSON configuration file.
{
"algorithms": {
"normalizationQuickCheck": true
}
}