clang  12.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)
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 166 of file RewriteRope.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 180 of file RewriteRope.h.

◆ iterator

Definition at line 179 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 177 of file RewriteRope.h.

Member Function Documentation

◆ assign()

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

◆ begin()

iterator clang::RewriteRope::begin ( ) const

Definition at line 182 of file RewriteRope.h.

References clang::RopePieceBTree::begin().

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

◆ clear()

void clang::RewriteRope::clear ( )

Definition at line 186 of file RewriteRope.h.

References clang::RopePieceBTree::clear().

◆ end()

iterator clang::RewriteRope::end ( ) const

Definition at line 183 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 

◆ size()

unsigned clang::RewriteRope::size ( ) const

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