proxygen
|
#include <FBString.h>
Classes | |
struct | Invariant |
Public Types | |
typedef T | traits_type |
typedef traits_type::char_type | value_type |
typedef A | allocator_type |
typedef A::size_type | size_type |
typedef A::difference_type | difference_type |
typedef A::reference | reference |
typedef A::const_reference | const_reference |
typedef A::pointer | pointer |
typedef A::const_pointer | const_pointer |
typedef E * | iterator |
typedef const E * | const_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef std::true_type | IsRelocatable |
Static Public Attributes | |
static constexpr size_type | npos = size_type(-1) |
Private Types | |
typedef std::basic_istream< value_type, traits_type > | istream_type |
Private Member Functions | |
bool | isSane () const |
istream_type & | getlineImpl (istream_type &is, value_type delim) |
iterator | insertImplDiscr (const_iterator i, size_type n, value_type c, std::true_type) |
template<class InputIter > | |
iterator | insertImplDiscr (const_iterator i, InputIter b, InputIter e, std::false_type) |
template<class FwdIterator > | |
iterator | insertImpl (const_iterator i, FwdIterator s1, FwdIterator s2, std::forward_iterator_tag) |
template<class InputIterator > | |
iterator | insertImpl (const_iterator i, InputIterator b, InputIterator e, std::input_iterator_tag) |
basic_fbstring & | replaceImplDiscr (iterator i1, iterator i2, const value_type *s, size_type n, std::integral_constant< int, 2 >) |
basic_fbstring & | replaceImplDiscr (iterator i1, iterator i2, size_type n2, value_type c, std::integral_constant< int, 1 >) |
template<class InputIter > | |
basic_fbstring & | replaceImplDiscr (iterator i1, iterator i2, InputIter b, InputIter e, std::integral_constant< int, 0 >) |
template<class FwdIterator > | |
bool | replaceAliased (iterator, iterator, FwdIterator, FwdIterator, std::false_type) |
template<class FwdIterator > | |
bool | replaceAliased (iterator i1, iterator i2, FwdIterator s1, FwdIterator s2, std::true_type) |
template<class FwdIterator > | |
void | replaceImpl (iterator i1, iterator i2, FwdIterator s1, FwdIterator s2, std::forward_iterator_tag) |
template<class InputIterator > | |
void | replaceImpl (iterator i1, iterator i2, InputIterator b, InputIterator e, std::input_iterator_tag) |
Static Private Member Functions | |
template<typename Ex , typename... Args> | |
static FOLLY_ALWAYS_INLINE void | enforce (bool condition, Args &&...args) |
static void | procrustes (size_type &n, size_type nmax) |
static size_type | traitsLength (const value_type *s) |
Private Attributes | |
Storage | store_ |
Friends | |
istream_type & | getline (istream_type &is, basic_fbstring &str, value_type delim) |
istream_type & | getline (istream_type &is, basic_fbstring &str) |
This is the basic_string replacement. For conformity, basic_fbstring takes the same template parameters, plus the last one which is the core.
Definition at line 1070 of file FBString.h.
typedef A folly::basic_fbstring< E, T, A, Storage >::allocator_type |
Definition at line 1102 of file FBString.h.
typedef const E* folly::basic_fbstring< E, T, A, Storage >::const_iterator |
Definition at line 1112 of file FBString.h.
typedef A::const_pointer folly::basic_fbstring< E, T, A, Storage >::const_pointer |
Definition at line 1109 of file FBString.h.
typedef A::const_reference folly::basic_fbstring< E, T, A, Storage >::const_reference |
Definition at line 1107 of file FBString.h.
typedef std::reverse_iterator<const_iterator> folly::basic_fbstring< E, T, A, Storage >::const_reverse_iterator |
Definition at line 1114 of file FBString.h.
typedef A::difference_type folly::basic_fbstring< E, T, A, Storage >::difference_type |
Definition at line 1104 of file FBString.h.
typedef std::true_type folly::basic_fbstring< E, T, A, Storage >::IsRelocatable |
Definition at line 1117 of file FBString.h.
|
private |
Definition at line 1508 of file FBString.h.
typedef E* folly::basic_fbstring< E, T, A, Storage >::iterator |
Definition at line 1111 of file FBString.h.
typedef A::pointer folly::basic_fbstring< E, T, A, Storage >::pointer |
Definition at line 1108 of file FBString.h.
typedef A::reference folly::basic_fbstring< E, T, A, Storage >::reference |
Definition at line 1106 of file FBString.h.
typedef std::reverse_iterator<iterator> folly::basic_fbstring< E, T, A, Storage >::reverse_iterator |
Definition at line 1113 of file FBString.h.
typedef A::size_type folly::basic_fbstring< E, T, A, Storage >::size_type |
Definition at line 1103 of file FBString.h.
typedef T folly::basic_fbstring< E, T, A, Storage >::traits_type |
Definition at line 1100 of file FBString.h.
typedef traits_type::char_type folly::basic_fbstring< E, T, A, Storage >::value_type |
Definition at line 1101 of file FBString.h.
|
inlinenoexcept |
Definition at line 1143 of file FBString.h.
|
inlineexplicitnoexcept |
Definition at line 1145 of file FBString.h.
|
inline |
Definition at line 1147 of file FBString.h.
|
inlinenoexcept |
Definition at line 1150 of file FBString.h.
|
inline |
Definition at line 1156 of file FBString.h.
|
inline |
Definition at line 1160 of file FBString.h.
|
inline |
Definition at line 1169 of file FBString.h.
|
inline |
Definition at line 1173 of file FBString.h.
|
inline |
Definition at line 1177 of file FBString.h.
|
inline |
Definition at line 1183 of file FBString.h.
|
inline |
Definition at line 1195 of file FBString.h.
|
inline |
Definition at line 1199 of file FBString.h.
|
inline |
Definition at line 1208 of file FBString.h.
|
inlinenoexcept |
Definition at line 1212 of file FBString.h.
|
inline |
Definition at line 1953 of file FBString.h.
References append(), folly::basic_fbstring< E, T, A, Storage >::data(), FBSTRING_ASSERT, folly::size(), and folly::basic_fbstring< E, T, A, Storage >::size().
Referenced by BENCHMARK(), proxygen::HPACKDecodeBuffer::decodeLiteral(), folly::basic_fbstring< E, T, A, Storage >::insertImpl(), folly::operator+(), folly::parseTo(), folly::basic_fbstring< E, T, A, Storage >::replaceAliased(), folly::basic_fbstring< E, T, A, Storage >::replaceImpl(), and folly::toAppend().
|
inline |
Definition at line 1964 of file FBString.h.
References append(), folly::basic_fbstring< E, T, A, Storage >::data(), FOLLY_MALLOC_NOINLINE, and folly::basic_fbstring< E, T, A, Storage >::size().
|
inline |
Definition at line 1976 of file FBString.h.
References data, FBSTRING_ASSERT, FBSTRING_UNLIKELY, folly::fbstring_detail::podCopy(), folly::fbstring_detail::podMove(), and folly::size().
|
inline |
Definition at line 1421 of file FBString.h.
|
inline |
|
inline |
Definition at line 1428 of file FBString.h.
|
inline |
Definition at line 1433 of file FBString.h.
|
inline |
Definition at line 1441 of file FBString.h.
Referenced by folly::errnoStr().
|
inline |
Definition at line 1448 of file FBString.h.
|
inline |
Definition at line 2018 of file FBString.h.
References folly::basic_fbstring< E, T, A, Storage >::data(), FOLLY_MALLOC_NOINLINE, and folly::basic_fbstring< E, T, A, Storage >::size().
|
inline |
Definition at line 2030 of file FBString.h.
References FBSTRING_ASSERT, folly::fbstring_detail::podCopy(), folly::fbstring_detail::podMove(), resize(), and folly::size().
|
inline |
Definition at line 1457 of file FBString.h.
|
inline |
Definition at line 1461 of file FBString.h.
|
inline |
Definition at line 1466 of file FBString.h.
|
inline |
Definition at line 1385 of file FBString.h.
|
inline |
Definition at line 1390 of file FBString.h.
|
inline |
|
inline |
Definition at line 1326 of file FBString.h.
|
inline |
|
inline |
Definition at line 1269 of file FBString.h.
|
inline |
|
inline |
|
inline |
Definition at line 1273 of file FBString.h.
|
inline |
Definition at line 1285 of file FBString.h.
|
inline |
Definition at line 1368 of file FBString.h.
Referenced by BENCHMARK_RELATIVE(), proxygen::HPACKDecodeBuffer::decodeLiteral(), folly::parseTo(), StringUnsplit_Gen(), folly::test::TEST(), TEST(), and TEST_F().
|
inline |
Definition at line 1829 of file FBString.h.
Referenced by folly::operator<(), folly::operator==(), and folly::operator>().
|
inline |
Definition at line 1834 of file FBString.h.
|
inline |
Definition at line 1838 of file FBString.h.
|
inline |
Definition at line 1842 of file FBString.h.
|
inline |
Definition at line 1851 of file FBString.h.
|
inline |
Definition at line 1863 of file FBString.h.
|
inline |
Definition at line 1698 of file FBString.h.
|
inline |
Definition at line 1297 of file FBString.h.
|
inline |
Definition at line 1309 of file FBString.h.
|
inline |
Definition at line 1716 of file FBString.h.
Referenced by folly::basic_fbstring< E, T, A, Storage >::append(), folly::basic_fbstring< char >::assign(), folly::basic_fbstring< E, T, A, Storage >::assign(), folly::basic_fbstring< char >::compare(), proxygen::TestStreamingCallback::duplicate(), folly::basic_fbstring< char >::find(), folly::basic_fbstring< char >::find_first_not_of(), folly::basic_fbstring< char >::find_first_of(), folly::basic_fbstring< char >::find_last_not_of(), folly::basic_fbstring< char >::find_last_of(), folly::basic_fbstring< char >::insert(), folly::operator<<(), folly::basic_fbstring< E, T, A, Storage >::operator=(), folly::basic_fbstring< char >::replace(), folly::basic_fbstring< char >::rfind(), TEST(), folly::toAppend(), and folly::toStdString().
|
inline |
Definition at line 1372 of file FBString.h.
Referenced by proxygen::HPACKContext::getIndex(), proxygen::HPACKHeader::hasValue(), TEST(), and TEST_F().
|
inline |
|
inline |
Definition at line 1281 of file FBString.h.
|
inlinestaticprivate |
Definition at line 1072 of file FBString.h.
|
inline |
Definition at line 1555 of file FBString.h.
Referenced by folly::operator>>().
|
inline |
Definition at line 1565 of file FBString.h.
|
inline |
Definition at line 1572 of file FBString.h.
|
inline |
Definition at line 1724 of file FBString.h.
Referenced by proxygen::HeaderIndexingStrategy::indexHeader(), and TEST().
|
inline |
Definition at line 2090 of file FBString.h.
References data, FBSTRING_ASSERT, i, folly::size(), and folly::gen::skip().
|
inline |
Definition at line 1731 of file FBString.h.
|
inline |
Definition at line 1735 of file FBString.h.
|
inline |
Definition at line 1783 of file FBString.h.
|
inline |
Definition at line 2408 of file FBString.h.
References folly::test::begin(), folly::test::end(), and i.
|
inline |
Definition at line 1791 of file FBString.h.
|
inline |
Definition at line 1795 of file FBString.h.
|
inline |
Definition at line 1753 of file FBString.h.
|
inline |
Definition at line 2369 of file FBString.h.
References folly::test::begin(), folly::test::end(), and i.
|
inline |
Definition at line 1760 of file FBString.h.
|
inline |
Definition at line 1764 of file FBString.h.
|
inline |
Definition at line 1799 of file FBString.h.
|
inline |
Definition at line 2425 of file FBString.h.
References folly::test::begin(), folly::empty(), i, min, and folly::size().
|
inline |
Definition at line 1807 of file FBString.h.
|
inline |
Definition at line 1811 of file FBString.h.
|
inline |
Definition at line 1768 of file FBString.h.
|
inline |
Definition at line 2387 of file FBString.h.
References folly::test::begin(), folly::empty(), i, and min.
|
inline |
Definition at line 1775 of file FBString.h.
|
inline |
Definition at line 1779 of file FBString.h.
|
inline |
|
inline |
Definition at line 1323 of file FBString.h.
|
inline |
Definition at line 1720 of file FBString.h.
|
inlineprivate |
Definition at line 2056 of file FBString.h.
References FBSTRING_ASSERT, reserve(), resize(), and folly::size().
|
inline |
Definition at line 1470 of file FBString.h.
|
inline |
Definition at line 1474 of file FBString.h.
|
inline |
Definition at line 1484 of file FBString.h.
|
inline |
Definition at line 1490 of file FBString.h.
|
inline |
Definition at line 1494 of file FBString.h.
|
inline |
Definition at line 1500 of file FBString.h.
|
inline |
Definition at line 1546 of file FBString.h.
|
inline |
Definition at line 1551 of file FBString.h.
|
inlineprivate |
Definition at line 2188 of file FBString.h.
References b, folly::test::begin(), folly::padded::cbegin(), folly::padded::cend(), folly::copy(), FBSTRING_ASSERT, folly::fbstring_detail::podMove(), and folly::size().
|
inlineprivate |
Definition at line 2212 of file FBString.h.
References folly::basic_fbstring< E, T, A, Storage >::append(), b, folly::test::begin(), folly::padded::cbegin(), folly::padded::cend(), folly::basic_fbstring< E, T, A, Storage >::push_back(), folly::swap(), and shell_builder::temp.
|
inlineprivate |
Definition at line 2154 of file FBString.h.
References b, folly::test::begin(), folly::padded::cbegin(), folly::padded::cend(), FBSTRING_ASSERT, folly::fbstring_detail::podFill(), folly::fbstring_detail::podMove(), and folly::size().
|
inlineprivate |
Definition at line 2176 of file FBString.h.
|
inlineprivate |
Definition at line 1078 of file FBString.h.
|
inline |
Definition at line 1341 of file FBString.h.
Referenced by proxygen::TestStreamingCallback::duplicate(), folly::basic_fbstring< char >::find(), folly::basic_fbstring< char >::find_first_of(), folly::basic_fbstring< char >::find_last_not_of(), folly::basic_fbstring< char >::find_last_of(), folly::basic_fbstring< char >::insert(), folly::basic_fbstring< char >::replace(), and folly::basic_fbstring< char >::rfind().
|
inline |
|
inline |
Definition at line 1396 of file FBString.h.
|
inline |
Definition at line 1400 of file FBString.h.
|
inline |
Definition at line 1404 of file FBString.h.
|
inline |
Definition at line 1409 of file FBString.h.
|
inline |
Definition at line 1886 of file FBString.h.
References folly::basic_fbstring< E, T, A, Storage >::data(), FBSTRING_UNLIKELY, and folly::basic_fbstring< E, T, A, Storage >::size().
|
inlinenoexcept |
Definition at line 1899 of file FBString.h.
References FBSTRING_UNLIKELY, folly::gen::move, type, and value.
|
inline |
Definition at line 1222 of file FBString.h.
|
inline |
Definition at line 1237 of file FBString.h.
|
inline |
Definition at line 1920 of file FBString.h.
References c, folly::empty(), folly::size(), and folly::basic_fbstring< E, T, A, Storage >::swap().
|
inline |
Definition at line 1260 of file FBString.h.
|
inline |
Definition at line 1377 of file FBString.h.
|
inline |
Definition at line 1381 of file FBString.h.
|
inline |
Definition at line 1331 of file FBString.h.
|
inlinestaticprivate |
Definition at line 1120 of file FBString.h.
|
inline |
Definition at line 1437 of file FBString.h.
Referenced by BENCHMARK(), proxygen::huffman::HuffTree::decode(), folly::basic_fbstring< E, T, A, Storage >::insertImpl(), folly::operator+(), folly::operator>>(), folly::test::TEST(), and TEST().
|
inline |
Definition at line 1289 of file FBString.h.
|
inline |
Definition at line 1293 of file FBString.h.
|
inline |
Definition at line 1301 of file FBString.h.
|
inline |
Definition at line 1305 of file FBString.h.
|
inline |
Definition at line 1581 of file FBString.h.
Referenced by TEST().
|
inline |
Definition at line 1587 of file FBString.h.
|
inline |
Definition at line 1599 of file FBString.h.
|
inline |
Definition at line 1612 of file FBString.h.
|
inline |
Definition at line 1621 of file FBString.h.
|
inline |
Definition at line 1625 of file FBString.h.
|
inline |
Definition at line 1690 of file FBString.h.
|
inlineprivate |
Definition at line 1654 of file FBString.h.
|
inlineprivate |
Definition at line 2274 of file FBString.h.
References folly::basic_fbstring< E, T, A, Storage >::append(), folly::test::begin(), folly::test::end(), folly::basic_fbstring< E, T, A, Storage >::reserve(), folly::size(), folly::swap(), and shell_builder::temp.
|
inlineprivate |
Definition at line 2295 of file FBString.h.
References folly::copy(), folly::fbstring_detail::copy_n(), FBSTRING_ASSERT, isSane(), and value.
|
inlineprivate |
Definition at line 2330 of file FBString.h.
References folly::basic_fbstring< E, T, A, Storage >::append(), folly::test::begin(), folly::test::end(), folly::swap(), and shell_builder::temp.
|
inlineprivate |
Definition at line 2228 of file FBString.h.
References folly::test::begin(), folly::test::end(), FBSTRING_ASSERT, and replace().
|
inlineprivate |
Definition at line 2241 of file FBString.h.
References FBSTRING_ASSERT, and isSane().
|
private |
|
inline |
Definition at line 2261 of file FBString.h.
|
inline |
Definition at line 1355 of file FBString.h.
Referenced by BENCHMARK(), folly::operator+(), folly::basic_fbstring< E, T, A, Storage >::replaceAliased(), folly::test::TEST(), and TEST().
|
inline |
Definition at line 1936 of file FBString.h.
References FBSTRING_ASSERT, folly::fbstring_detail::podFill(), and folly::size().
Referenced by BENCHMARK().
|
inline |
Definition at line 1739 of file FBString.h.
|
inline |
|
inline |
Definition at line 1745 of file FBString.h.
|
inline |
Definition at line 1749 of file FBString.h.
|
inline |
Definition at line 1360 of file FBString.h.
|
inline |
Definition at line 1337 of file FBString.h.
Referenced by folly::basic_fbstring< E, T, A, Storage >::append(), folly::basic_fbstring< char >::assign(), folly::basic_fbstring< E, T, A, Storage >::assign(), BENCHMARK(), BENCHMARK_RELATIVE(), proxygen::HPACKHeader::bytes(), folly::basic_fbstring< char >::compare(), folly::basic_fbstring< char >::find_first_not_of(), folly::basic_fbstring< char >::insert(), proxygen::TestStreamingCallback::onHeader(), folly::operator+(), folly::operator<(), folly::operator<<(), folly::basic_fbstring< E, T, A, Storage >::operator=(), folly::operator==(), folly::operator>(), folly::basic_fbstring< char >::replace(), StringUnsplit_Gen(), TEST(), folly::test::TEST(), TEST_F(), folly::toAppend(), and folly::toStdString().
|
inline |
Definition at line 1815 of file FBString.h.
|
inline |
Definition at line 1820 of file FBString.h.
|
inline |
Definition at line 1708 of file FBString.h.
Referenced by folly::basic_fbstring< E, T, A, Storage >::operator=(), folly::basic_fbstring< char >::shrink_to_fit(), and folly::swap().
|
inline |
Definition at line 1227 of file FBString.h.
Referenced by fizz::test::HandshakeTest::expectClientSuccess(), fizz::test::HandshakeTest::expectError(), fizz::test::HandshakeTest::expectServerError(), fizz::test::HandshakeTest::expectServerSuccess(), wangle::getSessionFromCacheData(), folly::detail::TypeDescriptor::name(), proxygen::HTTP2Codec::onHeader(), proxygen::compress::SimStreamingCallback::onHeader(), fizz::server::AsyncFizzServerT< SM >::ActionMoveVisitor::operator()(), fizz::client::AsyncFizzClientT< SM >::ActionMoveVisitor::operator()(), TEST(), fizz::client::test::TEST_F(), and folly::toDynamic().
|
inlinestaticprivate |
Definition at line 1878 of file FBString.h.
|
friend |
Definition at line 1513 of file FBString.h.
|
friend |
Definition at line 1517 of file FBString.h.
|
static |
Definition at line 1116 of file FBString.h.
|
private |
Definition at line 1873 of file FBString.h.
Referenced by folly::basic_fbstring< char >::swap().