Public Member Functions | |
def | __init__ |
def | SetOptions |
def | SetColors |
def | Color |
def | RecordPattern |
def | AddFilePattern |
def | AddFileNamePattern |
def | AddFileType |
def | AddRegExPattern |
def | AddRegExRemoveLine |
def | AddSimplePattern |
def | AddWord |
def | AddWarningPattern |
def | AddPattern |
def | MatchFile |
def | SubstituteLine |
def | ProcessFile |
def | ProcessFiles |
def | ProcessDir |
def | __str__ |
def | Describe |
Static Public Member Functions | |
def | CreateTempFile |
Public Attributes | |
name | |
options | |
file_filters | |
patterns | |
Static Public Attributes | |
tuple | context = LineNoContextClass(FilePath, 0) |
list | Content = [] |
int | nChanges = 0 |
tuple | SourceFile = open(FilePath, 'r') |
tuple | new_line = self.SubstituteLine(line, context) |
tuple | OutputFile = ProcessorClass.CreateTempFile(FilePath) |
OutputPath = OutputFile.name | |
Definition at line 193 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.__init__ | ( | self, | |
name | |||
) |
Supported keyword arguments: "options"
Definition at line 194 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.__str__ | ( | self | ) |
Definition at line 402 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddFileNamePattern | ( | self, | |
name_pattern | |||
) |
Definition at line 229 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddFilePattern | ( | self, | |
pattern | |||
) |
Definition at line 222 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddFileType | ( | self, | |
suffixes | |||
) |
Definition at line 232 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddPattern | ( | self, | |
pattern, | |||
repl, | |||
exceptions = [] |
|||
) |
Definition at line 261 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddRegExPattern | ( | self, | |
pattern, | |||
repl, | |||
exceptions = [] |
|||
) |
Definition at line 238 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddRegExRemoveLine | ( | self, | |
pattern, | |||
exceptions = [] |
|||
) |
Definition at line 243 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddSimplePattern | ( | self, | |
pattern, | |||
repl, | |||
exceptions = [] |
|||
) |
Definition at line 248 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddWarningPattern | ( | self, | |
pattern, | |||
msg, | |||
exceptions = [] |
|||
) |
Definition at line 256 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.AddWord | ( | self, | |
word, | |||
repl, | |||
exceptions = [] |
|||
) |
Definition at line 253 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.Color | ( | self, | |
msg, | |||
category | |||
) |
Definition at line 214 of file SerialSubstitution.py.
|
static |
Definition at line 419 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.Describe | ( | self | ) |
Definition at line 404 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.MatchFile | ( | self, | |
FilePath | |||
) |
Definition at line 265 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.ProcessDir | ( | self, | |
DirPath | |||
) |
Returns the number of files processor actually acted on
Definition at line 369 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.ProcessFile | ( | self, | |
FilePath | |||
) |
def SerialSubstitution.ProcessorClass.ProcessFiles | ( | self, | |
files | |||
) |
Definition at line 361 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.RecordPattern | ( | self, | |
pattern | |||
) |
Definition at line 216 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.SetColors | ( | self, | |
colors | |||
) |
Definition at line 209 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.SetOptions | ( | self, | |
options | |||
) |
Definition at line 203 of file SerialSubstitution.py.
def SerialSubstitution.ProcessorClass.SubstituteLine | ( | self, | |
line, | |||
context = None |
|||
) |
Returns the very same string if the new line is the same as the old one or a list of lines to replace line with
Definition at line 275 of file SerialSubstitution.py.
|
static |
Definition at line 321 of file SerialSubstitution.py.
|
static |
Definition at line 319 of file SerialSubstitution.py.
SerialSubstitution.ProcessorClass.file_filters |
Definition at line 199 of file SerialSubstitution.py.
SerialSubstitution.ProcessorClass.name |
Definition at line 197 of file SerialSubstitution.py.
|
static |
Definition at line 322 of file SerialSubstitution.py.
|
static |
Definition at line 326 of file SerialSubstitution.py.
SerialSubstitution.ProcessorClass.options |
Definition at line 198 of file SerialSubstitution.py.
|
static |
Definition at line 347 of file SerialSubstitution.py.
|
static |
Definition at line 348 of file SerialSubstitution.py.
SerialSubstitution.ProcessorClass.patterns |
Definition at line 200 of file SerialSubstitution.py.
Definition at line 323 of file SerialSubstitution.py.