Package ghidra.app.util.bin.format.elf
Class ElfSymbolNameUtils
java.lang.Object
ghidra.app.util.bin.format.elf.ElfSymbolNameUtils
-
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionstatic StringgetBadElfSymbolStringCodePointReplacement(int index, int cp) Returns a replacement value for any bad code points found in an Elf symbol string.static StringConverts a string with possible invalid characters into a valid symbol string.
-
Constructor Details
-
ElfSymbolNameUtils
public ElfSymbolNameUtils()
-
-
Method Details
-
replaceInvalidChars
Converts a string with possible invalid characters into a valid symbol string.- Parameters:
str- symbol string to fix, null ok- Returns:
- original str instance if already valid, otherwise fixed value
-
getBadElfSymbolStringCodePointReplacement
Returns a replacement value for any bad code points found in an Elf symbol string.- Parameters:
index- index of the bad code point in the original stringcp- the bad code point- Returns:
- replacement value to use instead of the bad code point
-