Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Namespaces | Functions
utilities.py File Reference

A few APG utility functions. More...

Go to the source code of this file.

Namespaces

 apg_py.lib.utilities
 

Functions

def apg_py.lib.utilities.string_to_tuple (string)
 Converts a string to a tuple of the Unicode values of the string characters. More...
 
def apg_py.lib.utilities.tuple_to_string (input)
 Converts a tuple of Unicode values to the equivalent string. More...
 
def apg_py.lib.utilities.tuple_to_ascii (input, map=None)
 Converts a tuple of Unicode values to an ASCII string. More...
 
def apg_py.lib.utilities.tuple_to_ascii_underline (map, index)
 Uses the (optional) map generated by tuple_to_ascii() to generate a mapping of the display characters to the actual tuple (integer) characters. More...
 
def apg_py.lib.utilities.pprint_to_string (obj, temp)
 Pretty prints an object to a temporary file, then reads the string back and returns it. More...
 

Detailed Description

A few APG utility functions.

Definition in file utilities.py.

Python APG, Version 1.0, is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.