xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
literals.h
Go to the documentation of this file.
1 #pragma once
5 #include "types.h"
6 #include "ustring.h"
7 
9 namespace xtd {
20  byte_t operator""_b(long double n);
21 
32  byte_t operator""_b(unsigned long long n);
33 
44  byte_t operator""_b(const char* s, size_t n);
45 
56  byte_t operator""_b(const char8_t* s, size_t n);
57 
68  byte_t operator""_b(const char16_t* s, size_t n);
69 
80  byte_t operator""_b(const char32_t* s, size_t n);
81 
92  byte_t operator""_b(const wchar_t* s, size_t n);
93 
104  double operator""_d(long double n);
105 
116  double operator""_d(unsigned long long n);
117 
128  double operator""_d(const char* s, size_t n);
129 
140  double operator""_d(const char8_t* s, size_t n);
141 
152  double operator""_d(const char16_t* s, size_t n);
153 
164  double operator""_d(const char32_t* s, size_t n);
165 
176  double operator""_d(const wchar_t* s, size_t n);
177 
188  float operator""_f(long double n);
189 
200  float operator""_f(unsigned long long n);
201 
212  float operator""_f(const char* s, size_t n);
213 
224  float operator""_f(const char8_t* s, size_t n);
225 
236  float operator""_f(const char16_t* s, size_t n);
237 
248  float operator""_f(const char32_t* s, size_t n);
249 
260  float operator""_f(const wchar_t* s, size_t n);
261 
272  char32_t operator""_c(char c);
273 
284  char32_t operator""_c(char16_t c);
285 
296  char32_t operator""_c(char32_t c);
297 
308  char32_t operator""_c(wchar_t c);
309 
320  char32_t operator""_c(unsigned long long c);
321 
333  xtd::ustring operator""_s(const char* s, size_t n);
334 
346  xtd::ustring operator""_s(const char8_t* s, size_t n);
347 
359  xtd::ustring operator""_s(const char16_t* s, size_t n);
360 
372  xtd::ustring operator""_s(const char32_t* s, size_t n);
373 
385  xtd::ustring operator""_s(const wchar_t* s, size_t n);
386 
398  xtd::ustring operator""_s(long double s);
399 
411  xtd::ustring operator""_s(unsigned long long s);
412 
424  xtd::ustring operator""_sb(unsigned long long s);
425 
437  xtd::ustring operator""_sb2(unsigned long long s);
438 
450  xtd::ustring operator""_sb4(unsigned long long s);
451 
463  xtd::ustring operator""_sb8(unsigned long long s);
464 
476  xtd::ustring operator""_sb16(unsigned long long s);
477 
489  xtd::ustring operator""_sb32(unsigned long long s);
490 
502  xtd::ustring operator""_sb64(unsigned long long s);
503 
515  xtd::ustring operator""_sx(unsigned long long s);
516 
528  xtd::ustring operator""_sx2(unsigned long long s);
529 
541  xtd::ustring operator""_sx4(unsigned long long s);
542 
554  xtd::ustring operator""_sx8(unsigned long long s);
555 
567  xtd::ustring operator""_sX(unsigned long long s);
568 
580  xtd::ustring operator""_sX2(unsigned long long s);
581 
593  xtd::ustring operator""_sX4(unsigned long long s);
594 
606  xtd::ustring operator""_sX8(unsigned long long s);
607 
618  int8_t operator""_s8(long double n);
619 
630  int8_t operator""_s8(unsigned long long n);
631 
642  int8_t operator""_s8(const char* s, size_t n);
643 
654  int8_t operator""_s8(const char8_t* s, size_t n);
655 
666  int8_t operator""_s8(const char16_t* s, size_t n);
667 
678  int8_t operator""_s8(const char32_t* s, size_t n);
679 
690  int8_t operator""_s8(const wchar_t* s, size_t n);
691 
702  int16_t operator""_s16(long double n);
703 
714  int16_t operator""_s16(unsigned long long n);
715 
726  int16_t operator""_s16(const char* s, size_t n);
727 
738  int16_t operator""_s16(const char8_t* s, size_t n);
739 
750  int16_t operator""_s16(const char16_t* s, size_t n);
751 
762  int16_t operator""_s16(const char32_t* s, size_t n);
763 
774  int16_t operator""_s16(const wchar_t* s, size_t n);
775 
786  int32_t operator""_s32(long double n);
787 
798  int32_t operator""_s32(unsigned long long n);
799 
810  int32_t operator""_s32(const char* s, size_t n);
811 
822  int32_t operator""_s32(const char8_t* s, size_t n);
823 
834  int32_t operator""_s32(const char16_t* s, size_t n);
835 
846  int32_t operator""_s32(const char32_t* s, size_t n);
847 
858  int32_t operator""_s32(const wchar_t* s, size_t n);
859 
870  int64_t operator""_s64(long double n);
871 
882  int64_t operator""_s64(unsigned long long n);
883 
894  int64_t operator""_s64(const char* s, size_t n);
895 
906  int64_t operator""_s64(const char8_t* s, size_t n);
907 
918  int64_t operator""_s64(const char16_t* s, size_t n);
919 
930  int64_t operator""_s64(const char32_t* s, size_t n);
931 
942  int64_t operator""_s64(const wchar_t* s, size_t n);
943 
954  uint8_t operator""_u8(long double n);
955 
966  uint8_t operator""_u8(unsigned long long n);
967 
978  uint8_t operator""_u8(const char* s, size_t n);
979 
990  uint8_t operator""_u8(const char8_t* s, size_t n);
991 
1002  uint8_t operator""_u8(const char16_t* s, size_t n);
1003 
1014  uint8_t operator""_u8(const char32_t* s, size_t n);
1015 
1026  uint8_t operator""_u8(const wchar_t* s, size_t n);
1027 
1038  uint16_t operator""_u16(long double n);
1039 
1050  uint16_t operator""_u16(unsigned long long n);
1051 
1062  uint16_t operator""_u16(const char* s, size_t n);
1063 
1074  uint16_t operator""_u16(const char8_t* s, size_t n);
1075 
1086  uint16_t operator""_u16(const char16_t* s, size_t n);
1087 
1098  uint16_t operator""_u16(const char32_t* s, size_t n);
1099 
1110  uint16_t operator""_u16(const wchar_t* s, size_t n);
1111 
1122  uint32_t operator""_u32(long double n);
1123 
1134  uint32_t operator""_u32(unsigned long long n);
1135 
1146  uint32_t operator""_u32(const char* s, size_t n);
1147 
1158  uint32_t operator""_u32(const char8_t* s, size_t n);
1159 
1170  uint32_t operator""_u32(const char16_t* s, size_t n);
1171 
1182  uint32_t operator""_u32(const char32_t* s, size_t n);
1183 
1194  uint32_t operator""_u32(const wchar_t* s, size_t n);
1195 
1206  uint64_t operator""_u64(long double n);
1207 
1218  uint64_t operator""_u64(unsigned long long n);
1219 
1230  uint64_t operator""_u64(const char* s, size_t n);
1231 
1242  uint64_t operator""_u64(const char8_t* s, size_t n);
1243 
1254  uint64_t operator""_u64(const char16_t* s, size_t n);
1255 
1266  uint64_t operator""_u64(const char32_t* s, size_t n);
1267 
1278  uint64_t operator""_u64(const wchar_t* s, size_t n);
1279 
1286  const char* operator""_t(const char* s, size_t n);
1287 
1294  xtd::ustring operator""_t(const char8_t* s, size_t n);
1295 
1302  xtd::ustring operator""_t(const char16_t* s, size_t n);
1303 
1310  xtd::ustring operator""_t(const char32_t* s, size_t n);
1311 
1318  xtd::ustring operator""_t(const wchar_t* s, size_t n);
1319 }
Contains xtd fundamental types.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Contains xtd::ustring class.