Subgroup: String
Class: QgsStringReplacement¶
-
class
qgis.core.
QgsStringReplacement
¶ Bases:
sip.wrapper
A representation of a single string replacement.
New in version 3.0: Methods
caseSensitive
Returns true if match is case sensitive fromProperties
Creates a new QgsStringReplacement from an encoded properties map. match
Returns the string matched by this object process
Processes a given input string, applying any valid replacements which should be made. properties
Returns a map of the replacement properties. replacement
Returns the string to replace matches with wholeWordOnly
Returns true if match only applies to whole words, or false if partial word matches are permitted Attributes
-
caseSensitive
(self) → bool¶ Returns true if match is case sensitive
-
fromProperties
(properties: Dict[str, str]) → QgsStringReplacement¶ Creates a new QgsStringReplacement from an encoded properties map.
See also
-
match
(self) → str¶ Returns the string matched by this object
-
process
(self, input: str) → str¶ Processes a given input string, applying any valid replacements which should be made.
Parameters: input – input string Returns: input string with any matches replaced by replacement string
-
properties
(self) → Dict[str, str]¶ Returns a map of the replacement properties.
See also
-
replacement
(self) → str¶ Returns the string to replace matches with
-
wholeWordOnly
(self) → bool¶ Returns true if match only applies to whole words, or false if partial word matches are permitted
-