MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / isprintable

Function isprintable

preprocessor/parser.py:281–284  ·  view source on GitHub ↗
(c, codec='utf8')

Source from the content-addressed store, hash-verified

279#
280# \return - true if printable, false if not
281def isprintable(c, codec='utf8'):
282 try: c.decode(codec)
283 except UnicodeDecodeError: return False
284 else: return True
285
286# Given a start FilePosition, find the next valid character that is
287# syntactically important for the C/C++ program and return both the character

Callers 1

peekNextMeaningfulCharFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected