proxygen
|
Functions | |
template<class T > | |
T && | operator| (Optional< T > &&opt, UnwrapOr< T > &&fallback) |
template<class T > | |
T & | operator| (Optional< T > &opt, UnwrapOr< T > &fallback) |
template<class T > | |
const T & | operator| (const Optional< T > &opt, const UnwrapOr< T > &fallback) |
template<class T , class U , class R = typename std::enable_if< !std::is_same<T, U>::value, typename std::common_type<T, U>::type>::type> | |
R | operator| (Optional< T > &&opt, UnwrapOr< U > &&fallback) |
template<class T , class U , class R = typename std::enable_if< !std::is_same<T, U>::value, typename std::common_type<T, U>::type>::type> | |
R | operator| (const Optional< T > &opt, UnwrapOr< U > &&fallback) |
template<class T , class U , class R = typename std::enable_if< !std::is_same<T, U>::value, typename std::common_type<T, U>::type>::type> | |
R | operator| (Optional< T > &&opt, const UnwrapOr< U > &fallback) |
template<class T , class U , class R = typename std::enable_if< !std::is_same<T, U>::value, typename std::common_type<T, U>::type>::type> | |
R | operator| (const Optional< T > &opt, const UnwrapOr< U > &fallback) |
template<class T > | |
T && | operator| (Optional< T > &&opt, const Unwrap &) |
template<class T > | |
T & | operator| (Optional< T > &opt, const Unwrap &) |
template<class T > | |
const T & | operator| (const Optional< T > &opt, const Unwrap &) |
template<class... Types1, class... Types2> | |
auto | add_to_tuple (std::tuple< Types1... > t1, std::tuple< Types2... > t2) -> std::tuple< Types1..., Types2... > |
template<class... Types1, class Type2 > | |
auto | add_to_tuple (std::tuple< Types1... > t1, Type2 &&t2) -> decltype(std::tuple_cat(std::move(t1), std::make_tuple(std::forward< Type2 >(t2)))) |
template<class Type1 , class... Types2> | |
auto | add_to_tuple (Type1 &&t1, std::tuple< Types2... > t2) -> decltype(std::tuple_cat(std::make_tuple(std::forward< Type1 >(t1)), std::move(t2))) |
template<class Type1 , class Type2 > | |
auto | add_to_tuple (Type1 &&t1, Type2 &&t2) -> decltype(std::make_tuple(std::forward< Type1 >(t1), std::forward< Type2 >(t2))) |
auto | byLineImpl (File file, char delim, bool keepDelimiter) |
size_t | splitPrefix (StringPiece &in, StringPiece &prefix, char delimiter) |
size_t | splitPrefix (StringPiece &in, StringPiece &prefix, StringPiece delimiter) |
size_t | splitPrefix (StringPiece &in, StringPiece &prefix, MixedNewlines) |
const char * | ch (const unsigned char *p) |
template<class Callback > | |
bool | consumeFixedSizeChunks (Callback &cb, StringPiece &s, uint64_t maxLength) |
template<class Callback > | |
bool | consumeBufferPlus (Callback &cb, IOBuf &buf, StringPiece &s, uint64_t n) |
template<class Target , class = void> | |
Target | passthrough (Target target) |
auto folly::gen::detail::add_to_tuple | ( | std::tuple< Types1... > | t1, |
std::tuple< Types2... > | t2 | ||
) | -> std::tuple<Types1..., Types2...> |
Definition at line 153 of file Combine-inl.h.
References folly::gen::move.
Referenced by folly::gen::detail::MergeTuples::operator()().
auto folly::gen::detail::add_to_tuple | ( | std::tuple< Types1... > | t1, |
Type2 && | t2 | ||
) | -> decltype( std::tuple_cat(std::move(t1), std::make_tuple(std::forward<Type2>(t2)))) |
Definition at line 159 of file Combine-inl.h.
References std::tr1::make_tuple(), and folly::gen::move.
auto folly::gen::detail::add_to_tuple | ( | Type1 && | t1, |
std::tuple< Types2... > | t2 | ||
) | -> decltype( std::tuple_cat(std::make_tuple(std::forward<Type1>(t1)), std::move(t2))) |
Definition at line 166 of file Combine-inl.h.
References std::tr1::make_tuple(), and folly::gen::move.
auto folly::gen::detail::add_to_tuple | ( | Type1 && | t1, |
Type2 && | t2 | ||
) | -> decltype( std::make_tuple(std::forward<Type1>(t1), std::forward<Type2>(t2))) |
|
inline |
Definition at line 121 of file File-inl.h.
References folly::gen::fromFile(), folly::gen::move, and folly::gen::resplit().
Referenced by folly::gen::byLine(), and folly::gen::byLineFull().
|
inline |
Definition at line 91 of file String-inl.h.
Referenced by consumeBufferPlus(), and folly::gen::StreamSplitter< Callback >::flush().
bool folly::gen::detail::consumeBufferPlus | ( | Callback & | cb, |
IOBuf & | buf, | ||
StringPiece & | s, | ||
uint64_t | n | ||
) |
Definition at line 113 of file String-inl.h.
References folly::Range< Iter >::advance(), folly::IOBuf::append(), ch(), folly::IOBuf::clear(), folly::Range< Iter >::data(), folly::IOBuf::data(), folly::IOBuf::length(), folly::IOBuf::reserve(), and folly::IOBuf::writableTail().
Referenced by folly::gen::StreamSplitter< Callback >::operator()().
bool folly::gen::detail::consumeFixedSizeChunks | ( | Callback & | cb, |
StringPiece & | s, | ||
uint64_t | maxLength | ||
) |
Definition at line 97 of file String-inl.h.
References folly::Range< Iter >::advance(), folly::Range< Iter >::begin(), folly::Range< Iter >::empty(), and folly::Range< Iter >::size().
Referenced by folly::gen::StreamSplitter< Callback >::operator()().
T&& folly::gen::detail::operator| | ( | Optional< T > && | opt, |
UnwrapOr< T > && | fallback | ||
) |
T& folly::gen::detail::operator| | ( | Optional< T > & | opt, |
UnwrapOr< T > & | fallback | ||
) |
Definition at line 2388 of file Base-inl.h.
References folly::Optional< Value >::get_pointer(), T, and folly::gen::detail::UnwrapOr< T >::value().
const T& folly::gen::detail::operator| | ( | const Optional< T > & | opt, |
const UnwrapOr< T > & | fallback | ||
) |
Definition at line 2396 of file Base-inl.h.
References folly::Optional< Value >::get_pointer(), T, type, value, and folly::gen::detail::UnwrapOr< T >::value().
R folly::gen::detail::operator| | ( | Optional< T > && | opt, |
UnwrapOr< U > && | fallback | ||
) |
R folly::gen::detail::operator| | ( | const Optional< T > & | opt, |
UnwrapOr< U > && | fallback | ||
) |
Definition at line 2423 of file Base-inl.h.
References folly::Optional< Value >::get_pointer(), folly::gen::move, T, type, and value.
R folly::gen::detail::operator| | ( | Optional< T > && | opt, |
const UnwrapOr< U > & | fallback | ||
) |
Definition at line 2436 of file Base-inl.h.
References folly::gen::move, T, type, value, and folly::gen::detail::UnwrapOr< T >::value().
R folly::gen::detail::operator| | ( | const Optional< T > & | opt, |
const UnwrapOr< U > & | fallback | ||
) |
Definition at line 2449 of file Base-inl.h.
References folly::Optional< Value >::get_pointer(), and folly::gen::detail::UnwrapOr< T >::value().
Definition at line 2470 of file Base-inl.h.
References folly::Optional< Value >::value().
const T& folly::gen::detail::operator| | ( | const Optional< T > & | opt, |
const Unwrap & | |||
) |
Definition at line 2475 of file Base-inl.h.
References folly::Optional< Value >::value().
|
inline |
Hack for static for-like constructs
Definition at line 356 of file String-inl.h.
References folly::Delimiter, and FOLLY_PUSH_WARNING.
Referenced by BENCHMARK().
|
inline |
Finds the first occurrence of delimiter in "in", advances "in" past the delimiter. Populates "prefix" with the consumed bytes, including the delimiter.
Returns the number of trailing bytes of "prefix" that make up the delimiter, or 0 if the delimiter was not found.
Definition at line 38 of file String-inl.h.
References folly::Range< Iter >::advance(), folly::Range< Iter >::assign(), folly::Range< Iter >::clear(), folly::Range< Iter >::data(), folly::Range< Iter >::find(), and folly::Range< const char * >::npos.
Referenced by folly::gen::detail::SplitStringSource< DelimiterType >::apply(), and folly::gen::StreamSplitter< Callback >::operator()().
|
inline |
As above, but supports multibyte delimiters.
Definition at line 54 of file String-inl.h.
References folly::Range< Iter >::advance(), folly::Range< Iter >::assign(), folly::Range< Iter >::clear(), folly::Range< Iter >::data(), folly::Range< Iter >::find(), folly::Range< const char * >::npos, and folly::Range< Iter >::size().
|
inline |
As above, but splits by any of the EOL terms: ,
, or
.
Definition at line 69 of file String-inl.h.
References folly::Range< Iter >::advance(), folly::Range< Iter >::assign(), folly::Range< Iter >::clear(), folly::Range< Iter >::data(), folly::Range< Iter >::find_first_of(), and folly::Range< Iter >::removePrefix().