Function
uni_casefoldcmp
Case-insensitive string comparison.
Parameters 🔗
| casing | in | Case fold form. |
| s1 | in | First string. |
| s1_len | in | Number of code units in |
| s1_attr | in | Attributes of |
| s2 | in | Second string. |
| s2_len | in | Number of code units in |
| s2_attr | in | Attributes of |
| result | out | Set to |
Return Value 🔗
| UNI_OK | If |
| UNI_BAD_OPERATION | If |
| UNI_BAD_ENCODING | If |
| UNI_FEATURE_DISABLED | If the library was built without support for case folding. |
| UNI_NO_MEMORY | If dynamic memory allocation failed. |
Discussion 🔗
Check if s1 and s2 are a caseless match in casing form casing. If they match, then the implementation writes true to result else it writes false.
The length and text attributes for s1 are specified by s1_len and s1_attr. The length and text attributes for s2 are specified by s2_len and s2_attr. If s1_len is -1, then the implementation assumes s1 is null terminated. If s2_len is -1, then the implementation assumes s2 is null terminated.