def __call__(self): if self.is_enum: idaapi.set_enum_name(idaapi.get_enum(self.oldname.encode('utf-8')), self.newname.encode('utf-8')) else: idaapi.set_enum_member_name( idaapi.get_enum_member_by_name(self.oldname.encode('utf-8')), self.newname.encode('utf-8'))
def name(enum, name): '''Rename the enumeration `enum` to the string `name`.''' eid, res = by(enum), utils.string.to(name) return idaapi.set_enum_name(eid, res)
def name(self, name): """Set the enum name.""" success = idaapi.set_enum_name(self.eid, name) if not success: raise exceptions.CantRenameEnum("Cant rename enum {!r} to {!r}.".format(self.name, name))
def __call__(self): idaapi.set_enum_name(self.tid, self.new_name.encode('utf-8'))
def name(enum, name): '''Rename the enumeration `enum` to `name`.''' eid = by(enum) return idaapi.set_enum_name(eid, name)
def name(enum, name): '''Rename the enumeration `enum` to the string `name`.''' eid, res = by(enum), utils.string.to(name) return idaapi.set_enum_name(eid, res)
def name(identifier, name=None): '''Given an enum id, get/set it's /name/''' if name is None: return idaapi.get_enum_name(identifier) return idaapi.set_enum_name(identifier, name)
def name(enum, name): '''Rename the enumeration identified by ``enum`` to ``name``.''' eid = by(enum) return idaapi.set_enum_name(eid, name)
def __call__(self): idaapi.set_enum_name(self.tid, self.new_name)