Lines Matching refs:start_piece
277 Piece *start_piece, *end_piece, *temp_piece;
288 start_piece = FindPiece(src, startPos, &start_first);
297 if (start_piece != end_piece) {
298 temp_piece = start_piece->next;
304 if ( ((start_piece->used = startPos - start_first) == 0) &&
305 !((start_piece->next == NULL) && (start_piece->prev == NULL)) )
306 RemovePiece(src, start_piece);
318 if ( (start_piece->used -= endPos - startPos) == 0) {
319 if ( !((start_piece->next == NULL) && (start_piece->prev == NULL)) )
320 RemovePiece(src, start_piece);
323 MyStrncpy(start_piece->text + (startPos - start_first),
324 start_piece->text + (endPos - start_first),
325 (int) (start_piece->used - (startPos - start_first)) );
329 start_piece->text[src->ascii_src.length - (endPos - startPos)] = '\0';
341 start_piece = FindPiece(src, startPos, &start_first);
351 if (start_piece->used == (src->ascii_src.piece_size - 1)) {
356 start_piece->used = src->ascii_src.length =
358 start_piece->text[src->ascii_src.length] = '\0';
364 if (start_piece->used == src->ascii_src.piece_size) {
365 BreakPiece(src, start_piece);
366 start_piece = FindPiece(src, startPos, &start_first);
369 fill = Min((int)(src->ascii_src.piece_size - start_piece->used), length);
371 ptr = start_piece->text + (startPos - start_first);
373 (int) start_piece->used - (startPos - start_first));
378 start_piece->used += fill;
384 start_piece->text[start_piece->used] = '\0';