ICU-12751 use cstr instead of toUTF8String

X-SVN-Rev: 39311
This commit is contained in:
Steven R. Loomis 2016-09-21 19:40:11 +00:00
parent 4d580c2834
commit 370abbf3b9

View File

@ -15,6 +15,7 @@
#include "unicode/ulocdata.h"
#include "unicode/ucnv.h"
#include "unicode/unistr.h"
#include "cstr.h"
/*
To add a new enum type
@ -691,8 +692,9 @@ void KnownIssues::add(const char *ticket, const char *where, const UChar *msg, U
}
if(msg==NULL || !*msg) return;
std::string str;
fTable[ticket][where].insert(icu::UnicodeString(msg).toUTF8String(str));
const icu::UnicodeString ustr(msg);
fTable[ticket][where].insert(std::string(CStr(ustr)()));
}
void KnownIssues::add(const char *ticket, const char *where, const char *msg, UBool *firstForTicket, UBool *firstForWhere)