Lines Matching defs:length

228  *                 length - maximum number of characters to read.
233 ReadText(w, pos, text, length)
237 int length;
246 text->length = (length > count) ? count : length;
247 return(pos + text->length);
268 int length, firstPos;
318 ((src->ascii_src.length - (endPos - startPos)) <
320 start_piece->text[src->ascii_src.length - (endPos - startPos)] = '\0';
324 src->ascii_src.length += -(endPos - startPos) + text->length;
326 if ( text->length != 0) {
334 length = text->length;
337 while (length > 0) {
347 start_piece->used = src->ascii_src.length =
349 start_piece->text[src->ascii_src.length] = '\0';
360 fill = Min((int)(src->ascii_src.piece_size - start_piece->used), length);
370 length -= fill;
415 return(src->ascii_src.length);
419 if (position > src->ascii_src.length)
420 position = src->ascii_src.length;
423 if (position == src->ascii_src.length)
425 * Scanning right from src->ascii_src.length???
427 return(src->ascii_src.length);
494 return(src->ascii_src.length);
514 if (position >= src->ascii_src.length)
515 return(src->ascii_src.length);
554 buf = XtMalloc(sizeof(unsigned char) * text->length);
555 strncpy(buf, (text->ptr + text->firstPos), text->length);
561 : *(buf + text->length - count - 1)) ) {
562 if (count == (text->length - 1))
600 return(position - (text->length - 1));
881 string = XtMalloc(sizeof(unsigned char) * src->ascii_src.length + 1);
887 string[src->ascii_src.length] = '\0'; /* NULL terminate this sucker. */
916 src->ascii_src.length = 0;
918 src->ascii_src.length = strlen(src->ascii_src.string);
922 src->ascii_src.piece_size = src->ascii_src.length;
982 src->ascii_src.length = ftell (file);
985 src->ascii_src.length = 0;
1004 local_str = XtMalloc((src->ascii_src.length + 1) *sizeof(unsigned char));
1005 if (src->ascii_src.length != 0) {
1008 src->ascii_src.length, file) != src->ascii_src.length )
1012 local_str[src->ascii_src.length] = '\0';
1023 * piece_size = length;
1024 * piece->used = src->ascii_src.length;
1029 piece->used = Min(src->ascii_src.length, src->ascii_src.piece_size);
1035 left = src->ascii_src.length;