From: Hokwon Song Date: Tue, 9 Apr 2013 04:49:30 +0000 (+0900) Subject: Replace append to insert in String, since the arabic locale X-Git-Tag: accepted/tizen_2.1/20130425.034849~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=813cb199149a30441ed3b23230cfc3c0af43af7b;p=framework%2Fosp%2Fappfw.git Replace append to insert in String, since the arabic locale Change-Id: I07bba63784c165d98047cec317cb8db7827d7366 Signed-off-by: Hokwon Song --- diff --git a/src/locales/FLcl_LocaleImpl.cpp b/src/locales/FLcl_LocaleImpl.cpp index b5f0bb5..224aea1 100644 --- a/src/locales/FLcl_LocaleImpl.cpp +++ b/src/locales/FLcl_LocaleImpl.cpp @@ -145,9 +145,9 @@ _LocaleImpl::GetLanguageName(String& languageName) const { U_ICU_NAMESPACE::UnicodeString icuScriptStr; String languageScriptName = _LocaleData::GetOspString(__icuLocale.getDisplayScript(icuScriptStr)); - languageName.Append(L" ("); - languageName.Append(languageScriptName); - languageName.Append(L")"); + languageName.Insert(L" (", languageName.GetLength()); + languageName.Insert(languageScriptName, languageName.GetLength()); + languageName.Insert(L")", languageName.GetLength()); } return E_SUCCESS; } @@ -167,9 +167,9 @@ _LocaleImpl::GetLanguageName(const _LocaleImpl& otherLocale, String& languageNam { U_ICU_NAMESPACE::UnicodeString icuScriptStr; String languageScriptName = _LocaleData::GetOspString(__icuLocale.getDisplayScript(otherLocale.__icuLocale, icuScriptStr)); - languageName.Append(L" ("); - languageName.Append(languageScriptName); - languageName.Append(L")"); + languageName.Insert(L" (", languageName.GetLength()); + languageName.Insert(languageScriptName, languageName.GetLength()); + languageName.Insert(L")", languageName.GetLength()); } return E_SUCCESS; }