Lines Matching full:c_str
375 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
387 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
413 GetOutputFormat().c_str()));
442 if (PatternMatchesString(cur_pattern, name.c_str())) {
466 c_str(),
467 test_name.c_str());
471 const char* const p = GTEST_FLAG(filter).c_str();
476 positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter
489 return (MatchesFilter(full_name, positive.c_str()) &&
490 !MatchesFilter(full_name, negative.c_str()));
635 EXPECT_PRED_FORMAT3(HasOneFailure, *results_, type_, substr_.c_str());
800 String String::ShowCStringQuoted(const char* c_str) {
801 return c_str ? String::Format("\"%s\"", c_str) : String("(null)");
822 const char * String::CloneCString(const char* c_str) {
823 return (c_str == NULL) ?
824 NULL : CloneString(c_str, strlen(c_str));
907 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
916 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
932 ch ? String::Format("%c", ch).c_str() : "\\0",
1482 str, String::Format("(Invalid Unicode 0x%X)", code_point).c_str(), 32);
1554 return String(internal::WideStringToUtf8(wide_c_str, -1).c_str());
1563 String::ShowWideCString(wide_c_str).c_str());
1665 const char* const lhs_c_str = c_str();
1666 const char* const rhs_c_str = rhs.c_str();
1692 if (c_str() == NULL) return false;
1694 const size_t this_len = strlen(c_str());
1697 CStringEquals(c_str() + this_len - suffix_len, suffix);
1705 if (c_str() == NULL) return false;
1707 const size_t this_len = strlen(c_str());
1710 CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix);
1758 const char* const start = str.c_str();
1772 return String(helper.str().c_str());
1948 RecordProperty(key, value_message.GetString().c_str());
2185 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
2186 errors.GetString().c_str());
2526 printf("%s\n", result.c_str());
2536 ::OutputDebugStringA(result.c_str());
2581 const char* const gtest_color = GTEST_FLAG(color).c_str();
2697 const char* const filter = GTEST_FLAG(filter).c_str();
2721 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2722 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2738 printf("%s from %s", counts.c_str(), test_case_name_.c_str());
2749 PrintTestName(test_case_name_.c_str(), test_info.name());
2776 PrintTestName(test_case_name_.c_str(), test_info.name());
2779 test_info.result()->elapsed_time()).c_str());
2794 counts.c_str(), test_case_name_.c_str(),
2795 internal::StreamableToString(test_case.elapsed_time()).c_str());
2842 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2843 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2846 internal::StreamableToString(unit_test.elapsed_time()).c_str());
2850 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
2856 printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str());
3058 if (output_file_.c_str() == NULL || output_file_.empty()) {
3073 xmlout = posix::FOpen(output_file_.c_str(), "w");
3088 output_file_.c_str());
3216 << EscapeXmlAttribute(test_info.name()).c_str()
3221 << "\" classname=\"" << EscapeXmlAttribute(test_case_name).c_str()
3222 << "\"" << TestPropertiesAsXmlAttributes(result).c_str();
3231 << EscapeXmlAttribute(part.summary()).c_str()
3236 part.message()).c_str());
3237 OutputXmlCDataSection(stream, message.c_str());
3254 EscapeXmlAttribute(test_case.name()).c_str(),
3260 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str());
3264 fprintf(out, "%s", StrStreamToString(&stream).c_str());
3279 FormatTimeInMillisAsSeconds(unit_test.elapsed_time()).c_str());
3553 : ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {}
3582 if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) {
3588 msg.GetString().c_str());
3694 return impl_->original_working_dir_.c_str();
3817 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()));
3820 output_format.c_str());
3867 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
4108 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4116 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4125 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4383 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
4498 ColoredPrintf(color, "%s", String(str, p - str).c_str());
4586 const char* const arg = arg_string.c_str();