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());
2531 printf("%s\n", result.c_str());
2541 ::OutputDebugStringA(result.c_str());
2586 const char* const gtest_color = GTEST_FLAG(color).c_str();
2720 const char* const filter = GTEST_FLAG(filter).c_str();
2745 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2746 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2762 printf("%s from %s", counts.c_str(), test_case_name_.c_str());
2773 PrintTestName(test_case_name_.c_str(), test_info.name());
2796 PrintTestName(test_case_name_.c_str(), test_info.name());
2802 test_info.result()->elapsed_time()).c_str());
2817 counts.c_str(), test_case_name_.c_str(),
2818 internal::StreamableToString(test_case.elapsed_time()).c_str());
2858 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2859 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2862 internal::StreamableToString(unit_test.elapsed_time()).c_str());
2866 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
2872 printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str());
3074 if (output_file_.c_str() == NULL || output_file_.empty()) {
3089 xmlout = posix::FOpen(output_file_.c_str(), "w");
3104 output_file_.c_str());
3229 << EscapeXmlAttribute(test_info.name()).c_str() << "\"";
3244 << "\" classname=\"" << EscapeXmlAttribute(test_case_name).c_str()
3245 << "\"" << TestPropertiesAsXmlAttributes(result).c_str();
3254 << EscapeXmlAttribute(part.summary()).c_str()
3260 RemoveInvalidXmlCharacters(message).c_str());
3277 EscapeXmlAttribute(test_case.name()).c_str(),
3283 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str());
3287 fprintf(out, "%s", StringStreamToString(&stream).c_str());
3302 FormatTimeInMillisAsSeconds(unit_test.elapsed_time()).c_str());
3368 StreamableToString(unit_test.elapsed_time()).c_str()));
3378 StreamableToString(test_case.elapsed_time()).c_str()));
3389 StreamableToString((test_info.result())->elapsed_time()).c_str()));
3397 UrlEncode(file_name).c_str(),
3421 if (write(sockfd_, message.c_str(), len) != len) {
3472 host_name_.c_str(), port_num_.c_str(), &hints, &servinfo);
3768 if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) {
3774 msg.GetString().c_str());
3880 return impl_->original_working_dir_.c_str();
4003 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()));
4006 output_format.c_str());
4023 target.c_str());
4077 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
4320 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4328 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4337 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
4569 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
4684 ColoredPrintf(color, "%s", String(str, p - str).c_str());
4775 const char* const arg = arg_string.c_str();