]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/charstr.h
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / common / charstr.h
index 3f4302a1c98648e71069cdb48fdc59a1ed56351b..3bb11cbad35f93a86d6dcaf0ed07baeedc05e8cf 100644 (file)
@@ -34,7 +34,7 @@ public:
     //     @param  str    The unicode string to be converted to char *
     //     @param  codepage   The char * code page.  ""   for invariant conversion.
     //                                               NULL for default code page.
-    inline CharString(const UnicodeString& str, const char *codepage);
+//    inline CharString(const UnicodeString& str, const char *codepage);
 #endif
 
     inline CharString(const UnicodeString& str);
@@ -51,6 +51,9 @@ private:
 
 #if !UCONFIG_NO_CONVERSION
 
+// PLEASE DON'T USE THIS FUNCTION.
+// We don't want the static dependency on conversion or the performance hit that comes from a codepage conversion.
+/*
 inline CharString::CharString(const UnicodeString& str, const char *codepage) {
     int32_t    len;
     ptr = buf;
@@ -59,7 +62,7 @@ inline CharString::CharString(const UnicodeString& str, const char *codepage) {
         ptr = (char *)uprv_malloc(len+1);
         str.extract(0, 0x7FFFFFFF, ptr, len+1, codepage);
     }
-}
+}*/
 
 #endif