X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FDocIterator.h;h=b73a61ec8ef6bce3846939bda412cf45810f5c5d;hb=1712e4f35e3e8cb132f731dca773f7767a241bf6;hp=14baf2566fd38e8da45a48f36e3ebe054417cb22;hpb=1ec0b390f5eab86253f121e5a098ce4f3c97a98b;p=lyx.git diff --git a/src/DocIterator.h b/src/DocIterator.h index 14baf2566f..b73a61ec8e 100644 --- a/src/DocIterator.h +++ b/src/DocIterator.h @@ -51,6 +51,10 @@ public: /// access to owning buffer void setBuffer(Buffer * buf) { buffer_ = buf; } + /// Clone this for given \p buffer. + /// \p buffer must be a clone of buffer_. + DocIterator clone(Buffer * buffer) const; + /// access slice at position \p i CursorSlice const & operator[](size_t i) const { return slices_[i]; } /// access slice at position \p i @@ -355,10 +359,6 @@ private: std::vector data_; }; -/// Indicate if the character pointed by dit is a letter. -/// This function takes care of spellchecker escape chars. -bool isLetter(DocIterator const & dit); - } // namespace lyx #endif // DOCITERATOR_H