Lines 1735-1748
Link Here
|
1735 |
} |
1735 |
} |
1736 |
} |
1736 |
} |
1737 |
} else { |
1737 |
} else { |
1738 |
UnicodeString icutzprop; |
1738 |
UVector customProps(uprv_deleteUObject, uhash_compareUnicodeString, status); |
1739 |
UVector customProps(nullptr, uhash_compareUnicodeString, status); |
|
|
1740 |
if (olsonzid.length() > 0 && icutzver.length() > 0) { |
1739 |
if (olsonzid.length() > 0 && icutzver.length() > 0) { |
1741 |
icutzprop.append(olsonzid); |
1740 |
LocalPointer<UnicodeString> icutzprop(new UnicodeString(ICU_TZINFO_PROP), status); |
1742 |
icutzprop.append(u'['); |
1741 |
icutzprop->append(olsonzid); |
1743 |
icutzprop.append(icutzver); |
1742 |
icutzprop->append(u'['); |
1744 |
icutzprop.append(u']'); |
1743 |
icutzprop->append(icutzver); |
1745 |
customProps.addElement(&icutzprop, status); |
1744 |
icutzprop->append(u']'); |
|
|
1745 |
customProps.adoptElement(icutzprop.orphan(), status); |
1746 |
} |
1746 |
} |
1747 |
writeZone(writer, *tz, &customProps, status); |
1747 |
writeZone(writer, *tz, &customProps, status); |
1748 |
} |
1748 |
} |