Lines Matching refs:start_piece
266 Piece *start_piece, *end_piece, *temp_piece;
277 start_piece = FindPiece(src, startPos, &start_first);
288 if (start_piece != end_piece) {
289 temp_piece = start_piece->next;
295 if ( ((start_piece->used = startPos - start_first) == 0) &&
296 !((start_piece->next == NULL) && (start_piece->prev == NULL)) )
297 RemovePiece(src, start_piece);
309 if ( (start_piece->used -= endPos - startPos) == 0) {
310 if ( !((start_piece->next == NULL) && (start_piece->prev == NULL)) )
311 RemovePiece(src, start_piece);
314 MyStrncpy(start_piece->text + (startPos - start_first),
315 start_piece->text + (endPos - start_first),
316 (int) (start_piece->used - (startPos - start_first)) );
320 start_piece->text[src->ascii_src.length - (endPos - startPos)] = '\0';
332 start_piece = FindPiece(src, startPos, &start_first);
342 if (start_piece->used == (src->ascii_src.piece_size - 1)) {
347 start_piece->used = src->ascii_src.length =
349 start_piece->text[src->ascii_src.length] = '\0';
355 if (start_piece->used == src->ascii_src.piece_size) {
356 BreakPiece(src, start_piece);
357 start_piece = FindPiece(src, startPos, &start_first);
360 fill = Min((int)(src->ascii_src.piece_size - start_piece->used), length);
362 ptr = start_piece->text + (startPos - start_first);
364 (int) start_piece->used - (startPos - start_first));
369 start_piece->used += fill;
375 start_piece->text[start_piece->used] = '\0';