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

typedef RopePieceBTree::iterator iterator
typedef RopePieceBTree::iterator const_iterator

Public Member Functions

 RewriteRope ()
 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 165 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 ( )

Definition at line 175 of file RewriteRope.h.

◆ RewriteRope() [2/2]

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

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

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

References clang::RopePieceBTree::insert().

◆ size()

unsigned clang::RewriteRope::size ( ) const

Definition at line 184 of file RewriteRope.h.

References clang::RopePieceBTree::size().

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

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