OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
Loading...
Searching...
No Matches
string_ref.hpp File Reference

Shared helpers for converting C ABI string refs to std::string_view. More...

#include <optional>
#include <string_view>
#include "ffi.hpp"

Go to the source code of this file.

Namespaces

namespace  openpine
namespace  openpine::detail

Functions

std::string_view openpine::detail::refToView (const ffi::PineStringRef &ref)
std::optional< std::string_view > openpine::detail::optRefToView (bool has_field, const ffi::PineStringRef &ref)
 Returns optional string_view when has_field is true, otherwise std::nullopt.

Detailed Description

Shared helpers for converting C ABI string refs to std::string_view.

Definition in file string_ref.hpp.