Class DemanglerUtil

java.lang.Object
ghidra.app.util.demangler.DemanglerUtil

public class DemanglerUtil extends Object
  • Constructor Details

    • DemanglerUtil

      public DemanglerUtil()
  • Method Details

    • demangle

      public static DemangledObject demangle(String mangled)
      Locates all available demanglers, then it attempts to demangle. This method will query all demanglers regardless of architecture.

      This method will use only the default options for demangling. If you need to specify options, then you will have to call each specific demangler directly, creating the options specifically needed for each demangler. See Demangler.createDefaultOptions().

      Parameters:
      mangled - the mangled name
      Returns:
      the demangled object or null
    • demangle

      public static DemangledObject demangle(Program program, String mangled)
      Locates all available demanglers and checks to see if the supplied program is supported, then it attempts to demangle.

      This method will use only the default options for demangling. If you need to specify options, then you will have to call each specific demangler directly, creating the options specifically needed for each demangler. See Demangler.createDefaultOptions().

      Parameters:
      program - the program containing the mangled name
      mangled - the mangled name
      Returns:
      the demangled object or null
    • stripSuperfluousSignatureSpaces

      public static String stripSuperfluousSignatureSpaces(String str)
      Remove superfluous function signature spaces from specified string
      Parameters:
      str - string
      Returns:
      string with unwanted spaces removed