string module

binaryninja.string.Formatter()

binaryninja.string.Template(template)

A string class for supporting $-substitutions.

binaryninja.string.capwords(s [,sep])

Split the argument into words using split, capitalize each word using capitalize, and join the capitalized words using join.

A collection of string constants.

Public module variables:

whitespace – a string containing all ASCII whitespace ascii_lowercase – a string containing all ASCII lowercase letters ascii_uppercase – a string containing all ASCII uppercase letters ascii_letters – a string containing all ASCII letters digits – a string containing all ASCII decimal digits hexdigits – a string containing all ASCII hexadecimal digits octdigits – a string containing all ASCII octal digits punctuation – a string containing all ASCII punctuation characters printable – a string containing all ASCII characters considered printable

class Formatter

Bases: object

check_unused_args(used_args, args, kwargs)
convert_field(value, conversion)
format(format_string, /, *args, **kwargs)
format_field(value, format_spec)
get_field(field_name, args, kwargs)
get_value(key, args, kwargs)
parse(format_string)
vformat(format_string, args, kwargs)
class Template(template)

Bases: object

A string class for supporting $-substitutions.

safe_substitute(mapping={}, /, **kws)
substitute(mapping={}, /, **kws)
braceidpattern = None
delimiter = '$'
flags = 2
idpattern = '(?a:[_a-z][_a-z0-9]*)'
pattern = re.compile('\n    \\$(?:\n      (?P<escaped>\\$) |   # Escape sequence of two delimiters\n      (?P<named>(?a:[_a-z][_a-z0-9]*))      |   # delimiter and a Python identifier\n      {(?P<braced>(?a:[_a-z][_a-z0-9, re.IGNORECASE|re.VERBOSE)
capwords(s[, sep])string

Split the argument into words using split, capitalize each word using capitalize, and join the capitalized words using join. If the optional second argument sep is absent or None, runs of whitespace characters are replaced by a single space and leading and trailing whitespace are removed, otherwise sep is used to split and join the words.