mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-5671 Replace udbg_stoi function with udbg_stod in testConvertDate
X-SVN-Rev: 24341
This commit is contained in:
parent
494effedc4
commit
afb75502d7
1 changed files with 2 additions and 2 deletions
|
@ -180,11 +180,11 @@ void DataDrivenFormatTest::testConvertDate(TestData *testData,
|
|||
if(date.startsWith(kMILLIS)) {
|
||||
UnicodeString millis = UnicodeString(date, kMILLIS.length());
|
||||
useDate = TRUE;
|
||||
fromDate = udbg_stoi(millis);
|
||||
fromDate = udbg_stod(millis);
|
||||
} else if(date.startsWith(kRELATIVE_MILLIS)) {
|
||||
UnicodeString millis = UnicodeString(date, kRELATIVE_MILLIS.length());
|
||||
useDate = TRUE;
|
||||
fromDate = udbg_stoi(millis) + now;
|
||||
fromDate = udbg_stod(millis) + now;
|
||||
} else if(date.startsWith(kRELATIVE_ADD)) {
|
||||
UnicodeString add = UnicodeString(date, kRELATIVE_ADD.length()); // "add" is a string indicating which fields to add
|
||||
if(fromSet.parseFrom(add, status)<0 || U_FAILURE(status)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue