Lines Matching refs:Length
60 enum class Length { Empty, Small, Large, Huge }; enum
61 struct AllLengths : EnumValuesAsTuple<AllLengths, Length, 4> {
122 TEST_ALWAYS_INLINE std::string makeString(Length L, in makeString()
126 case Length::Empty: in makeString()
128 case Length::Small: in makeString()
130 case Length::Large: in makeString()
132 case Length::Huge: in makeString()
137 template <class Length, class Opaque>
142 makeString(Length(), DiffType::Control, Opaque())); in run()
147 return "BM_StringConstructDestroyCStr" + Length::name() + Opaque::name(); in name()
151 template <class Length, bool MeasureCopy, bool MeasureDestroy>
154 auto Orig = makeString(Length()); in StringCopyAndDestroy()
176 template <class Length>
179 StringCopyAndDestroy<Length, true, false>(state); in run()
182 static std::string name() { return "BM_StringCopy" + Length::name(); } in name()
185 template <class Length>
188 StringCopyAndDestroy<Length, false, true>(state); in run()
191 static std::string name() { return "BM_StringDestroy" + Length::name(); } in name()
194 template <class Length>
201 S *newS = new (static_cast<void*>(Storage)) std::string(makeString(Length())); in run()
215 static std::string name() { return "BM_StringMove" + Length::name(); } in name()
253 if (LHLength() == Length::Empty && DiffType() != ::DiffType::Control) in skip()
274 template <class Temperature, class Depth, class Length>
284 std::vector<std::string> Values(NumStrings, makeString(Length())); in run()
309 if (Length() == ::Length::Huge) { in skip()
317 Length::name(); in name()
322 for (auto Lhs : {Length::Empty, Length::Small, Length::Large, Length::Huge}) { in sanityCheckGeneratedStrings()
325 {Length::Empty, Length::Small, Length::Large, Length::Huge}) { in sanityCheckGeneratedStrings()
339 for (auto L : {Length::Small, Length::Large, Length::Huge}) { in sanityCheckGeneratedStrings()