ICU-4078 disentangle conversion and properties code some from other parts of the common library

X-SVN-Rev: 16202
This commit is contained in:
Markus Scherer 2004-08-27 17:57:36 +00:00
parent 4804d98d00
commit 7620362878
2 changed files with 5 additions and 5 deletions

View File

@ -266,8 +266,10 @@ class DefaultCalendarFactory : public ICUResourceBundleFactory {
if(U_FAILURE(status)) {
return NULL;
} else {
UnicodeString *ret = new UnicodeString("@calendar=","");
(*ret) += UnicodeString(keyword, "");
UnicodeString *ret = new UnicodeString();
ret->append((UChar)0x40); // '@' is a variant character
ret->append(UNICODE_STRING("calendar=", 9));
(*ret) += UnicodeString(keyword, -1, US_INV);
return ret;
}
}

View File

@ -22,13 +22,11 @@ U_NAMESPACE_BEGIN
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(LowercaseTransliterator)
static const char CURR_ID[] = "Any-Lower";
/**
* Constructs a transliterator.
*/
LowercaseTransliterator::LowercaseTransliterator(const Locale& theLoc) :
Transliterator(UnicodeString(CURR_ID, ""), 0),
Transliterator(UNICODE_STRING("Any-Lower", 9), 0),
loc(theLoc) , buffer(0)
{
buffer = (UChar *)uprv_malloc(u_getMaxCaseExpansion()*sizeof(buffer[0]));