std::unique_ptr< String > pTimeZone(new (std::nothrow) String(pIcuTZStr));
SysTryReturn(NID_LCL, pTimeZone, null, E_OUT_OF_MEMORY,
"[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
std::unique_ptr< String > pTimeZone(new (std::nothrow) String(pIcuTZStr));
SysTryReturn(NID_LCL, pTimeZone, null, E_OUT_OF_MEMORY,
"[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
-
- pTimeZone->Replace(L"_", L" ");
-
if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())) && pTZMap->ContainsKey(*(pTimeZone.get())))
{
std::unique_ptr< String > pDummyValue(new (std::nothrow) String());
if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())) && pTZMap->ContainsKey(*(pTimeZone.get())))
{
std::unique_ptr< String > pDummyValue(new (std::nothrow) String());
SysTryReturn(NID_LCL, pTimeZone, null, E_OUT_OF_MEMORY,
"[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
SysTryReturn(NID_LCL, pTimeZone, null, E_OUT_OF_MEMORY,
"[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
- pTimeZone->Replace(L"_", L" ");
-
if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())))
{
std::unique_ptr< String > pDummyValue (new (std::nothrow) String());
if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())))
{
std::unique_ptr< String > pDummyValue (new (std::nothrow) String());
SysLog(NID_LCL,"[E_FILE_NOT_FOUND] It is failed to get the tzlist from the ini file.");
return GetAvailableTimeZonesFallbackN();
}
SysLog(NID_LCL,"[E_FILE_NOT_FOUND] It is failed to get the tzlist from the ini file.");
return GetAvailableTimeZonesFallbackN();
}
+// SysTryReturn(NID_LCL, r == E_SUCCESS, null,E_FILE_NOT_FOUND, "[E_FILE_NOT_FOUND] It is failed to get the tzlist from the ini file.");
pTimeZoneMap->Construct();
pTimeZoneMap->Construct();
break;
}
SysTryReturn(NID_LCL, r == E_SUCCESS, null, r, "[%s] It is failed to read the tzlist.", GetErrorMessage(r));
break;
}
SysTryReturn(NID_LCL, r == E_SUCCESS, null, r, "[%s] It is failed to read the tzlist.", GetErrorMessage(r));
- pTimeZone->Replace(L"_", L" ");
pTimeZone->Replace(L"\n", L"\0");
if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())))
pTimeZone->Replace(L"\n", L"\0");
if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())))