xtd 1.0.0
Loading...
Searching...
No Matches
string.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../string.hpp"
6#include "../string_view.hpp"
7#include "../u16string.hpp"
9#include "../u32string.hpp"
10#include "../u32string_view.hpp"
11#include "../u8string.hpp"
12#include "../u8string_view.hpp"
13#include "../wstring.hpp"
14#include "../wstring_view.hpp"
15#define __XTD_CORE_INTERNAL__
17#undef __XTD_CORE_INTERNAL__
18
20namespace xtd {
22 inline namespace literals {
24
37 [[nodiscard]] auto operator""_s(const char* s, xtd::usize n) -> xtd::string;
38
50 [[nodiscard]] auto operator""_s(const char8* s, xtd::usize n) -> xtd::string;
51
63 [[nodiscard]] auto operator""_s(const char16* s, xtd::usize n) -> xtd::string;
64
76 [[nodiscard]] auto operator""_s(const char32* s, xtd::usize n) -> xtd::string;
77
89 [[nodiscard]] auto operator""_s(const wchar* s, xtd::usize n) -> xtd::string;
90
102 [[nodiscard]] auto operator""_sb(long double s) -> xtd::string;
103
115 [[nodiscard]] auto operator""_sb(unsigned long long s) -> xtd::string;
116
128 [[nodiscard]] auto operator""_sb2(long double s) -> xtd::string;
129
141 [[nodiscard]] auto operator""_sb2(unsigned long long s) -> xtd::string;
142
154 [[nodiscard]] auto operator""_sb4(long double s) -> xtd::string;
155
167 [[nodiscard]] auto operator""_sb4(unsigned long long s) -> xtd::string;
168
180 [[nodiscard]] auto operator""_sb8(long double s) -> xtd::string;
181
193 [[nodiscard]] auto operator""_sb8(unsigned long long s) -> xtd::string;
194
206 [[nodiscard]] auto operator""_sb16(long double s) -> xtd::string;
207
219 [[nodiscard]] auto operator""_sb16(unsigned long long s) -> xtd::string;
220
232 [[nodiscard]] auto operator""_sb32(long double s) -> xtd::string;
233
245 [[nodiscard]] auto operator""_sb32(unsigned long long s) -> xtd::string;
246
258 [[nodiscard]] auto operator""_sb64(long double s) -> xtd::string;
259
271 [[nodiscard]] auto operator""_sb64(unsigned long long s) -> xtd::string;
272
284 [[nodiscard]] auto operator""_sd(long double s) -> xtd::string;
285
297 [[nodiscard]] auto operator""_sd(unsigned long long s) -> xtd::string;
298
310 [[nodiscard]] auto operator""_sv(const char* s, xtd::usize n) -> xtd::string_view;
311
323 [[nodiscard]] auto operator""_sv(const char8* s, xtd::usize n) -> xtd::u8string_view;
324
336 [[nodiscard]] auto operator""_sv(const char16* s, xtd::usize n) -> xtd::u16string_view;
337
349 [[nodiscard]] auto operator""_sv(const char32* s, xtd::usize n) -> xtd::u32string_view;
350
362 [[nodiscard]] auto operator""_sv(const wchar* s, xtd::usize n) -> xtd::wstring_view;
363
375 [[nodiscard]] auto operator""_sx(long double s) -> xtd::string;
376
388 [[nodiscard]] auto operator""_sx(unsigned long long s) -> xtd::string;
389
401 [[nodiscard]] auto operator""_sx2(unsigned long long s) -> xtd::string;
402
414 [[nodiscard]] auto operator""_sx4(unsigned long long s) -> xtd::string;
415
427 [[nodiscard]] auto operator""_sx8(unsigned long long s) -> xtd::string;
428
440 [[nodiscard]] auto operator""_sx16(unsigned long long s) -> xtd::string;
441
453 [[nodiscard]] auto operator""_sX(long double s) -> xtd::string;
454
466 [[nodiscard]] auto operator""_sX(unsigned long long s) -> xtd::string;
467
479 [[nodiscard]] auto operator""_sX2(unsigned long long s) -> xtd::string;
480
492 [[nodiscard]] auto operator""_sX4(unsigned long long s) -> xtd::string;
493
505 [[nodiscard]] auto operator""_sX8(unsigned long long s) -> xtd::string;
506
518 [[nodiscard]] auto operator""_sX16(unsigned long long s) -> xtd::string;
520 }
521}
std::basic_string_view< char > string_view
Represents an object that can refer to a constant contiguous sequence of char_t with the first elemen...
Definition string_view.hpp:15
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::basic_string_view< xtd::char16 > u16string_view
Represents an object that can refer to a constant contiguous sequence of char_t with the first elemen...
Definition u16string_view.hpp:16
std::basic_string_view< xtd::char8 > u8string_view
Represents an object that can refer to a constant contiguous sequence of char_t with the first elemen...
Definition u8string_view.hpp:16
std::basic_string_view< xtd::wchar > wstring_view
Represents an object that can refer to a constant contiguous sequence of char_t with the first elemen...
Definition wstring_view.hpp:16
std::basic_string_view< xtd::char16 > u32string_view
Represents an object that can refer to a constant contiguous sequence of char_t with the first elemen...
Definition u32string_view.hpp:16
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:26
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
@ s
The S key.
Definition console_key.hpp:124
@ n
The N key.
Definition console_key.hpp:114
The xtd::literals namespace contains all xtd's litterals operators.
Definition byte.hpp:15
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::string alias.
Contains xtd::string_view alias.
Contains xtd::u16string alias.
Contains xtd::u16string_view alias.
Contains xtd::u32string alias.
Contains xtd::u32string_view alias.
Contains xtd::u8string alias.
Contains xtd::u8string_view alias.
Contains xtd::wstring alias.
Contains xtd::wstring_view alias.