Home
last modified time | relevance | path

Searched refs:c_encoding (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/
Dplus_minus_equal.pass.cpp27 if ((m1 += Ms{ 1}).c_encoding() != 2) return false; in testConstexpr()
28 if ((m1 += Ms{ 2}).c_encoding() != 4) return false; in testConstexpr()
29 if ((m1 += Ms{ 4}).c_encoding() != 1) return false; in testConstexpr()
30 if ((m1 -= Ms{ 1}).c_encoding() != 0) return false; in testConstexpr()
31 if ((m1 -= Ms{ 2}).c_encoding() != 5) return false; in testConstexpr()
32 if ((m1 -= Ms{ 4}).c_encoding() != 1) return false; in testConstexpr()
52 assert(((wd += days{3}).c_encoding() == euclidian_addition<unsigned, 0, 6>(i, 3))); in main()
53 assert(((wd) .c_encoding() == euclidian_addition<unsigned, 0, 6>(i, 3))); in main()
59 assert(((wd -= days{4}).c_encoding() == euclidian_subtraction<unsigned, 0, 6>(i, 4))); in main()
60 assert(((wd) .c_encoding() == euclidian_subtraction<unsigned, 0, 6>(i, 4))); in main()
Dincrement.pass.cpp28 if ((++wd).c_encoding() != 6) return false; in testConstexpr()
29 if ((wd++).c_encoding() != 6) return false; in testConstexpr()
30 if ((wd) .c_encoding() != 0) return false; in testConstexpr()
48 assert(((++wd).c_encoding() == euclidian_addition<unsigned, 0, 6>(i, 1))); in main()
49 assert(((wd++).c_encoding() == euclidian_addition<unsigned, 0, 6>(i, 1))); in main()
50 assert(((wd) .c_encoding() == euclidian_addition<unsigned, 0, 6>(i, 2))); in main()
Ddecrement.pass.cpp28 if ((--wd).c_encoding() != 0) return false; in testConstexpr()
29 if ((wd--).c_encoding() != 0) return false; in testConstexpr()
30 if ((wd).c_encoding() != 6) return false; in testConstexpr()
48 assert(((--wd).c_encoding() == euclidian_subtraction<unsigned, 0, 6>(i, 1))); in main()
49 assert(((wd--).c_encoding() == euclidian_subtraction<unsigned, 0, 6>(i, 1))); in main()
50 assert(((wd) .c_encoding() == euclidian_subtraction<unsigned, 0, 6>(i, 2))); in main()
Dctor.pass.cpp35 ASSERT_NOEXCEPT(weekday(1).c_encoding()); in main()
38 static_assert(m0.c_encoding() == 0, ""); in main()
41 static_assert(m1.c_encoding() == 1, ""); in main()
46 assert(m.c_encoding() == (i == 7 ? 0 : i)); in main()
Dc_encoding.pass.cpp26 return wd.c_encoding() == 5; in testConstexpr()
33 ASSERT_NOEXCEPT( std::declval<weekday&>().c_encoding()); in main()
34 ASSERT_SAME_TYPE(unsigned, decltype(std::declval<weekday&>().c_encoding())); in main()
41 assert(wd.c_encoding() == (i == 7 ? 0 : i)); in main()
Dctor.sys_days.pass.cpp45 static_assert( wd.c_encoding() == 4, ""); in main()
53 static_assert( wd.c_encoding() == 3, ""); in main()
62 static_assert( wd.c_encoding() == 2, ""); in main()
70 assert( wd.c_encoding() == 3); in main()
Dctor.local_days.pass.cpp45 static_assert( wd.c_encoding() == 4, ""); in main()
53 static_assert( wd.c_encoding() == 3, ""); in main()
62 static_assert( wd.c_encoding() == 2, ""); in main()
70 assert( wd.c_encoding() == 3); in main()
Diso_encoding.pass.cpp27 return wd.c_encoding() == 5; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/
Dliterals.pass.cpp54 assert(std::chrono::Sunday.c_encoding() == 0); in main()
55 assert(std::chrono::Monday.c_encoding() == 1); in main()
56 assert(std::chrono::Tuesday.c_encoding() == 2); in main()
57 assert(std::chrono::Wednesday.c_encoding() == 3); in main()
58 assert(std::chrono::Thursday.c_encoding() == 4); in main()
59 assert(std::chrono::Friday.c_encoding() == 5); in main()
60 assert(std::chrono::Saturday.c_encoding() == 6); in main()
Dplus.pass.cpp66 assert((wd1.c_encoding() == euclidian_addition<unsigned, 0, 6>(i, j))); in main()
67 assert((wd2.c_encoding() == euclidian_addition<unsigned, 0, 6>(i, j))); in main()
Dminus.pass.cpp65 assert((wd.c_encoding() == euclidian_subtraction<unsigned, 0, 6>(i, j))); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dweekday_indexed.pass.cpp38 assert( ymwd0.weekday_indexed().weekday().c_encoding() == (i == 7 ? 0 : i)); in main()
42 assert( ymwd1.weekday_indexed().weekday().c_encoding() == 2); in main()
Dweekday.pass.cpp38 assert(ymwd0.weekday().c_encoding() == (i == 7 ? 0 : i)); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/
Dweekday.pass.cpp36 assert( wdi.weekday().c_encoding() == i); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dweekday.pass.cpp38 assert(ymwdl.weekday().c_encoding() == (i == 7 ? 0 : i)); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/
Dweekday_last.pass.cpp41 assert( mdl.weekday_last().weekday().c_encoding() == (i == 7 ? 0 : i)); in main()
/external/python/cpython2/Python/
Dast.c20 char *c_encoding; /* source encoding */ member
226 c.c_encoding = "utf-8"; in PyAST_FromNode()
232 c.c_encoding = STR(n); in PyAST_FromNode()
235 c.c_encoding = NULL; in PyAST_FromNode()
3520 return decode_unicode(c, s, len, rawmode, c->c_encoding); in parsestr()
3523 need_encoding = (c->c_encoding != NULL && in parsestr()
3524 strcmp(c->c_encoding, "utf-8") != 0 && in parsestr()
3525 strcmp(c->c_encoding, "iso-8859-1") != 0); in parsestr()
3537 v = PyUnicode_AsEncodedString(u, c->c_encoding, NULL); in parsestr()
3547 need_encoding ? c->c_encoding : NULL); in parsestr()
/external/llvm-project/libcxx/include/
Dchrono1856 inline constexpr unsigned c_encoding() const noexcept { return __wd; }
1878 { return __lhs.c_encoding() == __rhs.c_encoding(); }
1886 { return __lhs.c_encoding() < __rhs.c_encoding(); }
1902 auto const __mu = static_cast<long long>(__lhs.c_encoding()) + __rhs.count();
1915 const int __wdu = __lhs.c_encoding() - __rhs.c_encoding();