LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::RewriteRope Class Reference

RewriteRope - A powerful string class. More...

#include "llvm/ADT/RewriteRope.h"

Public Types

using iterator = RopePieceBTree::iterator
 
using const_iterator = RopePieceBTree::iterator
 

Public Member Functions

 RewriteRope ()=default
 
 RewriteRope (const RewriteRope &RHS)
 
RewriteRopeoperator= (const RewriteRope &)=delete
 
iterator begin () const
 
iterator end () const
 
unsigned size () const
 
void clear ()
 
void assign (const char *Start, const char *End)
 
void insert (unsigned Offset, const char *Start, const char *End)
 
void erase (unsigned Offset, unsigned NumBytes)
 

Detailed Description

RewriteRope - A powerful string class.

This class supports extremely efficient insertions and deletions into the middle of it, even for ridiculously long strings.

Definition at line 171 of file RewriteRope.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 189 of file RewriteRope.h.

◆ iterator

Definition at line 188 of file RewriteRope.h.

Constructor & Destructor Documentation

◆ RewriteRope() [1/2]

llvm::RewriteRope::RewriteRope ( )
default

◆ RewriteRope() [2/2]

llvm::RewriteRope::RewriteRope ( const RewriteRope RHS)
inline

Definition at line 182 of file RewriteRope.h.

Member Function Documentation

◆ assign()

void llvm::RewriteRope::assign ( const char Start,
const char End 
)
inline

Definition at line 197 of file RewriteRope.h.

References clear(), End, and llvm::RopePieceBTree::insert().

Referenced by llvm::RewriteBuffer::Initialize().

◆ begin()

iterator llvm::RewriteRope::begin ( ) const
inline

Definition at line 191 of file RewriteRope.h.

References llvm::RopePieceBTree::begin().

Referenced by llvm::RewriteBuffer::begin().

◆ clear()

void llvm::RewriteRope::clear ( )
inline

Definition at line 195 of file RewriteRope.h.

References llvm::RopePieceBTree::clear().

Referenced by assign().

◆ end()

iterator llvm::RewriteRope::end ( ) const
inline

Definition at line 192 of file RewriteRope.h.

References llvm::RopePieceBTree::end().

Referenced by llvm::RewriteBuffer::end().

◆ erase()

void llvm::RewriteRope::erase ( unsigned  Offset,
unsigned  NumBytes 
)
inline

◆ insert()

void llvm::RewriteRope::insert ( unsigned  Offset,
const char Start,
const char End 
)
inline

◆ operator=()

RewriteRope & llvm::RewriteRope::operator= ( const RewriteRope )
delete

◆ size()

unsigned llvm::RewriteRope::size ( ) const
inline

The documentation for this class was generated from the following files: