]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/io/ufmt_cmn.h
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / io / ufmt_cmn.h
index 29a4a07fc61426b64d565911dfb946f95ff33756..f712bb3e1fb87623826ac03f9db68115c595dff2 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1998-2004, International Business Machines
+*   Copyright (C) 1998-2011, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
 #define UFMT_CMN_H
 
 #include "unicode/utypes.h"
+#include "unicode/utf16.h"
 
 #define UFMT_DEFAULT_BUFFER_SIZE 128
-#define MAX_UCHAR_BUFFER_SIZE(buffer) (sizeof(buffer)/(UTF_MAX_CHAR_LENGTH*sizeof(UChar)))
-#define MAX_UCHAR_BUFFER_NEEDED(strLen) ((strLen+1)*UTF_MAX_CHAR_LENGTH*sizeof(UChar))
+#define MAX_UCHAR_BUFFER_SIZE(buffer) (sizeof(buffer)/(U16_MAX_LENGTH*sizeof(UChar)))
+#define MAX_UCHAR_BUFFER_NEEDED(strLen) ((strLen+1)*U16_MAX_LENGTH*sizeof(UChar))
 
 /** 
  * Enum representing the possible argument types for uprintf/uscanf