clang  7.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 ( )

◆ RewriteRope() [2/2]

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

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

References clang::RopePieceBTree::begin().

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

◆ clear()

void clang::RewriteRope::clear ( )

Definition at line 187 of file RewriteRope.h.

References clang::RopePieceBTree::clear().

◆ end()

iterator clang::RewriteRope::end ( ) const

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 

Definition at line 203 of file RewriteRope.h.

References End, and clang::RopePieceBTree::erase().

◆ insert()

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

Definition at line 197 of file RewriteRope.h.

References clang::RopePieceBTree::insert().

◆ size()

unsigned clang::RewriteRope::size ( ) const

Definition at line 185 of file RewriteRope.h.

References clang::RopePieceBTree::size().

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

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