Home | History | Annotate | Download | only in ceres

Lines Matching refs:c_str

1386   const BiggestConvertible parsed = _strtoui64(str.c_str(), &end, 10);
1391 const BiggestConvertible parsed = strtoull(str.c_str(), &end, 10);
1690 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
1702 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
1728 GetOutputFormat().c_str()));
1757 if (PatternMatchesString(cur_pattern, name.c_str())) {
1781 test_case_name.c_str(),
1782 test_name.c_str());
1786 const char* const p = GTEST_FLAG(filter).c_str();
1791 positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter
1804 return (MatchesFilter(full_name, positive.c_str()) &&
1805 !MatchesFilter(full_name, negative.c_str()));
1935 if (strstr(r.message(), substr.c_str()) == NULL) {
2131 String String::ShowCStringQuoted(const char* c_str) {
2132 return c_str ? String::Format("\"%s\"", c_str) : String("(null)");
2153 const char * String::CloneCString(const char* c_str) {
2154 return (c_str == NULL) ?
2155 NULL : CloneString(c_str, strlen(c_str));
2238 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
2247 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
2765 str, String::Format("(Invalid Unicode 0x%X)", code_point).c_str(), 32);
2837 return String(internal::WideStringToUtf8(wide_c_str, -1).c_str());
2846 String::ShowWideCString(wide_c_str).c_str());
2946 const char* const lhs_c_str = c_str();
2947 const char* const rhs_c_str = rhs.c_str();
2973 if (c_str() == NULL) return false;
2975 const size_t this_len = strlen(c_str());
2978 CStringEquals(c_str() + this_len - suffix_len, suffix);
2986 if (c_str() == NULL) return false;
2988 const size_t this_len = strlen(c_str());
2991 CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix);
3041 const char* const start = str.c_str();
3055 return String(helper.str().c_str());
3231 RecordProperty(key, value_message.GetString().c_str());
3361 : ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {}
3562 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
3563 errors.GetString().c_str());
3835 printf("%s\n", result.c_str());
3845 ::OutputDebugStringA(result.c_str());
3890 const char* const gtest_color = GTEST_FLAG(color).c_str();
4024 const char* const filter = GTEST_FLAG(filter).c_str();
4049 FormatTestCount(unit_test.test_to_run_count()).c_str(),
4050 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
4066 printf("%s from %s", counts.c_str(), test_case_name_.c_str());
4077 PrintTestName(test_case_name_.c_str(), test_info.name());
4100 PrintTestName(test_case_name_.c_str(), test_info.name());
4106 test_info.result()->elapsed_time()).c_str());
4121 counts.c_str(), test_case_name_.c_str(),
4122 internal::StreamableToString(test_case.elapsed_time()).c_str());
4162 FormatTestCount(unit_test.test_to_run_count()).c_str(),
4163 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
4166 internal::StreamableToString(unit_test.elapsed_time()).c_str());
4170 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
4176 printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str());
4378 if (output_file_.c_str() == NULL || output_file_.empty()) {
4393 xmlout = posix::FOpen(output_file_.c_str(), "w");
4408 output_file_.c_str());
4533 << EscapeXmlAttribute(test_info.name()).c_str() << "\"";
4548 << "\" classname=\"" << EscapeXmlAttribute(test_case_name).c_str()
4549 << "\"" << TestPropertiesAsXmlAttributes(result).c_str();
4558 << EscapeXmlAttribute(part.summary()).c_str()
4564 RemoveInvalidXmlCharacters(message).c_str());
4581 EscapeXmlAttribute(test_case.name()).c_str(),
4587 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str());
4591 fprintf(out, "%s", StringStreamToString(&stream).c_str());
4606 FormatTimeInMillisAsSeconds(unit_test.elapsed_time()).c_str());
4672 StreamableToString(unit_test.elapsed_time()).c_str()));
4682 StreamableToString(test_case.elapsed_time()).c_str()));
4693 StreamableToString((test_info.result())->elapsed_time()).c_str()));
4701 UrlEncode(file_name).c_str(),
4725 if (write(sockfd_, message.c_str(), len) != len) {
4776 host_name_.c_str(), port_num_.c_str(), &hints, &servinfo);
5072 if (os_stack_trace.c_str() != NULL && !os_stack_trace.empty()) {
5078 msg.GetString().c_str());
5184 return impl_->original_working_dir_.c_str();
5307 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()));
5310 output_format.c_str());
5327 target.c_str());
5381 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
5624 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
5632 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
5641 ColoredPrintf(COLOR_RED, msg.GetString().c_str());
5873 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
5988 ColoredPrintf(color, "%s", String(str, p - str).c_str());
6079 const char* const arg = arg_string.c_str();
6419 fprintf(parent, "%s", message.c_str());
6423 fprintf(stderr, "%s", message.c_str());
6509 return last_death_test_message_.c_str();
6712 const bool matched = RE::PartialMatch(error_message.c_str(), *regex());
6898 filter_flag.c_str(),
6899 internal_flag.c_str());
6918 const_cast<char*>(command_line.c_str()),
7063 args_.insert(args_.end() - 1, posix::StrDup(i->c_str()));
7110 GetLastErrnoDescription().c_str()));
7123 GetLastErrnoDescription().c_str()));
7216 args.AddArgument(filter_flag.c_str());
7217 args.AddArgument(internal_flag.c_str());
7285 GTEST_FLAG(death_test_style).c_str()));
7389 SplitString(GTEST_FLAG(internal_run_death_test).c_str(), '|', &fields);
7406 GTEST_FLAG(internal_run_death_test).c_str()));
7419 GTEST_FLAG(internal_run_death_test).c_str()));
7548 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) {
7549 return FilePath(String(pathname_.c_str(), pathname_.length() - 4));
7558 const char* const last_sep = strrchr(c_str(), kPathSeparator);
7560 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator);
7591 dir = String(c_str(), last_sep + 1 - c_str());
7610 file = String::Format("%s.%s", base_name.c_str(), extension);
7612 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension);
7624 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator,
7625 relative_path.c_str()));
7632 LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str());
7638 return posix::Stat(pathname_.c_str(), &file_stat) == 0;
7656 LPCWSTR unicode = String::AnsiToUtf16(path.c_str());
7665 result = posix::Stat(path.c_str(), &file_stat) == 0 &&
7681 return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]);
7687 const char* const name = pathname_.c_str();
7723 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]);
7749 LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str());
7753 int result = _mkdir(pathname_.c_str());
7755 int result = mkdir(pathname_.c_str(), 0777);
7769 ? FilePath(String(pathname_.c_str(), pathname_.length() - 1))
7778 if (pathname_.c_str() == NULL) {
7782 const char* src = pathname_.c_str();
8237 return String::Format("%s:", file_name).c_str();
8240 return String::Format("%s(%d):", file_name, line).c_str();
8242 return String::Format("%s:%d:", file_name, line).c_str();
8258 return String::Format("%s:%d", file_name, line).c_str();
8269 << FormatFileLocation(file, line).c_str() << ": ";
8324 remove(filename_.c_str());
8336 FILE* const file = posix::FOpen(filename_.c_str(), "r");
8458 env_var << ToUpper(full_flag.c_str()[i]);
8479 printf("%s", msg.GetString().c_str());
8496 printf("%s", msg.GetString().c_str());
8511 const char* const string_value = posix::GetEnv(env_var.c_str());
8521 const char* const string_value = posix::GetEnv(env_var.c_str());
8531 (Message() << default_value).GetString().c_str());
8543 const char* const value = posix::GetEnv(env_var.c_str());
8777 *os << " (" << String::Format("%d", c).c_str();
8786 static_cast<UnsignedChar>(c)).c_str();
9106 fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
9107 errors_str.c_str());
9393 message.c_str()) = Message();
10439 if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL;
10507 const char* const arg = arg_string.c_str();