Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
editor_url.hpp File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  pulp::inspect::InspectorConfig
 Inspector runtime configuration. More...
struct  pulp::inspect::EffectiveEditorUrl
 Compute the effective template and its source given the supplied config. More...

Namespaces

namespace  pulp
namespace  pulp::inspect

Enumerations

enum class  pulp::inspect::EditorUrlSource { pulp::inspect::Default , pulp::inspect::Config , pulp::inspect::Environment }
 Source that produced the effective editor URL template — used by Inspector.getEditorUrlTemplate so clients can show which override is in force. More...

Functions

std::string pulp::inspect::format_editor_url (std::string_view tmpl, std::string_view path, int line, std::optional< int > col=std::nullopt)
 Substitute {path}, {line}, and {col} in tmpl with the supplied values.
bool pulp::inspect::validate_editor_url_template (std::string_view tmpl, std::string *error_out=nullptr)
 Validate a candidate editor URL template.
std::optional< std::string > pulp::inspect::editor_url_env_override ()
 Look up the environment override (PULP_INSPECTOR_EDITOR_URL).
EffectiveEditorUrl pulp::inspect::effective_editor_url (const InspectorConfig &config)
std::string_view pulp::inspect::editor_url_source_name (EditorUrlSource source)
 Stringify the source enum for protocol responses.