/*
*******************************************************************************
*
-* Copyright (C) 2002-2011, International Business Machines
+* Copyright (C) 2002-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
-* file name: utf.h
+* file name: utf_old.h
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
* Code point comparisons need to be in uint32_t because UChar32
* may be a signed type, and negative values must be recognized.
*
- * @deprecated ICU 2.4. Use U8_LENGTH instead, see utf_old.h.
+ * @deprecated ICU 2.4. Use U8_LENGTH instead, see utf.h.
*/
#if 1
# define UTF8_CHAR_LENGTH(c) \
#include <unicode/translit.h>
#include <unicode/uset.h>
#include <unicode/uclean.h>
+#include <unicode/utf16.h>
#include <stdio.h>
#include <errno.h>
#include "unicode/utypes.h"
#include "unicode/putil.h"
#include "unicode/ctest.h"
+
+#if U_NO_DEFAULT_INCLUDE_UTF_HEADERS
+/* deprecated - make tests pass with U_NO_DEFAULT_INCLUDE_UTF_HEADERS */
+#include "unicode/utf_old.h"
+#endif
+
#include <stdlib.h>
#ifndef U_USE_DEPRECATED_API
#include "unicode/fmtable.h"
#include "unicode/testlog.h"
+
+#if U_NO_DEFAULT_INCLUDE_UTF_HEADERS
+/* deprecated - make tests pass with U_NO_DEFAULT_INCLUDE_UTF_HEADERS */
+#include "unicode/utf_old.h"
+#endif
+
/**
* \def ICU_USE_THREADS
*
* Enables multi-threaded testing. Moved here from uconfig.h.
* Default: enabled
*
- * This switched used to allow thread support (use of mutexes) to be compiled out of ICU.
+ * This switch used to allow thread support (use of mutexes) to be compiled out of ICU.
*/
#ifdef ICU_USE_THREADS
/* Use the predefined value. */
#include "unicode/ucharstrie.h"
#include "unicode/bytestrie.h"
#include "unicode/ucnv.h"
+#include "unicode/utf16.h"
#include "charstr.h"
#include "dictionarydata.h"
/*
*******************************************************************************
*
-* Copyright (C) 1998-2011, International Business Machines
+* Copyright (C) 1998-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#include "read.h"
#include "errmsg.h"
#include "unicode/ustring.h"
+#include "unicode/utf16.h"
#define OPENBRACE 0x007B
#define CLOSEBRACE 0x007D
#include "uelement.h"
#include "uinvchar.h"
#include "ustr_imp.h"
-
+#include "unicode/utf16.h"
/*
* Align binary data at a 16-byte offset from the start of the resource bundle,
* to be safe for any data type it may contain.
/*
*******************************************************************************
*
-* Copyright (C) 1998-2011, International Business Machines
+* Copyright (C) 1998-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#include "cstring.h"
#include "unicode/ustring.h"
#include "unicode/putil.h"
+#include "unicode/utf16.h"
/* Protos */
static void ustr_resize(struct UString *s, int32_t len, UErrorCode *status);
#include "ustr.h"
#include "prscmnts.h"
#include "unicode/unistr.h"
+#include "unicode/utf8.h"
+#include "unicode/utf16.h"
#include <time.h>
U_NAMESPACE_USE
return NULL;
}
- if((destLen+UTF8_CHAR_LENGTH(c)) < destCap){
+ if((destLen+U8_LENGTH(c)) < destCap){
/* ASCII Range */
if(c <=0x007F){