• Home
  • Raw
  • Download

Lines Matching full:columns

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