/*
*******************************************************************************
*
-* Copyright (C) 2002-2010, International Business Machines
+* Copyright (C) 2002-2011, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
#include "utrie2.h"
#include "uarrsort.h"
#include "propsvec.h"
+#include "uassert.h"
struct UPropsVectors {
uint32_t *v;
static uint32_t *
_findRow(UPropsVectors *pv, UChar32 rangeStart) {
uint32_t *row;
- int32_t columns, i, start, limit, prevRow, rows;
+ int32_t columns, i, start, limit, prevRow;
columns=pv->columns;
- rows=limit=pv->rows;
+ limit=pv->rows;
prevRow=pv->prevRow;
/* check the vicinity of the last-seen row (start searching with an unrolled loop) */
rows=pv->rows;
columns=pv->columns;
+ U_ASSERT(columns>=3); /* upvec_open asserts this */
valueColumns=columns-2; /* not counting start & limit */
/* sort the properties vectors to find unique vector values */