Ruby 4.1.0dev (2026-11-10 revision d9bbf7af11227361911849907728f055a9e49db0)
Functions
stringy.hpp File Reference

(d9bbf7af11227361911849907728f055a9e49db0)

Access to the contents of strings from C++. More...

#include "prism/compiler/cplusplus.hpp"
#include "prism/compiler/lifetimebound.hpp"
#include "prism/stringy.h"
#include <string_view>
Include dependency graph for stringy.hpp:

Go to the source code of this file.

Functions

std::string_view prism::view (const pm_string_t &string PRISM_LIFETIMEBOUND) noexcept
 The bytes of the given string.
 

Detailed Description

Access to the contents of strings from C++.

Definition in file stringy.hpp.

Function Documentation

◆ view()

std::string_view prism::view ( const pm_string_t &string  PRISM_LIFETIMEBOUND)
inlinenoexcept

The bytes of the given string.

Parameters
stringThe string to view.
Returns
A view of the bytes of the string.

Definition at line 25 of file stringy.hpp.