toOffset
virtual void DeleteText(int32 fromOffset, int32 toOffset);
void _Refresh(int32 fromOffset, int32 toOffset,
int32 toOffset);
int32 toOffset,
u_long toOffset;
msdosfs_lookup_ino(toDirBsdNode, NULL, toBsdName.Data(), &toCluster, &toOffset));
status = assign_inode_and_get(bsdVolume, toCluster, toOffset, &toBsdNode);
status = msdosfs_lookup_ino(toDirBsdNode, NULL, toBsdName.Data(), &toCluster, &toOffset);
move_block(int fd, off_t fromOffset, off_t toOffset, uint8* buffer, int32 size)
if (write_pos(fd, toOffset, buffer, size) != size) {
move_partition(int fd, off_t fromOffset, off_t toOffset, off_t size,
error = move_block(fd, fromOffset, toOffset, buffer, buffer_size);
toOffset += buffer_size;
error = move_block(fd, fromOffset, toOffset, buffer, remainingSize);
size_t samples, size_t toOffset, size_t toLength) {
ASSERT(toOffset < toLength);
size_t n = toOffset;
size_t samples, size_t toOffset, size_t toLength) {
ASSERT(toOffset < toLength);
size_t n = toOffset;
uint32 toOffset,
for(n = toOffset, nLength = samples;
for(n = toOffset, nLength = samples;
for(n = toOffset, nLength = samples;
for(n = toOffset, nLength = samples;
toOffset += samples;
if(toOffset >= toLength)
toOffset -= toLength;
return toOffset;
size_t toOffset,
for(n = toOffset, nLength = samples;
for(n = toOffset, nLength = samples;
for(n = toOffset, nLength = samples;
for(n = toOffset, nLength = samples;
toOffset += samples;
if(toOffset >= toLength)
toOffset -= toLength;
return toOffset;
NummericalTextView::DeleteText(int32 fromOffset, int32 toOffset)
InputTextView::DeleteText(fromOffset, toOffset);
int32 toOffset);
int32 toOffset)
BTextView::DeleteText(fromOffset, toOffset);
virtual void DeleteText(int32 fromOffset, int32 toOffset);
virtual void DeleteText(int32 fromOffset, int32 toOffset);
URLInputGroup::URLTextView::DeleteText(int32 fromOffset, int32 toOffset)
BTextView::DeleteText(fromOffset, toOffset);
_BTextInput_::DeleteText(int32 fromOffset, int32 toOffset)
BTextView::DeleteText(fromOffset, toOffset);
virtual void DeleteText(int32 fromOffset, int32 toOffset);
BTextView::DeleteText(int32 fromOffset, int32 toOffset)
if (toOffset < 0)
toOffset = 0;
else if (toOffset > fText->Length())
toOffset = fText->Length();
if (fromOffset >= toOffset)
fText->RemoveRange(fromOffset, toOffset);
fLines->RemoveLineRange(fromOffset, toOffset);
fStyles->RemoveStyleRange(fromOffset, toOffset);
int32 range = toOffset - fromOffset;
if (fSelStart >= toOffset) {
} else if (fSelStart >= fromOffset && fSelEnd <= toOffset) {
} else if (fSelStart >= fromOffset && fSelEnd > toOffset) {
fSelEnd = fromOffset + fSelEnd - toOffset;
} else if (fSelStart < fromOffset && fSelEnd < toOffset) {
} else if (fSelStart < fromOffset && fSelEnd >= toOffset) {
BTextView::_Refresh(int32 fromOffset, int32 toOffset, int32 scrollTo)
int32 toLine = _LineAt(toOffset);
int32 toOffset = _FindLineBreak(fromOffset, &ascent, &descent, &width);
if (toOffset < nextOffset && fromOffset < textLength)
toOffset = nextOffset;
if (lineIndex > fLines->NumLines() || toOffset < nextLine->offset) {
newLine.offset = toOffset;
nextLine->offset = toOffset;
&& toOffset >= ((*fLines)[lineIndex] + 1)->offset) {
int32 toOffset = (offset < limit) ? offset : limit;
*inOutWidth = _TabExpandedStyledWidth(fromOffset, toOffset - fromOffset,
BTextView::_DoDeleteText(int32 fromOffset, int32 toOffset)
int32 toOffset = endOffset;
toOffset = (theRun + 1)->offset + startOffset;
toOffset = (toOffset > endOffset) ? endOffset : toOffset;
_ApplyStyleRange(fromOffset, toOffset, B_FONT_ALL, &theRun->font,
BTextView::_ApplyStyleRange(int32 fromOffset, int32 toOffset, uint32 mode,
toOffset = fText->Length();
fStyles->SetStyleRange(fromOffset, toOffset, fText->Length(), mode,
BTextView::LineBuffer::RemoveLineRange(int32 fromOffset, int32 toOffset)
int32 toLine = OffsetToLine(toOffset);
BumpOffset(fromOffset - toOffset, fromLine + 1);
int32 toOffset);
BTextView::StyleBuffer::SetStyleRange(int32 fromOffset, int32 toOffset,
if (fromOffset == toOffset) {
if (toOffset < runEnd) {
newDesc.offset = toOffset;
} while (offset < toOffset);
if (offset == toOffset && runIndex < fStyleRunDesc.ItemCount()
BTextView::StyleBuffer::RemoveStyleRange(int32 fromOffset, int32 toOffset)
int32 toIndex = fStyleRunDesc.OffsetToRun(toOffset) - 1;
fStyleRunDesc.BumpOffset(fromOffset - toOffset, fromIndex + 1);
int32 toOffset) const
int32 toIndex = OffsetToRun(toOffset - 1);
int32 toOffset, int32 textLen,
int32 toOffset);
TabFilteringTextView::DeleteText(int32 fromOffset, int32 toOffset)
BTextView::DeleteText(fromOffset, toOffset);
virtual void DeleteText(int32 fromOffset, int32 toOffset);
VMAnonymousCache::_FreeSwapPageRange(off_t fromOffset, off_t toOffset,
off_t toIndex = toOffset >> PAGE_SHIFT;
off_t toOffset, bool skipBusyPages = true);