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 "string.h"
8#define __XTD_STD_INTERNAL__
10#undef __XTD_STD_INTERNAL__
11
13namespace xtd {
15 inline namespace literals {
26 xtd::byte operator""_b(long double n);
27
38 xtd::byte operator""_b(unsigned long long n);
39
50 xtd::byte operator""_b(const char* s, size_t n);
51
52#if defined(__xtd__cpp_lib_char8_t)
63 xtd::byte operator""_b(const char8* s, size_t n);
64#endif
65
76 xtd::byte operator""_b(const char16* s, size_t n);
77
88 xtd::byte operator""_b(const char32* s, size_t n);
89
100 xtd::byte operator""_b(const wchar* s, size_t n);
101
112 double operator""_d(long double n);
113
124 double operator""_d(unsigned long long n);
125
136 double operator""_d(const char* s, size_t n);
137
138#if defined(__xtd__cpp_lib_char8_t)
149 double operator""_d(const char8* s, size_t n);
150#endif
151
162 double operator""_d(const char16* s, size_t n);
163
174 double operator""_d(const char32* s, size_t n);
175
186 double operator""_d(const wchar* s, size_t n);
187
198 float operator""_f(long double n);
199
210 float operator""_f(unsigned long long n);
211
222 float operator""_f(const char* s, size_t n);
223
224#if defined(__xtd__cpp_lib_char8_t)
235 float operator""_f(const char8* s, size_t n);
236#endif
237
248 float operator""_f(const char16* s, size_t n);
249
260 float operator""_f(const char32* s, size_t n);
261
272 float operator""_f(const wchar* s, size_t n);
273
284 char32 operator""_c(char c);
285
296 char32 operator""_c(char16 c);
297
308 char32 operator""_c(char32 c);
309
320 char32 operator""_c(wchar c);
321
332 char32 operator""_c(unsigned long long c);
333
345 xtd::time_span operator""_h(unsigned long long s);
346
358 xtd::time_span operator""_m(unsigned long long s);
359
371 xtd::time_span operator""_min(unsigned long long s);
372
384 xtd::time_span operator""_ms(unsigned long long s);
385
397 xtd::time_span operator""_ns(unsigned long long s);
398
410 xtd::string operator""_s(const char* s, size_t n);
411
412#if defined(__xtd__cpp_lib_char8_t)
424 xtd::string operator""_s(const char8* s, size_t n);
425#endif
426
438 xtd::string operator""_s(const char16* s, size_t n);
439
451 xtd::string operator""_s(const char32* s, size_t n);
452
464 xtd::string operator""_s(const wchar* s, size_t n);
465
477 xtd::time_span operator""_s(unsigned long long s);
478
490 xtd::string operator""_sb(unsigned long long s);
491
503 xtd::string operator""_sb2(unsigned long long s);
504
516 xtd::string operator""_sb4(unsigned long long s);
517
529 xtd::string operator""_sb8(unsigned long long s);
530
542 xtd::string operator""_sb16(unsigned long long s);
543
555 xtd::string operator""_sb32(unsigned long long s);
556
568 xtd::string operator""_sb64(unsigned long long s);
569
581 xtd::string operator""_sd(long double s);
582
594 xtd::string operator""_sd(unsigned long long s);
595
607 xtd::string operator""_sx(unsigned long long s);
608
620 xtd::string operator""_sx2(unsigned long long s);
621
633 xtd::string operator""_sx4(unsigned long long s);
634
646 xtd::string operator""_sx8(unsigned long long s);
647
659 xtd::string operator""_sX(unsigned long long s);
660
672 xtd::string operator""_sX2(unsigned long long s);
673
685 xtd::string operator""_sX4(unsigned long long s);
686
698 xtd::string operator""_sX8(unsigned long long s);
699
710 sbyte operator""_s8(long double n);
711
722 sbyte operator""_s8(unsigned long long n);
723
734 sbyte operator""_s8(const char* s, size_t n);
735
736#if defined(__xtd__cpp_lib_char8_t)
747 sbyte operator""_s8(const char8* s, size_t n);
748#endif
749
760 sbyte operator""_s8(const char16* s, size_t n);
761
772 sbyte operator""_s8(const char32* s, size_t n);
773
784 sbyte operator""_s8(const wchar* s, size_t n);
785
796 int16 operator""_s16(long double n);
797
808 int16 operator""_s16(unsigned long long n);
809
820 int16 operator""_s16(const char* s, size_t n);
821
822#if defined(__xtd__cpp_lib_char8_t)
833 int16 operator""_s16(const char8* s, size_t n);
834#endif
835
846 int16 operator""_s16(const char16* s, size_t n);
847
858 int16 operator""_s16(const char32* s, size_t n);
859
870 int16 operator""_s16(const wchar* s, size_t n);
871
882 int32 operator""_s32(long double n);
883
894 int32 operator""_s32(unsigned long long n);
895
906 int32 operator""_s32(const char* s, size_t n);
907
908#if defined(__xtd__cpp_lib_char8_t)
919 int32 operator""_s32(const char8* s, size_t n);
920#endif
921
932 int32 operator""_s32(const char16* s, size_t n);
933
944 int32 operator""_s32(const char32* s, size_t n);
945
956 int32 operator""_s32(const wchar* s, size_t n);
957
968 int64 operator""_s64(long double n);
969
980 int64 operator""_s64(unsigned long long n);
981
992 int64 operator""_s64(const char* s, size_t n);
993
994#if defined(__xtd__cpp_lib_char8_t)
1005 int64 operator""_s64(const char8* s, size_t n);
1006#endif
1007
1018 int64 operator""_s64(const char16* s, size_t n);
1019
1030 int64 operator""_s64(const char32* s, size_t n);
1031
1042 int64 operator""_s64(const wchar* s, size_t n);
1043
1050 const char* operator""_t(const char* s, size_t n) noexcept;
1051
1052#if defined(__xtd__cpp_lib_char8_t)
1059 xtd::string operator""_t(const char8* s, size_t n) noexcept;
1060#endif
1061
1068 xtd::string operator""_t(const char16* s, size_t n) noexcept;
1069
1076 xtd::string operator""_t(const char32* s, size_t n) noexcept;
1077
1084 xtd::string operator""_t(const wchar* s, size_t n) noexcept;
1085
1097 xtd::time_span operator""_t(unsigned long long s);
1098
1109 xtd::byte operator""_u8(long double n);
1110
1121 xtd::byte operator""_u8(unsigned long long n);
1122
1133 xtd::byte operator""_u8(const char* s, size_t n);
1134
1135#if defined(__xtd__cpp_lib_char8_t)
1146 xtd::byte operator""_u8(const char8* s, size_t n);
1147#endif
1148
1159 xtd::byte operator""_u8(const char16* s, size_t n);
1160
1171 xtd::byte operator""_u8(const char32* s, size_t n);
1172
1183 xtd::byte operator""_u8(const wchar* s, size_t n);
1184
1195 uint16 operator""_u16(long double n);
1196
1207 uint16 operator""_u16(unsigned long long n);
1208
1219 uint16 operator""_u16(const char* s, size_t n);
1220
1221#if defined(__xtd__cpp_lib_char8_t)
1232 uint16 operator""_u16(const char8* s, size_t n);
1233#endif
1234
1245 uint16 operator""_u16(const char16* s, size_t n);
1246
1257 uint16 operator""_u16(const char32* s, size_t n);
1258
1269 uint16 operator""_u16(const wchar* s, size_t n);
1270
1281 uint32 operator""_u32(long double n);
1282
1293 uint32 operator""_u32(unsigned long long n);
1294
1305 uint32 operator""_u32(const char* s, size_t n);
1306
1307#if defined(__xtd__cpp_lib_char8_t)
1318 uint32 operator""_u32(const char8* s, size_t n);
1319#endif
1320
1331 uint32 operator""_u32(const char16* s, size_t n);
1332
1343 uint32 operator""_u32(const char32* s, size_t n);
1344
1355 uint32 operator""_u32(const wchar* s, size_t n);
1356
1367 uint64 operator""_u64(long double n);
1368
1379 uint64 operator""_u64(unsigned long long n);
1380
1391 uint64 operator""_u64(const char* s, size_t n);
1392
1393#if defined(__xtd__cpp_lib_char8_t)
1404 uint64 operator""_u64(const char8* s, size_t n);
1405#endif
1406
1417 uint64 operator""_u64(const char16* s, size_t n);
1418
1429 uint64 operator""_u64(const char32* s, size_t n);
1430
1441 uint64 operator""_u64(const wchar* s, size_t n);
1442
1454 xtd::time_span operator""_us(unsigned long long s);
1455 }
1456
1467 size_t operator""_uz(long double n);
1468
1479 size_t operator""_uz(unsigned long long n);
1480
1491 size_t operator""_uz(const char* s, size_t n);
1492
1493#if defined(__xtd__cpp_lib_char8_t)
1504 size_t operator""_uz(const char8* s, size_t n);
1505#endif
1506
1517 size_t operator""_uz(const char16* s, size_t n);
1518
1529 size_t operator""_uz(const char32* s, size_t n);
1530
1541 size_t operator""_uz(const wchar* s, size_t n);
1542
1553 size_t operator""_z(long double n);
1554
1565 size_t operator""_z(unsigned long long n);
1566
1577 size_t operator""_z(const char* s, size_t n);
1578
1579#if defined(__xtd__cpp_lib_char8_t)
1590 size_t operator""_z(const char8* s, size_t n);
1591#endif
1592
1603 size_t operator""_z(const char16* s, size_t n);
1604
1615 size_t operator""_z(const char32* s, size_t n);
1616
1627 size_t operator""_z(const wchar* s, size_t n);
1628}
Contains __xtd_std_version definitions.
Represents text as a sequence of character units.
Definition basic_string.h:79
int16_t int16
Represents a 16-bit signed integer.
Definition int16.h:23
char8_t char8
Represents a 8-bit unicode character.
Definition char8.h:27
wchar_t wchar
Represents a wide character.
Definition wchar.h:24
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.h:23
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.h:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.h:26
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.h:26
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.h:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.h:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.h:23
@ 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
Contains xtd::string alias.
Represents a time interval.
Definition time_span.h:29
Contains xtd::time_span typedef.
Contains xtd fundamental types.