proxygen
folly::detail::string_table_uri_escape_make_item Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 93 of file String.cpp.

Member Function Documentation

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

Definition at line 99 of file String.cpp.

99  {
100  // clang-format off
101  return
102  index >= '0' && index <= '9' ? 0 :
103  index >= 'A' && index <= 'Z' ? 0 :
104  index >= 'a' && index <= 'z' ? 0 :
105  index == '-' ? 0 :
106  index == '_' ? 0 :
107  index == '.' ? 0 :
108  index == '~' ? 0 :
109  index == '/' ? 2 :
110  index == ' ' ? 3 :
111  4;
112  // clang-format on
113  }

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