Lines Matching defs:c_str

386   const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
398 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
424 GetOutputFormat().c_str()));
453 if (PatternMatchesString(cur_pattern, name.c_str())) {
477 test_case_name.c_str(),
478 test_name.c_str());
482 const char* const p = GTEST_FLAG(filter).c_str();
487 positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter
500 return (MatchesFilter(full_name, positive.c_str()) &&
501 !MatchesFilter(full_name, negative.c_str()));
631 if (strstr(r.message(), substr.c_str()) == NULL) {
827 String String::ShowCStringQuoted(const char* c_str) {
828 return c_str ? String::Format("\"%s\"", c_str) : String("(null)");
849 const char * String::CloneCString(const char* c_str) {
850 return (c_str == NULL) ?
851 NULL : CloneString(c_str, strlen(c_str));
934 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
943 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
1461 str, String::Format("(Invalid Unicode 0x%X)", code_point).c_str(), 32);
1533 return String(internal::WideStringToUtf8(wide_c_str, -1).c_str());
1542 String::ShowWideCString(wide_c_str).c_str());
1642 const char* const lhs_c_str = c_str();
1643 const char* const rhs_c_str = rhs.c_str();
1669 if (c_str() == NULL) return false;
1671 const size_t this_len = strlen(c_str());
1674 CStringEquals(c_str() + this_len - suffix_len, suffix);
1682 if (c_str() == NULL) return false;
1684 const size_t this_len = strlen(c_str());
1687 CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix);
1737 const char* const start = str.c_str();
1751 return String(helper.str().c_str());
1927 RecordProperty(key, value_message.GetString().c_str());
2057 : ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {}
2258 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
2259 errors.GetString().c_str());
2503 printf("%s\n", result.c_str());
2513 ::OutputDebugStringA(result.c_str());
2558 const char* const gtest_color = GTEST_FLAG(color).c_str();
2692 const char* const filter = GTEST_FLAG(filter).c_str();
2717 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2718 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2734 printf("%s from %s", counts.c_str(), test_case_name_.c_str());
2745 PrintTestName(test_case_name_.c_str(), test_info.name());
2768 PrintTestName(test_case_name_.c_str(), test_info.name());
2774 test_info.result()->elapsed_time()).c_str());
2789 counts.c_str(), test_case_name_.c_str(),
2790 internal::StreamableToString(test_case.elapsed_time()).c_str());
2830 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2831 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2834 internal::StreamableToString(unit_test.elapsed_time()).c_str());
2838 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
2844 printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str());
3046 if (output_file_.c_str() == NULL || output_file_.empty()) {
3061 xmlout = posix::FOpen(output_file_.c_str(), "w");
3076 output_file_.c_str());
3201 << EscapeXmlAttribute(test_info.name()).c_str() << "\"";
3216 << "\" classname=\"" << EscapeXmlAttribute(test_case_name).c_str()
3217 << "\"" << TestPropertiesAsXmlAttributes(result).c_str();
3226 << EscapeXmlAttribute(part.summary()).c_str()
3232 RemoveInvalidXmlCharacters(message).c_str());
3249 EscapeXmlAttribute(test_case.name()).c_str(),
3255 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str());
3259 fprintf(out, "%s", StringStreamToString(&stream).c_str());
3274 FormatTimeInMillisAsSeconds(unit_test.elapsed_time()).c_str());
3340 StreamableToString(unit_test.elapsed_time()).c_str()));
3350 StreamableToString(test_case.elapsed_time()).c_str()));
3361 StreamableToString((test_info.result())->elapsed_time()).c_str()));
3369 UrlEncode(file_name).c_str(),
3393 if (write(sockfd_, message.c_str(), len) != len) {
3444 host_name_.c_str(), port_num_.c_str(), &hints, &servinfo);
3740 if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) {
3746 msg.GetString().c_str());
3848 return impl_->original_working_dir_.c_str();
3971 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()));
3974 output_format.c_str());
3991 target.c_str());
4045 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
4288 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4296 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4305 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4537 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
4652 ColoredPrintf(color, "%s", String(str, p - str).c_str());
4743 const char* const arg = arg_string.c_str();