Create bitmap for serialization_opts.extra_ascii_to_escape_bitmap.

Synopsis

Declared in <folly/json/json.h>

std::array<uint64_t, 2>
buildExtraAsciiToEscapeBitmap(StringPiece chars);

Description

Generates a bitmap with bits set for each of the ASCII characters provided for use in the serialization_opts extra_ascii_to_escape_bitmap option. If any characters are not valid ASCII, they are ignored.

Create bitmap for serialization_opts.extra_ascii_to_escape_bitmap.

Generates a bitmap with bits set for each of the ASCII characters provided for use in the serialization_opts extra_ascii_to_escape_bitmap option. If any characters are not valid ASCII, they are ignored.

Return Value

The bitmap encoding which ASCII characters to escape.

Parameters

Name

Description

chars

The ASCII characters to mark for escaping.

Created with MrDocs