Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: source/test/cintltst/nfsprep.c

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/cintltst/ncnvtst.c ('k') | source/test/cintltst/nucnvtst.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/nfsprep.c
diff --git a/source/test/cintltst/nfsprep.c b/source/test/cintltst/nfsprep.c
index 61b11214beb9051e28d34de5a1980aec7b5a0e3f..b5b0d40d23f5024378b50653afa57cc8e0d96c24 100644
--- a/source/test/cintltst/nfsprep.c
+++ b/source/test/cintltst/nfsprep.c
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
- * Copyright (C) 2003-2007, International Business Machines
+ * Copyright (C) 2003-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -21,8 +21,8 @@
#include "nfsprep.h"
#include "ustr_imp.h"
#include "cintltst.h"
+#include "cmemory.h"
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
#define NFS4_MAX_BUFFER_SIZE 1000
#define PREFIX_SUFFIX_SEPARATOR 0x0040 /* '@' */
@@ -195,7 +195,7 @@ getPrefixSuffix(const char *src, int32_t srcLength,
*prefixLen = i;
*suffixLen = srcLength - i;
/* special prefixes must not be followed by suffixes! */
- if((findStringIndex(special_prefixes,LENGTHOF(special_prefixes), *prefix, *prefixLen-1) != -1) && (*suffix != NULL)){
+ if((findStringIndex(special_prefixes,UPRV_LENGTHOF(special_prefixes), *prefix, *prefixLen-1) != -1) && (*suffix != NULL)){
*status = U_PARSE_ERROR;
return;
}
« no previous file with comments | « source/test/cintltst/ncnvtst.c ('k') | source/test/cintltst/nucnvtst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698