JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
demangle.hpp File Reference

Copyright (c) 2015 by Travis Gockel. More...

#include <jsonv/config.hpp>
#include <string_view>
#include <functional>
#include <string>
+ Include dependency graph for demangle.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using jsonv::demangle_function = std::function< std::string(std::string_view source)>
 Type of function used in setting a custom demangler.
 

Functions

JSONV_PUBLIC std::string jsonv::demangle (std::string_view source)
 Convert the input source from a mangled type into a human-friendly version.
 
JSONV_PUBLIC void jsonv::set_demangle_function (demangle_function func)
 Sets the global demangle function.
 
JSONV_PUBLIC void jsonv::reset_demangle_function ()
 Resets the demangle function to the default.
 
JSONV_PUBLIC std::string jsonv::current_exception_type_name ()
 Get the demangled type name of the current exception.
 

Detailed Description

Copyright (c) 2015 by Travis Gockel.

All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.

Author
Travis Gockel (travi.nosp@m.s@go.nosp@m.ckelh.nosp@m.ut.c.nosp@m.om)

Definition in file demangle.hpp.