Class IllegalCharCppTransformer

java.lang.Object
ghidra.program.model.symbol.IllegalCharCppTransformer
All Implemented Interfaces:
NameTransformer

public class IllegalCharCppTransformer extends Object implements NameTransformer
Replace illegal characters in the given name with '_'. The transformer treats the name as a C++ symbol. Letters and digits are generally legal. '~' is allowed at the start of the symbol. Template parameters, surrounded by '<' and '>', allow additional special characters. Certain special characters are allowed after the keyword "operator".
  • Constructor Details

    • IllegalCharCppTransformer

      public IllegalCharCppTransformer()
  • Method Details

    • simplify

      public String simplify(String input)
      Description copied from interface: NameTransformer
      Return a transformed version of the given input. If no change is made, the original String object is returned.
      Specified by:
      simplify in interface NameTransformer
      Parameters:
      input - is the name to transform
      Returns:
      the transformed version