Public Member Functions | |
| def | __init__ |
| def | removeNonASCIICharaters |
| Removes all non printable characters from a string, and replaces them with the supplied parameter. | |
Static Public Attributes | |
| tuple | removeNonASCIICharaters = staticmethod(removeNonASCIICharaters) |
Definition at line 23 of file conversionUtil.py.
| def objects.logic.utils.conversionUtil.conversionUtil.__init__ | ( | self | ) |
Definition at line 24 of file conversionUtil.py.
00024 : 00025 pass 00026 ## Removes all non printable characters from a string, and replaces them with the supplied parameter.
| def objects.logic.utils.conversionUtil.conversionUtil.removeNonASCIICharaters | ( | str, | ||
| replaceWith | ||||
| ) |
Removes all non printable characters from a string, and replaces them with the supplied parameter.
| str | Dirty string | |
| replaceWith | Printable character used to replace all non printable in the supplied string |
Definition at line 31 of file conversionUtil.py.
00031 : 00032 00033 retVal = "" 00034 00035 for char in str: 00036 if char in string.printable: 00037 retVal += char 00038 else: 00039 retVal += replaceWith 00040 00041 return retVal 00042 00043 00044 removeNonASCIICharaters = staticmethod(removeNonASCIICharaters)
tuple objects.logic.utils.conversionUtil.conversionUtil.removeNonASCIICharaters = staticmethod(removeNonASCIICharaters) [static] |
Definition at line 45 of file conversionUtil.py.
1.5.8