Lines Matching defs:length

250  *                length - maximum number of characters to read.
255 ReadText(w, pos, text, length)
259 int length;
269 text->length = (length > count) ? count : length;
270 return(pos + text->length);
291 int length, firstPos;
301 if ( u_text_p->length == 0 ) /* if so, the block contents never ref'd. */
302 text.length = 0;
307 text.length = u_text_p->length;
312 /* WARNING! u_text->firstPos and length are in units of CHAR, not CHARACTERS! */
316 text.length = u_text_p->length; /* _XawTextMBToWC converts this to wchar len. */
319 &(u_text_p->ptr[u_text_p->firstPos]), &(text.length) );
322 depends on length, it has no need of a terminating NULL. I think
324 /*((wchar_t*)text.ptr)[ text.length ] = NULL;*/
367 ((src->multi_src.length - (endPos - startPos)) <
369 start_piece->text[src->multi_src.length - (endPos - startPos)] = (wchar_t)0;
373 src->multi_src.length += text.length -(endPos - startPos);
374 /*((TextWidget)src->object.parent)->text.lastPos = src->multi_src.length;*/
380 if ( text.length != 0) {
384 length = text.length;
387 while (length > 0) {
397 start_piece->used = src->multi_src.length =
399 /*((TextWidget)src->object.parent)->text.lastPos = src->multi_src.length;*/
402 start_piece->text[src->multi_src.length] = (wchar_t)0;
413 fill = Min((int)(src->multi_src.piece_size - start_piece->used), length);
424 length -= fill;
480 return(src->multi_src.length);
487 if (position > src->multi_src.length)
488 position = src->multi_src.length;
492 if (position == src->multi_src.length)
493 return(src->multi_src.length);
557 return(src->multi_src.length);
577 if (position >= src->multi_src.length)
578 return(src->multi_src.length);
630 /*if the block was FMT8BIT, length will convert to REAL wchar count below */
631 wtarget_len = text->length;
657 if (count == (text->length - 1))
1032 int char_count = src->multi_src.length;
1084 src->multi_src.length = 0;
1087 int length;
1094 length = strlen(src->multi_src.string);
1097 (void) _XawTextMBToWC(d, src->multi_src.string, &length);
1098 src->multi_src.length = (XawTextPosition) length;
1100 src->multi_src.length = strlen(src->multi_src.string);
1101 /* In case the length resource is incorrectly set */
1102 if (src->multi_src.length > src->multi_src.multi_length)
1103 src->multi_src.multi_length = src->multi_src.length;
1106 src->multi_src.piece_size = src->multi_src.length;
1111 /*((TextWidget)src->object.parent)->text.lastPos = src->multi_src.length;*/
1164 src->multi_src.length = ftell (file);
1177 src->multi_src.length = 0;
1186 CAUTION: You must have src->multi_src.length set to file length bytes
1187 when src->multi_src.type == XawAsciiFile. src->multi_src.length must be
1188 the length of the parameter string if string is non-NULL. */
1205 * in as MB length, out as WC length. We want local_length to be
1208 int local_length = src->multi_src.length;
1213 * src->multi_src.length is currently string's * byte count,
1217 src->multi_src.length = (XawTextPosition) local_length;
1227 if (src->multi_src.length != 0) {
1229 XtMalloc((unsigned)(src->multi_src.length + 1) * sizeof(unsigned char));
1231 src->multi_src.length = fread (temp_mb_holder,
1233 (Size_t)src->multi_src.length, file);
1234 if (src->multi_src.length <= 0)
1238 local_length = src->multi_src.length;
1240 src->multi_src.length = local_length;
1256 src->multi_src.length = sizeof err_text;
1257 local_length = src->multi_src.length;
1259 src->multi_src.length = local_length;
1263 temp_mb_holder[src->multi_src.length] = '\0';*/
1270 piece->used = Min(src->multi_src.length, src->multi_src.piece_size);