reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
754 static const UInt32 kMaxRange = 1u << 31; 756 explicit Random(UInt32 seed) : state_(seed) {} 758 void Reseed(UInt32 seed) { state_ = seed; } 762 UInt32 Generate(UInt32 range); 762 UInt32 Generate(UInt32 range); 765 UInt32 state_;utils/unittest/googletest/src/gtest-internal-inl.h
233 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);
utils/unittest/googletest/src/gtest.cc311 UInt32 Random::Generate(UInt32 range) { 311 UInt32 Random::Generate(UInt32 range) { 1733 const UInt32 kMaxCodePoint1 = (static_cast<UInt32>(1) << 7) - 1; 1736 const UInt32 kMaxCodePoint2 = (static_cast<UInt32>(1) << (5 + 6)) - 1; 1739 const UInt32 kMaxCodePoint3 = (static_cast<UInt32>(1) << (4 + 2*6)) - 1; 1742 const UInt32 kMaxCodePoint4 = (static_cast<UInt32>(1) << (3 + 3*6)) - 1; 1747 inline UInt32 ChopLowBits(UInt32* bits, int n) { 1747 inline UInt32 ChopLowBits(UInt32* bits, int n) { 1748 const UInt32 low_bits = *bits & ((static_cast<UInt32>(1) << n) - 1); 1759 std::string CodePointToUtf8(UInt32 code_point) { 1800 inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first, 1802 const UInt32 mask = (1 << 10) - 1; 1829 UInt32 unicode_code_point;