proxygen
folly::detail::string_table_c_escape_make_item Struct Reference

Public Member Functions

constexpr char operator() (std::size_t index) const
 

Detailed Description

Definition at line 43 of file String.cpp.

Member Function Documentation

constexpr char folly::detail::string_table_c_escape_make_item::operator() ( std::size_t  index) const
inline

Definition at line 44 of file String.cpp.

44  {
45  // clang-format off
46  return
47  index == '"' ? '"' :
48  index == '\\' ? '\\' :
49  index == '?' ? '?' :
50  index == '\n' ? 'n' :
51  index == '\r' ? 'r' :
52  index == '\t' ? 't' :
53  index < 32 || index > 126 ? 'O' : // octal
54  'P'; // printable
55  // clang-format on
56  }

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