A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
offsets.cc File Reference
#include "a11/flow/offsets.h"
#include <algorithm>
#include <utility>
#include <nlohmann/json.hpp>
#include "a11/utf8.h"

Namespaces

namespace  a11
 
namespace  a11::flow
 

Functions

bool a11::flow::OffsetBasisFromName (std::string_view name, OffsetBasis &basis)
 The basis a request named, or kBytes when it named none.
 
std::string_view a11::flow::OffsetBasisName (OffsetBasis basis)
 The name of a basis, for a message and for the JSON.
 
void a11::flow::RebaseToUtf16 (nlohmann::json &answer, const TextIndex &index)
 Rewrite every document offset in an answer from bytes into UTF-16 units.