Lines Matching defs:c_str

280   const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
292 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
306 GetOutputFormat().c_str()));
335 if (PatternMatchesString(cur_pattern, name.c_str())) {
359 test_case_name.c_str(),
360 test_name.c_str());
364 const char* const p = GTEST_FLAG(filter).c_str();
369 positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter
382 return (MatchesFilter(full_name, positive.c_str()) &&
383 !MatchesFilter(full_name, negative.c_str()));
563 EXPECT_PRED_FORMAT3(HasOneFailure, *results_, type_, substr_.c_str());
700 String String::ShowCStringQuoted(const char* c_str) {
701 return c_str ? String::Format("\"%s\"", c_str) : String("(null)");
731 const char * String::CloneCString(const char* c_str) {
732 return (c_str == NULL) ?
733 NULL : CloneString(c_str, strlen(c_str));
777 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
786 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
802 ch ? String::Format("%c", ch).c_str() : "\\0",
823 msg << "L'" << (wchar ? ToUtf8String(wchar).c_str() : "\\0") << "' ("
1334 String::ShowWideCString(wide_c_str).c_str());
1454 // This function works even when the c_str parameter has the same
1456 void String::Set(const char * c_str, size_t length) {
1457 // Makes sure this works when c_str == c_str_
1458 const char* const temp = CloneString(c_str, length);
1464 const String& String::operator=(const char* c_str) {
1465 // Makes sure this works when c_str == c_str_
1466 if (c_str != c_str_) {
1468 c_str_ = CloneCString(c_str);
1509 const char* const start = str.c_str();
1528 return String(helper.str().c_str());
1696 RecordProperty(key, value_message.GetString().c_str());
2210 const char* const gtest_color = GTEST_FLAG(color).c_str();
2311 const char * const filter = GTEST_FLAG(filter).c_str();
2323 FormatTestCount(impl->test_to_run_count()).c_str(),
2324 FormatTestCaseCount(impl->test_case_to_run_count()).c_str());
2340 printf("%s from %s\n", counts.c_str(), test_case_name_.c_str());
2346 PrintTestName(test_case_name_.c_str(), test_info->name());
2357 PrintTestName(test_case_name_.c_str(), test_info->name());
2416 FormatTestCount(impl->test_to_run_count()).c_str(),
2417 FormatTestCaseCount(impl->test_case_to_run_count()).c_str());
2419 printf("%s.\n", FormatTestCount(impl->successful_test_count()).c_str());
2425 printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str());
2579 if (output_file_.c_str() == NULL || output_file_.empty()) {
2599 xmlout = fopen(output_file_.c_str(), "w");
2602 xmlout = fopen(output_file_.c_str(), "w");
2618 output_file_.c_str());
2707 EscapeXmlAttribute(test_info->name()).c_str(),
2709 internal::StreamableToString(result->elapsed_time()).c_str(),
2710 EscapeXmlAttribute(test_case_name).c_str(),
2711 TestPropertiesAsXmlAttributes(result).c_str());
2726 EscapeXmlAttribute(message.c_str()).c_str());
2742 EscapeXmlAttribute(test_case->name()).c_str(),
2748 internal::StreamableToString(test_case->elapsed_time()).c_str());
2769 internal::StreamableToString(impl->elapsed_time()).c_str());
2919 if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) {
2925 msg.GetString().c_str());
3073 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
3237 test_case_name.c_str()) ||
3239 test_name.c_str());
3309 internal::UnitTestOptions::GetOutputFile().c_str()));
3312 output_format.c_str());
3388 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
3481 const char* const arg = arg_string.c_str();