xtd 0.2.0
Loading...
Searching...
No Matches
literals.h
Go to the documentation of this file.
1
4#pragma once
5#include "time_span.h"
6#include "types.h"
7#include "ustring.h"
8
10namespace xtd {
12 inline namespace literals {
23 xtd::byte operator""_b(long double n);
24
35 xtd::byte operator""_b(unsigned long long n);
36
47 xtd::byte operator""_b(const char* s, size_t n);
48
49#if defined(__cpp_lib_char8_t)
60 xtd::byte operator""_b(const char8* s, size_t n);
61#endif
62
73 xtd::byte operator""_b(const char16* s, size_t n);
74
85 xtd::byte operator""_b(const char32* s, size_t n);
86
97 xtd::byte operator""_b(const wchar* s, size_t n);
98
109 double operator""_d(long double n);
110
121 double operator""_d(unsigned long long n);
122
133 double operator""_d(const char* s, size_t n);
134
135#if defined(__cpp_lib_char8_t)
146 double operator""_d(const char8* s, size_t n);
147#endif
148
159 double operator""_d(const char16* s, size_t n);
160
171 double operator""_d(const char32* s, size_t n);
172
183 double operator""_d(const wchar* s, size_t n);
184
195 float operator""_f(long double n);
196
207 float operator""_f(unsigned long long n);
208
219 float operator""_f(const char* s, size_t n);
220
221#if defined(__cpp_lib_char8_t)
232 float operator""_f(const char8* s, size_t n);
233#endif
234
245 float operator""_f(const char16* s, size_t n);
246
257 float operator""_f(const char32* s, size_t n);
258
269 float operator""_f(const wchar* s, size_t n);
270
281 char32 operator""_c(char c);
282
293 char32 operator""_c(char16 c);
294
305 char32 operator""_c(char32 c);
306
317 char32 operator""_c(wchar c);
318
329 char32 operator""_c(unsigned long long c);
330
342 xtd::time_span operator""_h(unsigned long long s);
343
355 xtd::time_span operator""_m(unsigned long long s);
356
368 xtd::time_span operator""_min(unsigned long long s);
369
381 xtd::time_span operator""_ms(unsigned long long s);
382
394 xtd::time_span operator""_ns(unsigned long long s);
395
407 xtd::ustring operator""_s(const char* s, size_t n);
408
409#if defined(__cpp_lib_char8_t)
421 xtd::ustring operator""_s(const char8* s, size_t n);
422#endif
423
435 xtd::ustring operator""_s(const char16* s, size_t n);
436
448 xtd::ustring operator""_s(const char32* s, size_t n);
449
461 xtd::ustring operator""_s(const wchar* s, size_t n);
462
474 xtd::time_span operator""_s(unsigned long long s);
475
487 xtd::ustring operator""_sb(unsigned long long s);
488
500 xtd::ustring operator""_sb2(unsigned long long s);
501
513 xtd::ustring operator""_sb4(unsigned long long s);
514
526 xtd::ustring operator""_sb8(unsigned long long s);
527
539 xtd::ustring operator""_sb16(unsigned long long s);
540
552 xtd::ustring operator""_sb32(unsigned long long s);
553
565 xtd::ustring operator""_sb64(unsigned long long s);
566
578 xtd::ustring operator""_sd(long double s);
579
591 xtd::ustring operator""_sd(unsigned long long s);
592
604 xtd::ustring operator""_sx(unsigned long long s);
605
617 xtd::ustring operator""_sx2(unsigned long long s);
618
630 xtd::ustring operator""_sx4(unsigned long long s);
631
643 xtd::ustring operator""_sx8(unsigned long long s);
644
656 xtd::ustring operator""_sX(unsigned long long s);
657
669 xtd::ustring operator""_sX2(unsigned long long s);
670
682 xtd::ustring operator""_sX4(unsigned long long s);
683
695 xtd::ustring operator""_sX8(unsigned long long s);
696
707 sbyte operator""_s8(long double n);
708
719 sbyte operator""_s8(unsigned long long n);
720
731 sbyte operator""_s8(const char* s, size_t n);
732
733#if defined(__cpp_lib_char8_t)
744 sbyte operator""_s8(const char8* s, size_t n);
745#endif
746
757 sbyte operator""_s8(const char16* s, size_t n);
758
769 sbyte operator""_s8(const char32* s, size_t n);
770
781 sbyte operator""_s8(const wchar* s, size_t n);
782
793 int16 operator""_s16(long double n);
794
805 int16 operator""_s16(unsigned long long n);
806
817 int16 operator""_s16(const char* s, size_t n);
818
819#if defined(__cpp_lib_char8_t)
830 int16 operator""_s16(const char8* s, size_t n);
831#endif
832
843 int16 operator""_s16(const char16* s, size_t n);
844
855 int16 operator""_s16(const char32* s, size_t n);
856
867 int16 operator""_s16(const wchar* s, size_t n);
868
879 int32 operator""_s32(long double n);
880
891 int32 operator""_s32(unsigned long long n);
892
903 int32 operator""_s32(const char* s, size_t n);
904
905#if defined(__cpp_lib_char8_t)
916 int32 operator""_s32(const char8* s, size_t n);
917#endif
918
929 int32 operator""_s32(const char16* s, size_t n);
930
941 int32 operator""_s32(const char32* s, size_t n);
942
953 int32 operator""_s32(const wchar* s, size_t n);
954
965 int64 operator""_s64(long double n);
966
977 int64 operator""_s64(unsigned long long n);
978
989 int64 operator""_s64(const char* s, size_t n);
990
991#if defined(__cpp_lib_char8_t)
1002 int64 operator""_s64(const char8* s, size_t n);
1003#endif
1004
1015 int64 operator""_s64(const char16* s, size_t n);
1016
1027 int64 operator""_s64(const char32* s, size_t n);
1028
1039 int64 operator""_s64(const wchar* s, size_t n);
1040
1047 const char* operator""_t(const char* s, size_t n) noexcept;
1048
1049#if defined(__cpp_lib_char8_t)
1056 xtd::ustring operator""_t(const char8* s, size_t n) noexcept;
1057#endif
1058
1065 xtd::ustring operator""_t(const char16* s, size_t n) noexcept;
1066
1073 xtd::ustring operator""_t(const char32* s, size_t n) noexcept;
1074
1081 xtd::ustring operator""_t(const wchar* s, size_t n) noexcept;
1082
1094 xtd::time_span operator""_t(unsigned long long s);
1095
1106 xtd::byte operator""_u8(long double n);
1107
1118 xtd::byte operator""_u8(unsigned long long n);
1119
1130 xtd::byte operator""_u8(const char* s, size_t n);
1131
1132#if defined(__cpp_lib_char8_t)
1143 xtd::byte operator""_u8(const char8* s, size_t n);
1144#endif
1145
1156 xtd::byte operator""_u8(const char16* s, size_t n);
1157
1168 xtd::byte operator""_u8(const char32* s, size_t n);
1169
1180 xtd::byte operator""_u8(const wchar* s, size_t n);
1181
1192 uint16 operator""_u16(long double n);
1193
1204 uint16 operator""_u16(unsigned long long n);
1205
1216 uint16 operator""_u16(const char* s, size_t n);
1217
1218#if defined(__cpp_lib_char8_t)
1229 uint16 operator""_u16(const char8* s, size_t n);
1230#endif
1231
1242 uint16 operator""_u16(const char16* s, size_t n);
1243
1254 uint16 operator""_u16(const char32* s, size_t n);
1255
1266 uint16 operator""_u16(const wchar* s, size_t n);
1267
1278 uint32 operator""_u32(long double n);
1279
1290 uint32 operator""_u32(unsigned long long n);
1291
1302 uint32 operator""_u32(const char* s, size_t n);
1303
1304#if defined(__cpp_lib_char8_t)
1315 uint32 operator""_u32(const char8* s, size_t n);
1316#endif
1317
1328 uint32 operator""_u32(const char16* s, size_t n);
1329
1340 uint32 operator""_u32(const char32* s, size_t n);
1341
1352 uint32 operator""_u32(const wchar* s, size_t n);
1353
1364 uint64 operator""_u64(long double n);
1365
1376 uint64 operator""_u64(unsigned long long n);
1377
1388 uint64 operator""_u64(const char* s, size_t n);
1389
1390#if defined(__cpp_lib_char8_t)
1401 uint64 operator""_u64(const char8* s, size_t n);
1402#endif
1403
1414 uint64 operator""_u64(const char16* s, size_t n);
1415
1426 uint64 operator""_u64(const char32* s, size_t n);
1427
1438 uint64 operator""_u64(const wchar* s, size_t n);
1439
1451 xtd::time_span operator""_us(unsigned long long s);
1452 }
1453
1464 size_t operator""_uz(long double n);
1465
1476 size_t operator""_uz(unsigned long long n);
1477
1488 size_t operator""_uz(const char* s, size_t n);
1489
1490#if defined(__cpp_lib_char8_t)
1501 size_t operator""_uz(const char8* s, size_t n);
1502#endif
1503
1514 size_t operator""_uz(const char16* s, size_t n);
1515
1526 size_t operator""_uz(const char32* s, size_t n);
1527
1538 size_t operator""_uz(const wchar* s, size_t n);
1539
1550 size_t operator""_z(long double n);
1551
1562 size_t operator""_z(unsigned long long n);
1563
1574 size_t operator""_z(const char* s, size_t n);
1575
1576#if defined(__cpp_lib_char8_t)
1587 size_t operator""_z(const char8* s, size_t n);
1588#endif
1589
1600 size_t operator""_z(const char16* s, size_t n);
1601
1612 size_t operator""_z(const char32* s, size_t n);
1613
1624 size_t operator""_z(const wchar* s, size_t n);
1625}
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
char8_t char8
Represents a 8-bit unicode character.
Definition types.h:64
wchar_t wchar
Represents a wide character.
Definition types.h:286
int_least16_t int16
Represents a 16-bit signed integer.
Definition types.h:120
char16_t char16
Represents a 16-bit unicode character.
Definition types.h:76
int_least8_t sbyte
Represents a 8-bit signed integer.
Definition types.h:175
int_least64_t int64
Represents a 64-bit signed integer.
Definition types.h:142
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition types.h:230
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
char32_t char32
Represents a 32-bit unicode character.
Definition types.h:87
uint_least64_t uint64
Represents a 64-bit unsigned integer.
Definition types.h:252
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition types.h:241
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition types.h:41
@ s
The S key.
@ c
The C key.
@ n
The N key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Represents a time interval.
Definition time_span.h:26
Contains xtd::time_span typedef.
Contains xtd fundamental types.
Contains xtd::ustring class.