Changeset 2169
- Timestamp:
- 09/21/08 22:28:58 (4 months ago)
- Files:
-
- libswish3/trunk/src/libswish3/libswish3.h (modified) (1 diff)
- libswish3/trunk/src/libswish3/tokenizer.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/libswish3/libswish3.h
r2166 r2169 285 285 xmlChar *value; 286 286 xmlChar *context; 287 unsigned int cpts; // num of codepoints (characters)288 287 unsigned int len; 289 288 int ref_cnt; libswish3/trunk/src/libswish3/tokenizer.c
r2166 r2169 378 378 /* grab the current buffer and point ->value into the buffer */ 379 379 buf = xmlBufferContent(tl->buf); 380 buf += xmlBufferLength(tl->buf); // point at last byte which till become first byte380 buf += xmlBufferLength(tl->buf); // point at last byte which will become first byte 381 381 stoken->value = (xmlChar*)buf; 382 stoken->cpts = swish_utf8_num_chrs(token);383 382 stoken->len = token_len - 1; // -1 to exlude the NULL 384 383 stoken->pos = ++tl->pos; … … 440 439 t->context = NULL; 441 440 t->value = NULL; 442 t->cpts = 0;443 441 t->len = 0; 444 442 t->ref_cnt = 0; … … 477 475 t->context = %s\n\ 478 476 t->meta = %d [%s]\n\ 479 t->cpts = %d\n\480 477 t->len = %d\n\ 481 478 t->value = %s\n\ 482 ", t->ref_cnt, t->pos, t->context, t->meta->id, t->meta->name, t-> cpts, t->len, t->value);479 ", t->ref_cnt, t->pos, t->context, t->meta->id, t->meta->name, t->len, t->value); 483 480 484 481 }
