proxygen
|
Classes | |
struct | FixedStringBase_ |
struct | Helper |
struct | ReverseIterator |
Typedefs | |
using | FixedStringBase = FixedStringBase_<> |
Functions | |
void | assertOutOfBounds () |
constexpr std::size_t | checkOverflow (std::size_t i, std::size_t max) |
constexpr std::size_t | checkOverflowOrNpos (std::size_t i, std::size_t max) |
void | assertNotNullTerminated () noexcept |
template<class Char , std::size_t N> | |
constexpr const Char(& | checkNullTerminated (const Char(&a)[N]) noexcept)[N] |
template<class Left , class Right > | |
constexpr ordering | compare_ (const Left &left, std::size_t left_pos, std::size_t left_size, const Right &right, std::size_t right_pos, std::size_t right_size) noexcept |
template<class Left , class Right > | |
constexpr bool | equal_ (const Left &left, std::size_t left_size, const Right &right, std::size_t right_size) noexcept |
template<class Char , class Left , class Right > | |
constexpr Char | char_at_ (const Left &left, std::size_t left_count, const Right &right, std::size_t right_count, std::size_t i) noexcept |
template<class Char , class Left , class Right > | |
constexpr Char | char_at_ (const Left &left, std::size_t left_size, std::size_t left_pos, std::size_t left_count, const Right &right, std::size_t right_pos, std::size_t right_count, std::size_t i) noexcept |
template<class Left , class Right > | |
constexpr bool | find_at_ (const Left &left, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class Char , class Right > | |
constexpr bool | find_one_of_at_ (Char ch, const Right &right, std::size_t pos) noexcept |
template<class Left , class Right > | |
constexpr std::size_t | find_ (const Left &left, std::size_t left_size, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class Left , class Right > | |
constexpr std::size_t | rfind_ (const Left &left, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class Left , class Right > | |
constexpr std::size_t | find_first_of_ (const Left &left, std::size_t left_size, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class Left , class Right > | |
constexpr std::size_t | find_first_not_of_ (const Left &left, std::size_t left_size, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class Left , class Right > | |
constexpr std::size_t | find_last_of_ (const Left &left, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class Left , class Right > | |
constexpr std::size_t | find_last_not_of_ (const Left &left, const Right &right, std::size_t pos, std::size_t count) noexcept |
template<class T > | |
FOLLY_CPP14_CONSTEXPR void | constexpr_swap (T &a, T &b) noexcept(noexcept(a=T(std::move(a)))) |
using folly::detail::fixedstring::FixedStringBase = typedef FixedStringBase_<> |
Definition at line 60 of file FixedString.h.
|
inlinenoexcept |
Definition at line 83 of file FixedString.h.
Referenced by checkNullTerminated().
|
inline |
Definition at line 66 of file FixedString.h.
Referenced by checkOverflow(), and checkOverflowOrNpos().
|
noexcept |
Definition at line 145 of file FixedString.h.
References testing::gmock_generated_actions_test::Char(), and i.
|
noexcept |
Definition at line 157 of file FixedString.h.
References testing::gmock_generated_actions_test::Char(), and i.
constexpr const Char(& folly::detail::fixedstring::checkNullTerminated | ( | const Char(&) | a[N] | ) | )[N] |
Definition at line 92 of file FixedString.h.
References a, assertNotNullTerminated(), testing::gmock_generated_actions_test::Char(), and folly::detail::constexpr_strlen_internal().
Referenced by folly::BasicFixedString< Char, N >::assign(), folly::BasicFixedString< Char, N >::BasicFixedString(), folly::BasicFixedString< Char, N >::creplace(), and folly::BasicFixedString< Char, N >::operator=().
constexpr std::size_t folly::detail::fixedstring::checkOverflow | ( | std::size_t | i, |
std::size_t | max | ||
) |
Definition at line 72 of file FixedString.h.
References assertOutOfBounds(), and max.
Referenced by folly::BasicFixedString< Char, N >::append(), folly::BasicFixedString< Char, N >::assign(), folly::BasicFixedString< Char, N >::back(), folly::BasicFixedString< Char, N >::BasicFixedString(), folly::BasicFixedString< Char, N >::cerase(), folly::BasicFixedString< Char, N >::compare(), folly::BasicFixedString< Char, N >::copy(), folly::BasicFixedString< Char, N >::cpop_back(), folly::BasicFixedString< Char, N >::creplace(), folly::BasicFixedString< Char, N >::erase(), folly::BasicFixedString< Char, N >::find(), folly::BasicFixedString< Char, N >::find_first_not_of(), folly::BasicFixedString< Char, N >::find_first_of(), folly::BasicFixedString< Char, N >::find_last_not_of(), folly::BasicFixedString< Char, N >::find_last_of(), folly::BasicFixedString< Char, N >::operator=(), folly::BasicFixedString< Char, N >::operator[](), folly::BasicFixedString< Char, N >::pop_back(), folly::BasicFixedString< Char, N >::push_back(), folly::BasicFixedString< Char, N >::replace(), folly::BasicFixedString< Char, N >::resize(), and folly::BasicFixedString< Char, N >::rfind().
constexpr std::size_t folly::detail::fixedstring::checkOverflowOrNpos | ( | std::size_t | i, |
std::size_t | max | ||
) |
Definition at line 76 of file FixedString.h.
References assertOutOfBounds(), max, and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::append(), folly::BasicFixedString< Char, N >::assign(), folly::BasicFixedString< Char, N >::BasicFixedString(), folly::BasicFixedString< Char, N >::cerase(), folly::BasicFixedString< Char, N >::compare(), folly::BasicFixedString< Char, N >::creplace(), folly::BasicFixedString< Char, N >::erase(), and folly::BasicFixedString< Char, N >::replace().
|
noexcept |
Definition at line 111 of file FixedString.h.
References folly::eq, folly::gt, and folly::lt.
Referenced by folly::BasicFixedString< Char, N >::compare(), equal_(), and folly::operator<().
|
noexcept |
Definition at line 310 of file FixedString.h.
References a, b, folly::gen::move, and folly::T.
Referenced by folly::BasicFixedString< Char, N >::swap().
|
noexcept |
Definition at line 135 of file FixedString.h.
References compare_(), and folly::eq.
Referenced by folly::f14::GenericEqual< T >::operator()(), and folly::operator==().
|
noexcept |
Definition at line 193 of file FixedString.h.
References count, find_at_(), and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::find().
|
noexcept |
Definition at line 175 of file FixedString.h.
References count.
Referenced by find_(), and rfind_().
|
noexcept |
Definition at line 231 of file FixedString.h.
References count, find_one_of_at_(), and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::find_first_not_of().
|
noexcept |
Definition at line 218 of file FixedString.h.
References count, find_one_of_at_(), and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::find_first_of().
|
noexcept |
Definition at line 256 of file FixedString.h.
References count, find_one_of_at_(), and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::find_last_not_of().
|
noexcept |
Definition at line 244 of file FixedString.h.
References count, find_one_of_at_(), and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::find_last_of().
|
noexcept |
Definition at line 187 of file FixedString.h.
References ch.
Referenced by find_first_not_of_(), find_first_of_(), find_last_not_of_(), and find_last_of_().
|
noexcept |
Definition at line 206 of file FixedString.h.
References count, find_at_(), and folly::detail::fixedstring::FixedStringBase_< class >::npos.
Referenced by folly::BasicFixedString< Char, N >::rfind().