FoxDot.lib.Workspace.AppFunctions

Collection of functions used in the Workspace package

class FoxDot.lib.Workspace.AppFunctions.Comment(template: str = '# {}', newline: str = '\n')[source]

Bases: object

comment(text: str, depth: int = 0)[source]
has_comment(text: str, depth: int = 0) → bool[source]
uncomment(text: str, depth: int = 0)[source]
FoxDot.lib.Workspace.AppFunctions.at_function(index, string)[source]

Returns true if the index is at a colon in the string

FoxDot.lib.Workspace.AppFunctions.empty(string)[source]
FoxDot.lib.Workspace.AppFunctions.function(text)[source]
FoxDot.lib.Workspace.AppFunctions.get_tabspace(s)[source]

Returns the amount of whitespace at the start of a string

FoxDot.lib.Workspace.AppFunctions.in_brackets(index, string)[source]

Returns true if index is between a pair of brackets (could be non closing)

FoxDot.lib.Workspace.AppFunctions.indented(s)[source]
FoxDot.lib.Workspace.AppFunctions.index(index1, index2=None)[source]
FoxDot.lib.Workspace.AppFunctions.isDelete(char)[source]
FoxDot.lib.Workspace.AppFunctions.isHex(char)[source]
FoxDot.lib.Workspace.AppFunctions.isReturn(char)[source]
FoxDot.lib.Workspace.AppFunctions.open_bracket(text)[source]

Returns the index of the last open bracket

FoxDot.lib.Workspace.AppFunctions.stdout(*args)[source]

Forces prints to stdout and not console