Lines Matching defs:length

239  *                 length - maximum number of characters to read.
244 ReadText(w, pos, text, length)
248 int length;
257 text->length = (length > (int)count) ? count : length;
258 return(pos + text->length);
279 int length, firstPos;
327 ((src->ascii_src.length - (endPos - startPos)) <
329 start_piece->text[src->ascii_src.length - (endPos - startPos)] = '\0';
333 src->ascii_src.length += -(endPos - startPos) + text->length;
335 if ( text->length != 0) {
343 length = text->length;
346 while (length > 0) {
356 start_piece->used = src->ascii_src.length =
358 start_piece->text[src->ascii_src.length] = '\0';
369 fill = Min((int)(src->ascii_src.piece_size - start_piece->used), length);
379 length -= fill;
427 return(src->ascii_src.length);
431 if (position > src->ascii_src.length)
432 position = src->ascii_src.length;
435 if (position == src->ascii_src.length)
437 * Scanning right from src->ascii_src.length???
439 return(src->ascii_src.length);
507 return(src->ascii_src.length);
527 if (position >= src->ascii_src.length)
528 return(src->ascii_src.length);
567 buf = XtMalloc((unsigned)sizeof(unsigned char) * text->length);
568 strncpy(buf, (text->ptr + text->firstPos), text->length);
575 : *(buf + text->length - count - 1)) ) {
576 if (count == (text->length - 1))
614 return(position - (text->length - 1));
948 src->ascii_src.length + 1);
954 string[src->ascii_src.length] = '\0'; /* NULL terminate this sucker. */
986 src->ascii_src.length = 0;
991 src->ascii_src.length = strlen(src->ascii_src.string);
995 src->ascii_src.length = strlen(src->ascii_src.string);
996 /* In case the length resource is incorrectly set */
997 if (src->ascii_src.length > (long)src->ascii_src.ascii_length)
998 src->ascii_src.ascii_length = src->ascii_src.length;
1001 src->ascii_src.piece_size = src->ascii_src.length;
1052 src->ascii_src.length = (XawTextPosition) ftell(file);
1065 src->ascii_src.length = 0;
1081 local_str = XtMalloc((unsigned) (src->ascii_src.length + 1)
1083 if (src->ascii_src.length != 0) {
1085 src->ascii_src.length = fread(local_str, (Size_t)sizeof(unsigned char),
1086 (Size_t)src->ascii_src.length, file);
1087 if (src->ascii_src.length <= 0)
1091 local_str[src->ascii_src.length] = '\0';
1101 piece->used = Min(src->ascii_src.length, src->ascii_src.piece_size);
1107 left = src->ascii_src.length;