• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libiconv-1.11/tools/

Lines Matching refs:row

55   int (*row_byte) (int row); /* returns the 1st byte value for a given row */
57 int (*byte_row) (int byte); /* converts a 1st byte value to a row, else -1 */
61 const char* byte_row_expr; /* format string for 1st byte value to row */
64 /* You'll understand the terms "row" and "col" when you buy Ken Lunde's book.
65 Once a row is fixed, choosing a "col" is the same as choosing a "cell". */
66 int* charsetpage; /* charsetpage[0..rows]: how large is a page for a row */
109 int row, col, i, i1, i2, c, j;
112 for (row = 0; row < enc->rows; row++)
113 enc->charset2uni[row] = (int*) malloc(enc->cols*sizeof(int));
115 for (row = 0; row < enc->rows; row++)
117 enc->charset2uni[row][col] = 0xfffd;
138 row = enc->byte_row(i1);
140 if (row < 0 || col < 0) {
144 if (scanf(" 0x%x", &enc->charset2uni[row][col]) != 1)
175 int row, col;
177 for (row = 0; row < enc->rows; row++)
179 if (enc->charset2uni[row][col] >= 0x10000)
194 int i, row, col, nurows;
199 for (row = 0; row < enc->rows; row++)
201 upages[enc->charset2uni[row][col] >> shift] = 0;
225 for (row = 0; row < enc->rows; row++)
226 enc->charset2uni[row] = (int*) malloc(enc->cols*sizeof(int));
227 for (row = 0; row < enc->rows; row++)
229 int u = old_charset2uni[row][col];
230 enc->charset2uni[row][col] =
247 int row, col;
251 for (row = 0; row <= enc->rows; row++)
252 enc->charsetpage[row] = 0;
254 for (row = 0; row < enc->rows; row++) {
257 if (enc->charset2uni[row][col] != enc->fffd)
259 enc->charsetpage[row] = used;
268 int n, row, lastrow;
273 for (row = 0; row < enc->rows; row++)
274 if (enc->charsetpage[row] > 0 && (row == 0 || enc->charsetpage[row-1] == 0)) {
275 for (lastrow = row; enc->charsetpage[lastrow+1] > 0; lastrow++);
276 enc->charsetblocks[n].start = row * enc->cols;
288 int nurows, row, col, lastrow, col_max, i, i1_min, i1_max;
308 for (row = 0; row < enc->rows; row++)
309 if (enc->charsetpage[row] > 0) {
310 if (row == 0 || enc->charsetpage[row-1] == 0) {
312 for (lastrow = row; enc->charsetpage[lastrow+1] > 0; lastrow++);
314 name, enc->row_byte(row),
315 (lastrow-row) * enc->cols + enc->charsetpage[lastrow]);
317 printf(" /""* 0x%02x *""/\n ", enc->row_byte(row));
318 col_max = (enc->charsetpage[row+1] > 0 ? enc->cols : enc->charsetpage[row]);
320 printf(" 0x%04x,", enc->charset2uni[row][col]);
324 if (enc->charsetpage[row+1] == 0) {
408 int row, col, lastrow, r, col_max, i, i1_min, i1_max;
411 enc->charset2uni[row][col] - enc->charset2uni[row][col/stepsize*stepsize]
420 for (row = 0; row < enc->rows; row++)
421 if (enc->charsetpage[row] > 0) {
422 if (row == 0 || enc->charsetpage[row-1] == 0) {
424 for (lastrow = row; enc->charsetpage[lastrow+1] > 0; lastrow++);
426 name, enc->row_byte(row),
427 steps_per_row*(lastrow-row+1));
428 for (r = row; r <= lastrow; r++) {
431 if (((r-row) % 4) == 3 && (r < lastrow)) printf("\n ");
436 name, enc->row_byte(row),
437 (lastrow-row) * enc->cols + enc->charsetpage[lastrow]);
439 printf(" /""* 0x%02x *""/\n ", enc->row_byte(row));
440 col_max = (enc->charsetpage[row+1] > 0 ? enc->cols : enc->charsetpage[row]);
442 printf(" 0x%02x,", enc->charset2uni[row][col] - enc->charset2uni[row][col/stepsize*stepsize]);
446 if (enc->charsetpage[row+1] == 0) {
474 printf(" unsigned int row = ");
480 printf(" unsigned int i = %d * row + col;\n", enc->cols);
492 printf("(row-%d)", enc->charsetblocks[i].start / enc->cols);
494 printf("row");
525 int row, col, j;
532 for (row = 0; row < enc->rows; row++)
534 j = enc->charset2uni[row][col];
536 enc->uni2charset[j] = 0x100 * enc->row_byte(row) + enc->col_byte(col);
552 int row, col, j, p, j1, j2, t;
556 for (row = 0; row < enc->rows; row++)
558 j = enc->charset2uni[row][col];
681 int i, row, col, j, p, j1, j2, indx;
691 for (row = 0; row < enc->rows; row++)
693 j = enc->charset2uni[row][col];
860 static int row_byte_normal (int row) { return 0x21+row; }
911 static int row_byte_cns11643 (int row) {
912 return 0x100 * (row / 94) + (row % 94) + 0x21;
940 static int row_byte_gbk1 (int row) {
941 return 0x81+row;
1000 static int row_byte_gbk2 (int row) {
1001 return 0x81+row;
1066 int row, col, i, i1, i2, c, j;
1069 for (row = 0; row < enc->rows; row++)
1070 enc->charset2uni[row] = (int*) malloc(enc->cols*sizeof(int));
1072 for (row = 0; row < enc->rows; row++)
1074 enc->charset2uni[row][col] = 0xfffd;
1103 row = enc->byte_row(i1);
1105 if (row < 0 || col < 0) {
1109 enc->charset2uni[row][col] = j;
1158 static int row_byte_uhc_1 (int row) {
1159 return 0x81 + row;
1203 static int row_byte_uhc_2 (int row) {
1204 return 0xa1 + row;
1248 static int row_byte_big5 (int row) {
1249 return 0xa1+row;
1291 static int row_byte_hkscs (int row) {
1292 return 0x80+row;
1323 static int row_byte_johab_hangul (int row) {
1324 return 0x84+row;
1366 static int row_byte_sjis (int row) {
1367 return (row >= 0x1f ? 0xc1 : 0x81) + row;
1662 #define row_convert(row) \
1663 ((row) >= 0x121 && (row) <= 0x17E ? row-289 : /* 0..93 */ \
1664 (row) == 0x221 ? row-451 : /* 94 */ \
1665 (row) >= 0x223 && (row) <= 0x225 ? row-452 : /* 95..97 */ \
1666 (row) == 0x228 ? row-454 : /* 98 */ \
1667 (row) >= 0x22C && (row) <= 0x22F ? row-457 : /* 99..102 */ \
1668 (row) >= 0x26E && (row) <= 0x27E ? row-519 : /* 103..119 */ \
1696 unsigned int row, col;
1712 row = strtoul(&line[2],NULL,16);
1742 assert((unsigned int) row_convert(row) < 120);
1744 table[row_convert(row)][col-0x21] = ucs;
1788 unsigned int row;
1789 for (row = 0; row < 0x300; row++) {
1790 unsigned int rowc = row_convert(row);
1792 printf(" /* 0x%X21..0x%X7E */\n",row,row);
1851 unsigned int plane, row, col;
1866 row = strtoul(&line[3],NULL,16);
1902 assert(row <= 0x7f);
1904 table[ucs] = (plane << 15) | (row << 8) | col;
2021 printf("static ucs4_t jisx0213_to_ucs4 (unsigned int row, unsigned int col)\n");
2025 printf(" if (row >= 0x121 && row <= 0x17e)\n");
2026 printf(" row -= 289;\n");
2027 printf(" else if (row == 0x221)\n");
2028 printf(" row -= 451;\n");
2029 printf(" else if (row >= 0x223 && row <= 0x225)\n");
2030 printf(" row -= 452;\n");
2031 printf(" else if (row == 0x228)\n");
2032 printf(" row -= 454;\n");
2033 printf(" else if (row >= 0x22c && row <= 0x22f)\n");
2034 printf(" row -= 457;\n");
2035 printf(" else if (row >= 0x26e && row <= 0x27e)\n");
2036 printf(" row -= 519;\n");
2045 printf(" val = jisx0213_to_ucs_main[row * 94 + col];\n");