@@ -2542,26 +2542,6 @@ namespace BinaryNinja {
25422542 */
25432543 bool IsGNU3MangledString(const std::string& mangledName);
25442544
2545- /*!
2546- \ingroup demangle
2547- */
2548- std::string SimplifyToString(const std::string& input);
2549-
2550- /*!
2551- \ingroup demangle
2552- */
2553- std::string SimplifyToString(const QualifiedName& input);
2554-
2555- /*!
2556- \ingroup demangle
2557- */
2558- QualifiedName SimplifyToQualifiedName(const std::string& input, bool simplify);
2559-
2560- /*!
2561- \ingroup demangle
2562- */
2563- QualifiedName SimplifyToQualifiedName(const QualifiedName& input);
2564-
25652545 /*!
25662546 \ingroup mainthread
25672547 */
@@ -20477,38 +20457,6 @@ namespace BinaryNinja {
2047720457 static int Compare(LinearViewCursor* a, LinearViewCursor* b);
2047820458 };
2047920459
20480- /*!
20481-
20482- \ingroup simplifyname
20483- */
20484- class SimplifyName
20485- {
20486- public:
20487- // Use these functions to interface with the simplifier
20488- static std::string to_string(const std::string& input);
20489- static std::string to_string(const QualifiedName& input);
20490- static QualifiedName to_qualified_name(const std::string& input, bool simplify);
20491- static QualifiedName to_qualified_name(const QualifiedName& input);
20492-
20493- // Below is everything for the above APIs to work
20494- enum SimplifierDest
20495- {
20496- str,
20497- fqn
20498- };
20499-
20500- SimplifyName(const std::string&, const SimplifierDest, const bool);
20501- ~SimplifyName();
20502-
20503- operator std::string() const;
20504- operator QualifiedName();
20505-
20506- private:
20507- const char* m_rust_string;
20508- const char** m_rust_array;
20509- uint64_t m_length;
20510- };
20511-
2051220460 struct FindParameters
2051320461 {
2051420462 BNFindType type;
@@ -22294,7 +22242,7 @@ namespace BinaryNinja {
2229422242
2229522243 static bool IsMangledStringCallback(void* ctxt, const char* name);
2229622244 static bool DemangleCallback(void* ctxt, BNArchitecture* arch, const char* name, BNType** outType,
22297- BNQualifiedName* outVarName, BNBinaryView* view);
22245+ BNQualifiedName* outVarName, BNBinaryView* view, bool simplify );
2229822246 static void FreeVarNameCallback(void* ctxt, BNQualifiedName* name);
2229922247
2230022248 public:
@@ -22355,7 +22303,7 @@ namespace BinaryNinja {
2235522303 \return True if demangling was successful and results were stored into out-parameters
2235622304 */
2235722305 virtual bool Demangle(Ref<Architecture> arch, const std::string& name, Ref<Type>& outType,
22358- QualifiedName& outVarName, Ref<BinaryView> view = nullptr) = 0;
22306+ QualifiedName& outVarName, Ref<BinaryView> view = nullptr, bool simplify = false ) = 0;
2235922307 };
2236022308
2236122309 /*!
@@ -22369,7 +22317,7 @@ namespace BinaryNinja {
2236922317
2237022318 virtual bool IsMangledString(const std::string& name);
2237122319 virtual bool Demangle(Ref<Architecture> arch, const std::string& name, Ref<Type>& outType,
22372- QualifiedName& outVarName, Ref<BinaryView> view);
22320+ QualifiedName& outVarName, Ref<BinaryView> view, bool simplify = false );
2237322321 };
2237422322
2237522323 namespace Unicode
0 commit comments