Home | History | Annotate | Download | only in src

Lines Matching refs:c_str

367   const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
379 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
405 GetOutputFormat().c_str()));
434 if (PatternMatchesString(cur_pattern, name.c_str())) {
458 test_case_name.c_str(),
459 test_name.c_str());
463 const char* const p = GTEST_FLAG(filter).c_str();
468 positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter
481 return (MatchesFilter(full_name, positive.c_str()) &&
482 !MatchesFilter(full_name, negative.c_str()));
627 EXPECT_PRED_FORMAT3(HasOneFailure, *results_, type_, substr_.c_str());
792 String String::ShowCStringQuoted(const char* c_str) {
793 return c_str ? String::Format("\"%s\"", c_str) : String("(null)");
814 const char * String::CloneCString(const char* c_str) {
815 return (c_str == NULL) ?
816 NULL : CloneString(c_str, strlen(c_str));
899 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
908 c_str(), wstr.length(), this);
924 ch ? String::Format("%c", ch).c_str() : "\\0",
1476 str, String::Format("(Invalid Unicode 0x%X)", code_point).c_str(), 32);
1548 return String(internal::WideStringToUtf8(wide_c_str, -1).c_str());
1557 String::ShowWideCString(wide_c_str).c_str());
1659 const char* const lhs_c_str = c_str();
1660 const char* const rhs_c_str = rhs.c_str();
1686 if (c_str() == NULL) return false;
1688 const size_t this_len = strlen(c_str());
1691 CStringEquals(c_str() + this_len - suffix_len, suffix);
1699 if (c_str() == NULL) return false;
1701 const size_t this_len = strlen(c_str());
1704 CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix);
1753 const char* const start = str.c_str();
1772 return String(helper.str().c_str());
1952 RecordProperty(key, value_message.GetString().c_str());
2189 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
2190 errors.GetString().c_str());
2532 printf("%s\n", result.c_str());
2542 ::OutputDebugStringA(result.c_str());
2587 const char* const gtest_color = GTEST_FLAG(color).c_str();
2698 const char* const filter = GTEST_FLAG(filter).c_str();
2722 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2723 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2739 printf("%s from %s", counts.c_str(), test_case_name_.c_str());
2750 PrintTestName(test_case_name_.c_str(), test_info.name());
2777 PrintTestName(test_case_name_.c_str(), test_info.name());
2780 test_info.result()->elapsed_time()).c_str());
2795 counts.c_str(), test_case_name_.c_str(),
2796 internal::StreamableToString(test_case.elapsed_time()).c_str());
2843 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2844 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2847 internal::StreamableToString(unit_test.elapsed_time()).c_str());
2851 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
2857 printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str());
3061 if (output_file_.c_str() == NULL || output_file_.empty()) {
3076 xmlout = posix::FOpen(output_file_.c_str(), "w");
3091 output_file_.c_str());
3192 return str.c_str();
3222 << EscapeXmlAttribute(test_info.name()).c_str()
3227 << "\" classname=\"" << EscapeXmlAttribute(test_case_name).c_str()
3228 << "\"" << TestPropertiesAsXmlAttributes(result).c_str();
3237 << EscapeXmlAttribute(part.summary()).c_str()
3242 part.message()).c_str());
3243 OutputXmlCDataSection(stream, message.c_str());
3260 EscapeXmlAttribute(test_case.name()).c_str(),
3270 fprintf(out, "%s", StrStreamToString(&stream).c_str());
3560 : ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {}
3589 if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) {
3595 msg.GetString().c_str());
3701 return impl_->original_working_dir_.c_str();
3824 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()));
3827 output_format.c_str());
3874 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
4109 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4117 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4126 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4384 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
4499 ColoredPrintf(color, "%s", String(str, p - str).c_str());
4587 const char* const arg = arg_string.c_str();