QTextBoundaryFinder Class Reference

QTextBoundaryFinder Class Reference

#include <qtextboundaryfinder.h>

Class Description

Definition at line 56 of file qtextboundaryfinder.h.

Public Types

enum  BoundaryType { Grapheme, Word, Line, Sentence }
 
enum  BoundaryReason { NotAtBoundary = 0, StartWord = 1, EndWord = 2 }
 

Public Member Functions

 QTextBoundaryFinder ()
 
 QTextBoundaryFinder (const QTextBoundaryFinder &other)
 
QTextBoundaryFinderoperator= (const QTextBoundaryFinder &other)
 
 ~QTextBoundaryFinder ()
 
 QTextBoundaryFinder (BoundaryType type, const QString &string)
 
 QTextBoundaryFinder (BoundaryType type, const QChar *chars, int length, unsigned char *buffer=0, int bufferSize=0)
 
bool isValid () const
 
BoundaryType type () const
 
QString string () const
 
void toStart ()
 
void toEnd ()
 
int position () const
 
void setPosition (int position)
 
int toNextBoundary ()
 
int toPreviousBoundary ()
 
bool isAtBoundary () const
 
BoundaryReasons boundaryReasons () const
 

Member Enumeration Documentation

Enumerator
Grapheme 
Word 
Line 
Sentence 

Definition at line 64 of file qtextboundaryfinder.h.

Enumerator
NotAtBoundary 
StartWord 
EndWord 

Definition at line 71 of file qtextboundaryfinder.h.

Constructor & Destructor Documentation

QTextBoundaryFinder ( BoundaryType  type,
const QString string 
)
QTextBoundaryFinder ( BoundaryType  type,
const QChar chars,
int  length,
unsigned char *  buffer = 0,
int  bufferSize = 0 
)

Member Function Documentation

QTextBoundaryFinder& operator= ( const QTextBoundaryFinder other)
bool isValid ( ) const
inline

Definition at line 82 of file qtextboundaryfinder.h.

82 { return d; }
BoundaryType type ( ) const
inline

Definition at line 84 of file qtextboundaryfinder.h.

84 { return t; }
GLdouble GLdouble t
Definition: GLee.h:1181
QString string ( ) const
void toStart ( )
void toEnd ( )
int position ( ) const
void setPosition ( int  position)
int toNextBoundary ( )
int toPreviousBoundary ( )
bool isAtBoundary ( ) const
BoundaryReasons boundaryReasons ( ) const

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