Changeset 2169

Show
Ignore:
Timestamp:
09/21/08 22:28:58 (4 months ago)
Author:
karpet
Message:

nevermind with cpts.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/libswish3.h

    r2166 r2169  
    285285    xmlChar            *value; 
    286286    xmlChar            *context;         
    287     unsigned int        cpts;           // num of codepoints (characters)  
    288287    unsigned int        len; 
    289288    int                 ref_cnt; 
  • libswish3/trunk/src/libswish3/tokenizer.c

    r2166 r2169  
    378378    /* grab the current buffer and point ->value into the buffer */ 
    379379    buf = xmlBufferContent(tl->buf); 
    380     buf += xmlBufferLength(tl->buf);    // point at last byte which till become first byte 
     380    buf += xmlBufferLength(tl->buf);    // point at last byte which will become first byte 
    381381    stoken->value = (xmlChar*)buf; 
    382     stoken->cpts = swish_utf8_num_chrs(token); 
    383382    stoken->len = token_len - 1;    // -1 to exlude the NULL 
    384383    stoken->pos = ++tl->pos; 
     
    440439    t->context = NULL; 
    441440    t->value = NULL; 
    442     t->cpts = 0; 
    443441    t->len = 0; 
    444442    t->ref_cnt = 0; 
     
    477475    t->context      = %s\n\ 
    478476    t->meta         = %d [%s]\n\ 
    479     t->cpts         = %d\n\ 
    480477    t->len          = %d\n\ 
    481478    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); 
    483480 
    484481}