summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp')
-rw-r--r--Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp b/Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp
index 2eea148f4e1..af25e2090d2 100644
--- a/Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp
+++ b/Build/source/libs/icu/icu-src/source/samples/ustring/ustring.cpp
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
-* Copyright (C) 2016 and later: Unicode, Inc. and others.
+* © 2016 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html#License
*
*******************************************************************************
@@ -12,7 +12,7 @@
*
*******************************************************************************
* file name: ustring.c
-* encoding: US-ASCII
+* encoding: UTF-8
* tab size: 8 (not used)
* indentation:4
*
@@ -31,6 +31,10 @@
#include "unicode/ucnv.h"
#include "unicode/unistr.h"
+#ifndef UPRV_LENGTHOF
+#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
+#endif
+
// helper functions -------------------------------------------------------- ***
// default converter for the platform encoding