/*
******************************************************************************
-* Copyright (C) 1999-2004, International Business Machines Corporation and *
+* Copyright (C) 1999-2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
*
// treat as an empty string
} else {
if(length<0) {
- length=uprv_strlen(src);
+ length=(int32_t)uprv_strlen(src);
}
if(cloneArrayIfNeeded(length, length, FALSE)) {
u_charsToUChars(src, getArrayStart(), length);
if(match == NULL) {
return -1;
} else {
- return match - fArray;
+ return (int32_t)(match - fArray);
}
}
if(match == NULL) {
return -1;
} else {
- return match - fArray;
+ return (int32_t)(match - fArray);
}
}
if(match == NULL) {
return -1;
} else {
- return match - fArray;
+ return (int32_t)(match - fArray);
}
}
if(match == NULL) {
return -1;
} else {
- return match - fArray;
+ return (int32_t)(match - fArray);
}
}
if(match == NULL) {
return -1;
} else {
- return match - fArray;
+ return (int32_t)(match - fArray);
}
}
if(match == NULL) {
return -1;
} else {
- return match - fArray;
+ return (int32_t)(match - fArray);
}
}
return TRUE;
}
U_NAMESPACE_END
+
+#ifdef U_STATIC_IMPLEMENTATION
+/*
+This should never be called. It is defined here to make sure that the
+virtual vector deleting destructor is defined within unistr.cpp.
+The vector deleting destructor is already a part of UObject,
+but defining it here makes sure that it is included with this object file.
+This makes sure that static library dependencies are kept to a minimum.
+*/
+static void uprv_UnicodeStringDummy(void) {
+ U_NAMESPACE_USE
+ delete [] (new UnicodeString[2]);
+}
+#endif
+