JSON-RPC 2.0
JSON-RPC 2.0 Modern C++ Library
Loading...
Searching...
No Matches
jsonrpc::utils Namespace Reference

Functions

auto Trim (std::string_view in) -> std::string
 

Function Documentation

◆ Trim()

auto jsonrpc::utils::Trim ( std::string_view in) -> std::string

Definition at line 10 of file string_utils.hpp.

10 {
11 auto view = in | std::views::drop_while(::isspace) | std::views::reverse |
12 std::views::drop_while(::isspace) | std::views::reverse;
13 return {view.begin(), view.end()};
14}

Referenced by jsonrpc::transport::FramedTransport::ReadHeadersFromStream().

Here is the caller graph for this function: