A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
escape.h File Reference
#include <cstddef>
#include <optional>
#include <string>
#include <string_view>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::flow::EscapeFailure
struct  a11::flow::EscapeResult

Namespaces

namespace  a11
namespace  a11::flow

Enumerations

enum class  a11::flow::EscapeProblem { a11::flow::kMalformed , a11::flow::kInvalidUtf8 , a11::flow::kNonAsciiByte }

Functions

EscapeResult a11::flow::DecodeLiteralBody (std::string_view body, bool bytes, bool raw)
 Decode the body of a Flow literal. Text results must be valid UTF-8.
size_t a11::flow::EscapeWidth (std::string_view body, size_t at)
 A complete source escape's width, including its backslash.
std::string a11::flow::EscapeLiteralBody (std::string_view value, bool bytes)
 An ASCII literal body safe between either kind of Flow quotes.