Rope that supports efficient mid‐string insert and erase.

Synopsis

Declared in <llvm/ADT/RewriteRope.h>

class RewriteRope;

Type Aliases

Name

Description

const_iterator

Const character iterator over the rope contents.

iterator

Character iterator over the rope contents.

Member Functions

Name

Description

RewriteRope [constructor]

Constructors

operator= [deleted]

Copy assignment is deleted.

assign

Replace the rope contents with the byte range []`Start,` End).

begin

Iterator to the first character.

clear

Remove all characters from the rope.

end

Past‐the‐end character iterator.

erase

Erase NumBytes characters beginning at Offset.

insert

Insert the byte range []`Start,` End) at character offset Offset.

size

Return the number of characters in the rope.

Created with MrDocs