Lines Matching refs:columns
32 int32_t columns; /* number of columns, plus two for start & limit values */
44 upvec_open(int32_t columns, UErrorCode *pErrorCode) {
52 if(columns<1) {
56 columns+=2; /* count range start and limit columns */
59 v=(uint32_t *)uprv_malloc(UPVEC_INITIAL_ROWS*columns*4);
68 pv->columns=columns;
74 uprv_memset(row, 0, pv->rows*columns*4);
77 row+=columns;
81 row+=columns;
97 int32_t columns, i, start, limit, prevRow;
99 columns=pv->columns;
104 row=pv->v+prevRow*columns;
109 } else if(rangeStart<(UChar32)(row+=columns)[1]) {
113 } else if(rangeStart<(UChar32)(row+=columns)[1]) {
122 row+=columns;
137 row=pv->v+i*columns;
150 return pv->v+start*columns;
160 int32_t columns;
170 column<0 || column>=(pv->columns-2)
182 columns=pv->columns;
183 column+=2; /* skip range start and limit columns */
218 newVectors=(uint32_t *)uprv_malloc(newMaxRows*columns*4);
223 uprv_memcpy(newVectors, pv->v, (size_t)rows*columns*4);
232 count = (int32_t)((pv->v+rows*columns)-(lastRow+columns));
235 lastRow+(1+splitFirstRow+splitLastRow)*columns,
236 lastRow+columns,
244 count = (int32_t)((lastRow-firstRow)+columns);
245 uprv_memmove(firstRow+columns, firstRow, (size_t)count*4);
246 lastRow+=columns;
249 firstRow[1]=firstRow[columns]=(uint32_t)start;
250 firstRow+=columns;
256 uprv_memcpy(lastRow+columns, lastRow, (size_t)columns*4);
259 lastRow[1]=lastRow[columns]=(uint32_t)limit;
264 pv->prevRow=(int32_t)((lastRow-(pv->v))/columns);
275 firstRow+=columns;
284 if(pv->isCompacted || c<0 || c>UPVEC_MAX_CP || column<0 || column>=(pv->columns-2)) {
296 int32_t columns;
302 columns=pv->columns;
303 row=pv->v+rowIndex*columns;
317 int32_t i, count, columns;
319 count=columns=pv->columns; /* includes start/limit columns */
327 if(++i==columns) {
338 int32_t i, columns, valueColumns, rows, count;
357 columns=pv->columns;
358 U_ASSERT(columns>=3); /* upvec_open asserts this */
359 valueColumns=columns-2; /* not counting start & limit */
362 uprv_sortArray(pv->v, rows, columns*4,
390 row+=columns;
430 row+=columns;
446 *pColumns=pv->columns-2;
464 byteLength=pv->rows*(pv->columns-2)*4;
475 *pColumns=pv->columns-2;
500 int32_t rowIndex, uint32_t *row, int32_t columns,