X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..2ca993e82fb37b597a3c73ecd1586a139a6579c5:/icuSources/test/cintltst/usettest.c diff --git a/icuSources/test/cintltst/usettest.c b/icuSources/test/cintltst/usettest.c index 32623a4c..dfc62fb6 100644 --- a/icuSources/test/cintltst/usettest.c +++ b/icuSources/test/cintltst/usettest.c @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (c) 2002-2014, International Business Machines +* Copyright (c) 2002-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ @@ -60,19 +60,19 @@ static void Testj2269() { } static const UChar PAT[] = {91,97,45,99,123,97,98,125,93,0}; /* "[a-c{ab}]" */ -static const int32_t PAT_LEN = (sizeof(PAT) / sizeof(PAT[0])) - 1; +static const int32_t PAT_LEN = UPRV_LENGTHOF(PAT) - 1; static const UChar PAT_lb[] = {0x6C, 0x62, 0}; /* "lb" */ -static const int32_t PAT_lb_LEN = (sizeof(PAT_lb) / sizeof(PAT_lb[0])) - 1; +static const int32_t PAT_lb_LEN = UPRV_LENGTHOF(PAT_lb) - 1; static const UChar VAL_SP[] = {0x53, 0x50, 0}; /* "SP" */ -static const int32_t VAL_SP_LEN = (sizeof(VAL_SP) / sizeof(VAL_SP[0])) - 1; +static const int32_t VAL_SP_LEN = UPRV_LENGTHOF(VAL_SP) - 1; static const UChar STR_bc[] = {98,99,0}; /* "bc" */ -static const int32_t STR_bc_LEN = (sizeof(STR_bc) / sizeof(STR_bc[0])) - 1; +static const int32_t STR_bc_LEN = UPRV_LENGTHOF(STR_bc) - 1; static const UChar STR_ab[] = {97,98,0}; /* "ab" */ -static const int32_t STR_ab_LEN = (sizeof(STR_ab) / sizeof(STR_ab[0])) - 1; +static const int32_t STR_ab_LEN = UPRV_LENGTHOF(STR_ab) - 1; /** * Basic API test for uset.x