Escapes a src string using C‐style escape sequences, escaping bytes as hexadecimal sequences, and passing through UTF‐8 characters without conversion.

Synopsis

Declared in <absl/strings/escaping.h>

std::string
Utf8SafeCHexEscape(std::string_view src);

Return Value

The escaped string.

Parameters

Name

Description

src

The string to escape.

Created with MrDocs