/*
**********************************************************************
-* Copyright (C) 1999-2009, International Business Machines
+* Copyright (C) 1999-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*
#include "usc_impl.h"
#include "cmemory.h"
-#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
-
#define PAREN_STACK_DEPTH 32
#define MOD(sp) ((sp) % PAREN_STACK_DEPTH)
}
if (value >= 1 << 1) {
- value >>= 1;
+ //value >>= 1;
bit += 1;
}
static int32_t
getPairIndex(UChar32 ch)
{
- int32_t pairedCharCount = ARRAY_SIZE(pairedChars);
+ int32_t pairedCharCount = UPRV_LENGTHOF(pairedChars);
int32_t pairedCharPower = 1 << highBit(pairedCharCount);
int32_t pairedCharExtra = pairedCharCount - pairedCharPower;