Lines Matching refs:str
17 const char* str = "Hello, World!";
18 skstd::string_view helloWorld(str);
19 REPORTER_ASSERT(r, helloWorld.data() == str);
20 REPORTER_ASSERT(r, helloWorld.length() == strlen(str));
22 skstd::string_view hello(str, 5);
23 REPORTER_ASSERT(r, hello.data() == str);
27 REPORTER_ASSERT(r, copy.data() == str);
31 REPORTER_ASSERT(r, copy.data() == str);
32 REPORTER_ASSERT(r, copy.length() == strlen(str));
75 skstd::string_view str("abc");
76 skstd::string_view::iterator iter = str.begin();
80 REPORTER_ASSERT(r, iter == str.end());
84 REPORTER_ASSERT(r, iter == str.begin());
97 skstd::string_view str("abc");
98 REPORTER_ASSERT(r, str == str);
99 REPORTER_ASSERT(r, str == "abc");
100 REPORTER_ASSERT(r, "abc" == str);
101 REPORTER_ASSERT(r, str != "");
102 REPORTER_ASSERT(r, "" != str);
103 REPORTER_ASSERT(r, str != "abcd");
104 REPORTER_ASSERT(r, "abcd" != str);
107 REPORTER_ASSERT(r, str < str2);
108 REPORTER_ASSERT(r, str <= str2);
109 REPORTER_ASSERT(r, str <= str);
110 REPORTER_ASSERT(r, str2 > str);
111 REPORTER_ASSERT(r, str2 >= str);
112 REPORTER_ASSERT(r, str >= str);
113 REPORTER_ASSERT(r, !(str2 < str));
114 REPORTER_ASSERT(r, !(str < str));
115 REPORTER_ASSERT(r, !(str2 <= str));
116 REPORTER_ASSERT(r, !(str > str2));
117 REPORTER_ASSERT(r, !(str > str));
118 REPORTER_ASSERT(r, !(str >= str2));
120 REPORTER_ASSERT(r, str < "b");
121 REPORTER_ASSERT(r, str <= "b");
122 REPORTER_ASSERT(r, str <= str);
123 REPORTER_ASSERT(r, "b" > str);
124 REPORTER_ASSERT(r, "b" >= str);
125 REPORTER_ASSERT(r, str >= str);
126 REPORTER_ASSERT(r, !("b" < str));
127 REPORTER_ASSERT(r, !(str < str));
128 REPORTER_ASSERT(r, !("b" <= str));
129 REPORTER_ASSERT(r, !(str > "b"));
130 REPORTER_ASSERT(r, !(str > str));
131 REPORTER_ASSERT(r, !(str >= "b"));