proxygen
folly::detail::string_table_hex_make_item Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 81 of file String.cpp.

Member Function Documentation

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

Definition at line 82 of file String.cpp.

82  {
83  // clang-format off
84  return
85  index >= '0' && index <= '9' ? index - '0' :
86  index >= 'a' && index <= 'f' ? index - 'a' + 10 :
87  index >= 'A' && index <= 'F' ? index - 'A' + 10 :
88  16;
89  // clang-format on
90  }

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