clang 19.0.0git
Public Types | Public Member Functions | List of all members
clang::RewriteRope Class Reference

RewriteRope - A powerful string class. More...

#include "clang/Rewrite/Core/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]

clang::RewriteRope::RewriteRope ( )

◆ RewriteRope() [2/2]

clang::RewriteRope::RewriteRope ( const RewriteRope RHS)

Definition at line 182 of file RewriteRope.h.

Member Function Documentation

◆ assign()

void clang::RewriteRope::assign ( const char *  Start,
const char *  End 

Definition at line 199 of file RewriteRope.h.

References clear(), and clang::RopePieceBTree::insert().

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

◆ begin()

iterator clang::RewriteRope::begin ( ) const

Definition at line 191 of file RewriteRope.h.

References clang::RopePieceBTree::begin().

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

◆ clear()

void clang::RewriteRope::clear ( )

Definition at line 195 of file RewriteRope.h.

References clang::RopePieceBTree::clear().

Referenced by assign().

◆ end()

iterator clang::RewriteRope::end ( ) const

Definition at line 192 of file RewriteRope.h.

References clang::RopePieceBTree::end().

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

◆ erase()

void clang::RewriteRope::erase ( unsigned  Offset,
unsigned  NumBytes 

◆ insert()

void clang::RewriteRope::insert ( unsigned  Offset,
const char *  Start,
const char *  End 

◆ operator=()

RewriteRope & clang::RewriteRope::operator= ( const RewriteRope )

◆ size()

unsigned clang::RewriteRope::size ( ) const

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