Home
last modified time | relevance | path

Searched refs:CivilYear (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dcivil_time_test.cc42 absl::CivilYear y; in TEST()
121 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3, 4, 5))); in TEST()
123 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3, 4))); in TEST()
125 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3))); in TEST()
127 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2))); in TEST()
129 absl::FormatCivilTime(absl::CivilYear(2015, 1))); in TEST()
131 absl::FormatCivilTime(absl::CivilYear(2015))); in TEST()
173 EXPECT_EQ(absl::CivilYear(kYearMax), in TEST()
174 absl::CivilYear::max()); in TEST()
188 EXPECT_EQ(absl::CivilYear(kYearMin), in TEST()
[all …]
Dcivil_time.h333 using CivilYear = variable
461 std::string FormatCivilTime(CivilYear c);
492 bool ParseCivilTime(absl::string_view s, CivilYear* c);
512 bool ParseLenientCivilTime(absl::string_view s, CivilYear* c);
526 std::ostream& operator<<(std::ostream& os, CivilYear y);
Dcivil_time.cc93 if (ParseAs<CivilYear>(s, c)) return true; in ParseLenient()
109 std::string FormatCivilTime(CivilYear c) { return FormatYearAnd("", c); } in FormatCivilTime()
126 bool ParseCivilTime(string_view s, CivilYear* c) { in ParseCivilTime()
145 bool ParseLenientCivilTime(string_view s, CivilYear* c) { in ParseLenientCivilTime()
151 std::ostream& operator<<(std::ostream& os, CivilYear y) { in operator <<()
Dcivil_time_benchmark.cc103 BM_CivilTimeAbslHash<absl::CivilYear>(state); in BM_CivilYearAbslHash()
Dtime.h1140 inline CivilYear ToCivilYear(Time t, TimeZone tz) { in ToCivilYear()
1141 return CivilYear(tz.At(t).cs); in ToCivilYear()
Dtime_test.cc1170 t = absl::FromCivil(absl::CivilYear(cs), utc); in TEST()
/third_party/abseil-cpp/absl/time/
Dcivil_time_test.cc42 absl::CivilYear y; in TEST()
121 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3, 4, 5))); in TEST()
123 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3, 4))); in TEST()
125 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3))); in TEST()
127 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2))); in TEST()
129 absl::FormatCivilTime(absl::CivilYear(2015, 1))); in TEST()
131 absl::FormatCivilTime(absl::CivilYear(2015))); in TEST()
173 EXPECT_EQ(absl::CivilYear(kYearMax), in TEST()
174 absl::CivilYear::max()); in TEST()
188 EXPECT_EQ(absl::CivilYear(kYearMin), in TEST()
[all …]
Dcivil_time.h333 using CivilYear = variable
461 std::string FormatCivilTime(CivilYear c);
492 bool ParseCivilTime(absl::string_view s, CivilYear* c);
512 bool ParseLenientCivilTime(absl::string_view s, CivilYear* c);
526 std::ostream& operator<<(std::ostream& os, CivilYear y);
Dcivil_time.cc95 if (ParseAs<CivilYear>(s, c)) return true; in ParseLenient()
111 std::string FormatCivilTime(CivilYear c) { return FormatYearAnd("", c); } in FormatCivilTime()
128 bool ParseCivilTime(string_view s, CivilYear* c) { in ParseCivilTime()
147 bool ParseLenientCivilTime(string_view s, CivilYear* c) { in ParseLenientCivilTime()
153 std::ostream& operator<<(std::ostream& os, CivilYear y) { in operator <<()
Dcivil_time_benchmark.cc103 BM_CivilTimeAbslHash<absl::CivilYear>(state); in BM_CivilYearAbslHash()
Dtime.h1091 inline CivilYear ToCivilYear(Time t, TimeZone tz) { in ToCivilYear()
1092 return CivilYear(tz.At(t).cs); in ToCivilYear()
Dtime_test.cc1166 t = absl::FromCivil(absl::CivilYear(cs), utc); in TEST()