clang  8.0.0svn
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 167 of file RewriteRope.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 181 of file RewriteRope.h.

◆ iterator

Definition at line 180 of file RewriteRope.h.

Constructor & Destructor Documentation

◆ RewriteRope() [1/2]

clang::RewriteRope::RewriteRope ( )
default

◆ RewriteRope() [2/2]

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

Definition at line 178 of file RewriteRope.h.

Member Function Documentation

◆ assign()

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

◆ begin()

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

Definition at line 183 of file RewriteRope.h.

References clang::RopePieceBTree::begin().

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

◆ clear()

void clang::RewriteRope::clear ( )
inline

Definition at line 187 of file RewriteRope.h.

References clang::RopePieceBTree::clear().

◆ end()

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

Definition at line 184 of file RewriteRope.h.

References clang::RopePieceBTree::end().

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

◆ erase()

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

◆ insert()

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

◆ size()

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

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