Lines Matching defs:str
172 static void assert_2000_spaces(skiatest::Reporter* reporter, const SkString& str) {
173 REPORTER_ASSERT(reporter, str.size() == 2000);
174 for (size_t i = 0; i < str.size(); ++i) {
175 REPORTER_ASSERT(reporter, str[i] == ' ');
277 SkString str("foo");
282 SkString copy = str; // NOLINT(performance-unnecessary-copy-initialization)
306 SkString str(size);
334 SkString str("123");
335 str.printVAList(format, args);
336 REPORTER_ASSERT(r, str.equals("hello world"));
345 SkString str("123");
346 str.appendVAList(format, args);
347 REPORTER_ASSERT(r, str.equals("123hello world"));
356 SkString str("123");
357 str.prependVAList(format, args);
358 REPORTER_ASSERT(r, str.equals("hello world123"));
373 SkString str("X");
374 str.printVAList(format, args);
375 assert_2000_spaces(r, str);
384 SkString str("X");
385 str.appendVAList(format, args);
386 REPORTER_ASSERT(r, str[0] == 'X');
387 str[0] = ' ';
388 assert_2000_spaces(r, str);
397 SkString str("X");
398 str.prependVAList(format, args);
399 REPORTER_ASSERT(r, str[1999] == 'X');
400 str[1999] = ' ';
401 assert_2000_spaces(r, str);