Configurator
|
Output formatting Style. More...
Public Member Functions | |
def | __init__ |
def | __format__ |
def | file_name_set |
def | routine_name |
def | indent_adjust |
Output formatting Style.
The Style class controls the output style of C, C++, Python, etc.
This class contains all of the information that controls output formatting. This is primarily used for controlling the look of generated C, C++, and Python code.
def data_structures.Style.__init__ | ( | self, | |
application | |||
) |
The Style class controls the output style of C, C++, Python, etc.
def data_structures.Style.__format__ | ( | self, | |
fmt | |||
) |
Style: Initialize *self* object.
def data_structures.Style.routine_name | ( | self, | |
name | |||
) |
Style: Save current file name in *self*.
|
static |
Style: Format *self* controlled by *fmt*. If *fmt* is 'i', return the current indent string. If *fmt* is 'b', return new block indent. if *fmt* is 'e', return an end block indent. if *fmt* is 'E', return an end block indent with a semicolon. if *fmt* is 'f', return the current file name.
|
static |
Style: Return *name* in the style specified by *self*.