/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ |
D | plus_minus_equal.pass.cpp | 27 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()
|
D | increment.pass.cpp | 28 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()
|
D | decrement.pass.cpp | 28 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()
|
D | ctor.pass.cpp | 35 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()
|
D | c_encoding.pass.cpp | 26 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()
|
D | ctor.sys_days.pass.cpp | 45 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()
|
D | ctor.local_days.pass.cpp | 45 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()
|
D | iso_encoding.pass.cpp | 27 return wd.c_encoding() == 5; in testConstexpr()
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/ |
D | literals.pass.cpp | 54 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()
|
D | plus.pass.cpp | 66 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()
|
D | minus.pass.cpp | 65 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/ |
D | weekday_indexed.pass.cpp | 38 assert( ymwd0.weekday_indexed().weekday().c_encoding() == (i == 7 ? 0 : i)); in main() 42 assert( ymwd1.weekday_indexed().weekday().c_encoding() == 2); in main()
|
D | weekday.pass.cpp | 38 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/ |
D | weekday.pass.cpp | 36 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/ |
D | weekday.pass.cpp | 38 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/ |
D | weekday_last.pass.cpp | 41 assert( mdl.weekday_last().weekday().c_encoding() == (i == 7 ? 0 : i)); in main()
|
/external/python/cpython2/Python/ |
D | ast.c | 20 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/ |
D | chrono | 1856 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();
|