]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/numfmt/util.cpp
ICU-62108.0.1.tar.gz
[apple/icu.git] / icuSources / samples / numfmt / util.cpp
index b4025444991645576d6eaf6910517b0d73b035b3..ad6f008b7ee8f9d736f836d6be7de1e258f87470 100644 (file)
@@ -1,14 +1,20 @@
 /********************************************************************
+ *   © 2016 and later: Unicode, Inc. and others.
+ *   License & terms of use: http://www.unicode.org/copyright.html#License
+ *************************************************************************
+ *************************************************************************
  * COPYRIGHT:
- * Copyright (c) 1999-2003, International Business Machines Corporation and
+ * Copyright (c) 1999-2009, International Business Machines Corporation and
  * others. All Rights Reserved.
- ********************************************************************/
+ *************************************************************************/
 
 #include "unicode/unistr.h"
 #include "unicode/fmtable.h"
 #include <stdio.h>
 #include <stdlib.h>
 
+using namespace icu;
+
 enum {
     U_SPACE=0x20,
     U_DQUOTE=0x22,
@@ -72,7 +78,7 @@ void uprintf(const UnicodeString &str) {
     }
     printf("%s", buf);
     if(buf != stackBuffer) {
-        delete buf;
+        delete[] buf;
     }
 }