/***********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2011, International Business Machines Corporation
+ * Copyright (c) 1997-2016, International Business Machines Corporation
* and others. All Rights Reserved.
***********************************************************************/
#include "unicode/numfmt.h"
#include "unicode/choicfmt.h"
#include "unicode/gregocal.h"
+#include "cmemory.h"
#include "putilimp.h"
// *****************************************************************************
UnicodeString("xyz"),
UnicodeString("abc")
};
- int32_t formats_length = (int32_t)(sizeof(formats)/sizeof(formats[0]));
+ int32_t formats_length = UPRV_LENGTHOF(formats);
UErrorCode status = U_ZERO_ERROR;
ChoiceFormat *cf = new ChoiceFormat(limits, formats, formats_length);
failure(status, "new ChoiceFormat");