proxygen
folly::detail::string_table_c_unescape_make_item Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 59 of file String.cpp.

Member Function Documentation

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

Definition at line 60 of file String.cpp.

60  {
61  // clang-format off
62  return
63  index == '\'' ? '\'' :
64  index == '?' ? '?' :
65  index == '\\' ? '\\' :
66  index == '"' ? '"' :
67  index == 'a' ? '\a' :
68  index == 'b' ? '\b' :
69  index == 'f' ? '\f' :
70  index == 'n' ? '\n' :
71  index == 'r' ? '\r' :
72  index == 't' ? '\t' :
73  index == 'v' ? '\v' :
74  index >= '0' && index <= '7' ? 'O' : // octal
75  index == 'x' ? 'X' : // hex
76  'I'; // invalid
77  // clang-format on
78  }

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