Prism Ruby parser
Loading...
Searching...
No Matches
Functions
stringy.hpp File Reference

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) noexcept
 The bytes of the given string.
 

Detailed Description

Access to the contents of strings from C++.

Function Documentation

◆ view()

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

The bytes of the given string.

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