]> granicus.if.org Git - icu/commitdiff
ICU-12549 Changing u_strCompare to u_strcmp in spoof documentation.
authorShane Carr <shane@unicode.org>
Fri, 23 Sep 2016 01:14:42 +0000 (01:14 +0000)
committerShane Carr <shane@unicode.org>
Fri, 23 Sep 2016 01:14:42 +0000 (01:14 +0000)
X-SVN-Rev: 39341

icu4c/source/i18n/unicode/uspoof.h

index 2d6f856bfc54529bd7e4af1997c91d116546c2e2..bb42f585765e253bdc1265d51c1950b48109a571 100644 (file)
  * uspoof_getSkeleton(sc, 0, str2, -1, skel2, skel2Len, &status);
  *
  * // Are the skeletons the same?
- * UBool result = u_strCompare(skel1, -1, skel2, -1, FALSE) == 0;
+ * UBool result = u_strcmp(skel1, skel2) == 0;
  * // areConfusable: 1 (status: U_ZERO_ERROR)
  * printf("areConfusable: %d (status: %s)\n", result, u_errorName(status));
  * uspoof_close(sc);
  *     uspoof_getSkeleton(sc, 0, str, -1, skel, len, &status);
  *     UBool result = FALSE;
  *     for (size_t i=0; i<DICTIONARY_LENGTH; i++) {
- *         result = u_strCompare(skel, -1, skeletons[i], -1, FALSE) == 0;
+ *         result = u_strcmp(skel, skeletons[i]) == 0;
  *         if (result == TRUE) { break; }
  *     }
  *     // Has confusable in dictionary: 1 (status: U_ZERO_ERROR)