Differential D112222 Diff 381357 lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string_view/main.cpp
Changeset View
Changeset View
Standalone View
Standalone View
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string_view/main.cpp
- This file was added.
#include <stdint.h> | |||||
#include <string> | |||||
#include <string_view> | |||||
int main() { | |||||
std::wstring_view wempty(L""); | |||||
std::wstring_view s(L"hello world! מזל טוב!"); | |||||
std::wstring_view S(L"!!!!"); | |||||
std::string_view empty(""); | |||||
std::string q_source = "hello world"; | |||||
std::string_view q(q_source); | |||||
std::string_view Q("quite a long std::strin with lots of info inside it"); | |||||
std::string_view TheVeryLongOne( | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"9012345678901234567890123456789012345678901234567890someText123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"123456789012345678901234567890123456789012345678901234567890123456789012" | |||||
"345678901234567890123456789012345678901234567890123456789012345678901234" | |||||
"567890123456789012345678901234567890123456789012345678901234567890123456" | |||||
"789012345678901234567890123456789012345678901234567890123456789012345678" | |||||
"901234567890123456789012345678901234567890123456789012345678901234567890" | |||||
"1234567890123456789012345678901234567890"); | |||||
std::string_view IHaveEmbeddedZeros("a\0b\0c\0d", 7); | |||||
std::wstring_view IHaveEmbeddedZerosToo( | |||||
L"hello world!\0てざ ル゜䋨ミ㠧槊 きゅへ狦穤襩 じゃ馩リョ 䤦監", 38); | |||||
std::u16string_view u16_string(u"ß水氶"); | |||||
std::u16string_view u16_empty(u""); | |||||
std::u32string_view u32_string(U"🍄🍅🍆🍌"); | |||||
std::u32string_view u32_empty(U""); | |||||
std::basic_string<unsigned char> uchar_source(10, 'a'); | |||||
std::basic_string_view<unsigned char> uchar(uchar_source.data(), 5); | |||||
std::string_view *null_str = nullptr; | |||||
q_source[0] = 'H'; // Set break point at this line. | |||||
return 0; | |||||
} |