Public Member Functions | Public Attributes | Static Public Attributes | List of all members
grepros.common.MatchMarkers Class Reference
Inheritance diagram for grepros.common.MatchMarkers:
Inheritance graph
[legend]

Public Member Functions

def populate (cls, value)
 

Public Attributes

 EMPTY
 
 EMPTY_REPL
 
 END
 
 ID
 
 START
 

Static Public Attributes

string EMPTY = START + END
 Placeholder for empty string match. More...
 
string EMPTY_REPL = "%s''%s" % (START, END)
 Replacement for empty string match. More...
 
string END = "</%s>" % ID
 Placeholder at end of match. More...
 
string ID = "matching"
 Unique marker for match highlight replacements. More...
 
string START = "<%s>" % ID
 Placeholder in front of match. More...
 

Detailed Description

Highlight markers for matches in message values.

Definition at line 50 of file common.py.

Member Function Documentation

◆ populate()

def grepros.common.MatchMarkers.populate (   cls,
  value 
)
Populates highlight markers with specified value.

Definition at line 65 of file common.py.

Member Data Documentation

◆ EMPTY [1/2]

string grepros.common.MatchMarkers.EMPTY = START + END
static

Placeholder for empty string match.

Definition at line 60 of file common.py.

◆ EMPTY [2/2]

grepros.common.MatchMarkers.EMPTY

Definition at line 70 of file common.py.

◆ EMPTY_REPL [1/2]

string grepros.common.MatchMarkers.EMPTY_REPL = "%s''%s" % (START, END)
static

Replacement for empty string match.

Definition at line 62 of file common.py.

◆ EMPTY_REPL [2/2]

grepros.common.MatchMarkers.EMPTY_REPL

Definition at line 71 of file common.py.

◆ END [1/2]

string grepros.common.MatchMarkers.END = "</%s>" % ID
static

Placeholder at end of match.

Definition at line 58 of file common.py.

◆ END [2/2]

grepros.common.MatchMarkers.END

Definition at line 69 of file common.py.

◆ ID [1/2]

string grepros.common.MatchMarkers.ID = "matching"
static

Unique marker for match highlight replacements.

Definition at line 54 of file common.py.

◆ ID [2/2]

grepros.common.MatchMarkers.ID

Definition at line 67 of file common.py.

◆ START [1/2]

string grepros.common.MatchMarkers.START = "<%s>" % ID
static

Placeholder in front of match.

Definition at line 56 of file common.py.

◆ START [2/2]

grepros.common.MatchMarkers.START

Definition at line 68 of file common.py.


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


grepros
Author(s): Erki Suurjaak
autogenerated on Sat Jan 6 2024 03:11:30