Lines Matching refs:start_piece
289 MultiPiece *start_piece, *end_piece, *temp_piece;
333 start_piece = FindPiece(src, startPos, &start_first);
339 if (start_piece != end_piece) {
340 temp_piece = start_piece->next;
344 if ( ((start_piece->used = startPos - start_first) == 0) &&
345 !((start_piece->next == NULL) && (start_piece->prev == NULL)) )
346 RemovePiece(src, start_piece);
358 if ( (start_piece->used -= endPos - startPos) == 0) {
359 if ( !((start_piece->next == NULL) && (start_piece->prev == NULL)) )
360 RemovePiece(src, start_piece);
363 MyWStrncpy(start_piece->text + (startPos - start_first),
364 start_piece->text + (endPos - start_first),
365 (int) (start_piece->used - (startPos - start_first)) );
369 start_piece->text[src->multi_src.length - (endPos - startPos)] = (wchar_t)0;
382 start_piece = FindPiece(src, startPos, &start_first);
392 if (start_piece->used == (src->multi_src.piece_size - 1)) {
397 start_piece->used = src->multi_src.length =
402 start_piece->text[src->multi_src.length] = (wchar_t)0;
408 if (start_piece->used == src->multi_src.piece_size) {
409 BreakPiece(src, start_piece);
410 start_piece = FindPiece(src, startPos, &start_first);
413 fill = Min((int)(src->multi_src.piece_size - start_piece->used), length);
415 ptr = start_piece->text + (startPos - start_first);
417 (int) start_piece->used - (startPos - start_first));
423 start_piece->used += fill;
436 start_piece->text[start_piece->used] = (wchar_t)0;