Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::MaybeHexEscapedChar Struct Reference

#include <escape-char.hh>

Public Attributes

char c

Detailed Description

A struct that prints a debug representation of a character, like \x1f for non-printable characters, or the character itself for other characters.

Note that these are suitable for human readable output, but further care is necessary to include them in C++ strings to avoid running into adjacent hex-like characters. ("puppy\x1bdoggy" parses as "puppy" "\x1bd" "oggy" and errors because 0x1bd is too big for a char.)


The documentation for this struct was generated from the following file: