Ruby 4.1.0dev (2026-10-21 revision 536dc6f98b72e6999a84bb6373562c43cb1ddf8a)
Functions
stringy.hpp File Reference

(536dc6f98b72e6999a84bb6373562c43cb1ddf8a)

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.