Skip to content

PythonQt.QtCore.QTextBoundaryFinder · declarations 001

Back to PythonQt.QtCore.QTextBoundaryFinder

BoundaryReason instance-attribute

BoundaryReason: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

BoundaryReasons instance-attribute

BoundaryReasons: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

BoundaryType instance-attribute

BoundaryType: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

BreakOpportunity instance-attribute

BreakOpportunity: Any

EndOfItem instance-attribute

EndOfItem: Any

Grapheme instance-attribute

Grapheme: Any

Line instance-attribute

Line: Any

MandatoryBreak instance-attribute

MandatoryBreak: Any

NotAtBoundary instance-attribute

NotAtBoundary: Any

Sentence instance-attribute

Sentence: Any

SoftHyphen instance-attribute

SoftHyphen: Any

StartOfItem instance-attribute

StartOfItem: Any

Word instance-attribute

Word: Any

boundaryReasons

boundaryReasons() -> Any

X.boundaryReasons()

Supplemental documentation: Qt 5 reference:

QTextBoundaryFinder::BoundaryReasons QTextBoundaryFinder::boundaryReasons() const

Returns the reasons for the boundary finder to have chosen the current position as a boundary.

Upstream PySide2 reference signatures (binding differences may apply):

boundaryReasons(self) -> PySide2.QtCore.QTextBoundaryFinder.BoundaryReasons

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#boundaryReasons

isAtBoundary

isAtBoundary() -> bool

X.isAtBoundary() -> bool

Supplemental documentation: Qt 5 reference:

bool QTextBoundaryFinder::isAtBoundary() const

Returns true if the object's position() is currently at a valid text boundary.

Upstream PySide2 reference signatures (binding differences may apply):

isAtBoundary(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#isAtBoundary

isValid

isValid() -> bool

X.isValid() -> bool

Supplemental documentation: Qt 5 reference:

bool QTextBoundaryFinder::isValid() const

Returns true if the text boundary finder is valid; otherwise returns false. A default QTextBoundaryFinder is invalid.

Upstream PySide2 reference signatures (binding differences may apply):

isValid(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#isValid

position

position() -> int

X.position() -> int

Supplemental documentation: Qt 5 reference:

int QTextBoundaryFinder::position() const

Returns the current position of the QTextBoundaryFinder.

The range is from 0 (the beginning of the string) to the length of the string inclusive.

See also setPosition().

Upstream PySide2 reference signatures (binding differences may apply):

position(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#position

setPosition

setPosition(position: int) -> None

X.setPosition(position)

Supplemental documentation: Qt 5 reference:

void QTextBoundaryFinder::setPosition(int position)

Sets the current position of the QTextBoundaryFinder to position.

If position is out of bounds, it will be bound to only valid positions. In this case, valid positions are from 0 to the length of the string inclusive.

See also position().

Upstream PySide2 reference signatures (binding differences may apply):

setPosition(self, position: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#setPosition

string

string() -> str

X.string() -> str

Supplemental documentation: Qt 5 reference:

QString QTextBoundaryFinder::string() const

Returns the string the QTextBoundaryFinder object operates on.

Upstream PySide2 reference signatures (binding differences may apply):

string(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#string

toEnd

toEnd() -> None

X.toEnd()

Supplemental documentation: Qt 5 reference:

void QTextBoundaryFinder::toEnd()

Moves the finder to the end of the string. This is equivalent to setPosition(string.length()).

See also setPosition() and position().

Upstream PySide2 reference signatures (binding differences may apply):

toEnd(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#toEnd

toNextBoundary

toNextBoundary() -> int

X.toNextBoundary() -> int

Supplemental documentation: Qt 5 reference:

int QTextBoundaryFinder::toNextBoundary()

Moves the QTextBoundaryFinder to the next boundary position and returns that position.

Returns -1 if there is no next boundary.

Upstream PySide2 reference signatures (binding differences may apply):

toNextBoundary(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#toNextBoundary

toPreviousBoundary

toPreviousBoundary() -> int

X.toPreviousBoundary() -> int

Supplemental documentation: Qt 5 reference:

int QTextBoundaryFinder::toPreviousBoundary()

Moves the QTextBoundaryFinder to the previous boundary position and returns that position.

Returns -1 if there is no previous boundary.

Upstream PySide2 reference signatures (binding differences may apply):

toPreviousBoundary(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#toPreviousBoundary

toStart

toStart() -> None

X.toStart()

Supplemental documentation: Qt 5 reference:

void QTextBoundaryFinder::toStart()

Moves the finder to the start of the string. This is equivalent to setPosition(0).

See also setPosition() and position().

Upstream PySide2 reference signatures (binding differences may apply):

toStart(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#toStart

type

type() -> Any

X.type()

Supplemental documentation: Qt 5 reference:

QTextBoundaryFinder::BoundaryType QTextBoundaryFinder::type() const

Returns the type of the QTextBoundaryFinder.

Upstream PySide2 reference signatures (binding differences may apply):

type(self) -> PySide2.QtCore.QTextBoundaryFinder.BoundaryType

Source: https://doc.qt.io/archives/qt-5.15/qtextboundaryfinder.html#type