+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
-* Copyright (C) 2009-2010, International Business Machines Corporation and *
-* others. All Rights Reserved. *
+* Copyright (C) 2009-2011, International Business Machines Corporation and
+* others. All Rights Reserved.
*******************************************************************************
*/
U_CAPI IZRule* U_EXPORT2
izrule_open(const UChar* name, int32_t nameLength, int32_t rawOffset, int32_t dstSavings) {
UnicodeString s(nameLength==-1, name, nameLength);
- return (IZRule*) new InitialTimeZoneRule(name, rawOffset, dstSavings);
+ return (IZRule*) new InitialTimeZoneRule(s, rawOffset, dstSavings);
}
U_CAPI void U_EXPORT2