Index: source/common/ustr_imp.h |
diff --git a/source/common/ustr_imp.h b/source/common/ustr_imp.h |
index ee54d332ef04590796e0f7f2ea66aeedc8a3da28..a746016d2c2faff399757a4c3d5ef81bbd195ee5 100644 |
--- a/source/common/ustr_imp.h |
+++ b/source/common/ustr_imp.h |
@@ -1,6 +1,6 @@ |
/* |
********************************************************************** |
-* Copyright (C) 1999-2011, International Business Machines |
+* Copyright (C) 1999-2015, International Business Machines |
* Corporation and others. All Rights Reserved. |
********************************************************************** |
* file name: ustr_imp.h |
@@ -63,6 +63,25 @@ u_strcmpFold(const UChar *s1, int32_t length1, |
UErrorCode *pErrorCode); |
/** |
+ * Interanl API, used for detecting length of |
+ * shared prefix case-insensitively. |
+ * @param s1 input string 1 |
+ * @param length1 length of string 1, or -1 (NULL terminated) |
+ * @param s2 input string 2 |
+ * @param length2 length of string 2, or -1 (NULL terminated) |
+ * @param options compare options |
+ * @param matchLen1 (output) length of partial prefix match in s1 |
+ * @param matchLen2 (output) length of partial prefix match in s2 |
+ * @param pErrorCode receives error status |
+ */ |
+U_CAPI void |
+u_caseInsensitivePrefixMatch(const UChar *s1, int32_t length1, |
+ const UChar *s2, int32_t length2, |
+ uint32_t options, |
+ int32_t *matchLen1, int32_t *matchLen2, |
+ UErrorCode *pErrorCode); |
+ |
+/** |
* Are the Unicode properties loaded? |
* This must be used before internal functions are called that do |
* not perform this check. |