/*
******************************************************************************
*
- * Copyright (C) 1998-2011, International Business Machines
+ * Copyright (C) 1998-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
*/
#include "unicode/ustdio.h"
+
+#if !UCONFIG_NO_CONVERSION
+
#include "unicode/putil.h"
#include "cmemory.h"
#include "cstring.h"
int32_t idx = 0;
UBool isError = FALSE;
- U16_APPEND(buf, idx, sizeof(buf)/sizeof(*buf), uc, isError);
+ U16_APPEND(buf, idx, UPRV_LENGTHOF(buf), uc, isError);
if (isError) {
return U_EOF;
}
/* shift the buffer if it isn't empty */
if(dataSize != 0) {
- uprv_memmove(f->fUCBuffer, str->fPos, dataSize * sizeof(UChar)); /* not accessing beyond memory */
+ u_memmove(f->fUCBuffer, str->fPos, dataSize); /* not accessing beyond memory */
}
return read;
}
+#endif