Re: string.c questions

2003-08-04 Thread Leopold Toetsch
Benjamin Goldberg <[EMAIL PROTECTED]> wrote: > To what does 'bufused' refer? The number of bytes from where to where? Number of bytes from strstart to "strend". > I *thought* that it was from bufstart to the end of the string... no? No, bufstart is the physical buffer start used for reallocati

Re: string.c questions

2003-08-03 Thread Benjamin Goldberg
Leopold Toetsch wrote: > > Benjamin Goldberg <[EMAIL PROTECTED]> wrote: > > > Also, although we're told at the top of string.c to not look at > > s->bufstart or s->buflen, I'd like to know if we are allowed to > > assume/assert that for all strings, the following is true: > > >s->encoding-

Re: string.c questions

2003-08-03 Thread Benjamin Goldberg
Luke Palmer wrote: > > Benjamin Golberg writes: > > Actually, these are mostly questions about the string_str_index > > function. > > Uh oh... > > > I've some questions about bufstart, strstart, bufused, strlen and > > encoding->characters? > > > > In string_str_index_multibyte, the lastmatch

Re: string.c questions

2003-08-03 Thread Leopold Toetsch
Benjamin Goldberg <[EMAIL PROTECTED]> wrote: > Also, although we're told at the top of string.c to not look at > s->bufstart or s->buflen, I'd like to know if we are allowed to > assume/assert that for all strings, the following is true: >s->encoding->skip_forward( s->strstart, s->strlen ) ==

Re: string.c questions

2003-08-02 Thread Luke Palmer
Benjamin Golberg writes: > Actually, these are mostly questions about the string_str_index > function. Uh oh... > I've some questions about bufstart, strstart, bufused, strlen and > encoding->characters? > > In string_str_index_multibyte, the lastmatch variable is calculated as: > > const v

string.c questions

2003-08-02 Thread Benjamin Goldberg
Actually, these are mostly questions about the string_str_index function. I've some questions about bufstart, strstart, bufused, strlen and encoding->characters? I *think* that ->characters is a fuction which gets passed a pointer to the start of a buffer, and the number of bytes in the buffer,