/********************************************************************
+ * © 2016 and later: Unicode, Inc. and others.
+ * License & terms of use: http://www.unicode.org/copyright.html#License
+ *************************************************************************
+ *************************************************************************
* COPYRIGHT:
- * Copyright (c) 1999-2002, International Business Machines Corporation and
+ * Copyright (c) 1999-2003, International Business Machines Corporation and
* others. All Rights Reserved.
- ********************************************************************/
+ *************************************************************************/
#include "unicode/unistr.h"
#include <stdio.h>
#include <stdlib.h>
+using namespace icu;
+
// Verify that a UErrorCode is successful; exit(1) if not
void check(UErrorCode& status, const char* msg) {
if (U_FAILURE(status)) {
actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
buf[actualLen] = 0;
printf("%s", buf);
- delete buf;
+ delete[] buf;
}