View into a shared RopeRefCountString slice.

Synopsis

Declared in <llvm/ADT/RewriteRope.h>

struct RopePiece;

Description

Large pieces can be split by creating two views over the same buffer with different offsets, without copying character data.

Member Functions

Name

Description

RopePiece [constructor]

Constructors

operator[]

Access the character at offset Offset within this piece.

size

Return the number of characters in this piece.

Data Members

Name

Description

EndOffs

Exclusive end offset into StrData‐>Data.

StartOffs

Inclusive start offset into StrData‐>Data.

StrData

Shared backing string for this slice.

Created with MrDocs