/external/chromium/sdch/open-vcdiff/src/gtest/internal/ |
gtest-string.h | 88 static inline const char* ShowCString(const char* c_str) { 89 return c_str ? c_str : "(null)"; 99 static String ShowCStringQuoted(const char* c_str); 108 static const char* CloneCString(const char* c_str); 161 String(const char* c_str) : c_str_(NULL) { // NOLINT 162 *this = c_str; 191 bool operator==(const char* c_str) const { 192 return CStringEquals(c_str_, c_str); 197 bool operator!=(const char* c_str) const 218 const char* c_str() const { return c_str_; } function in class:testing::internal::String [all...] |
/external/protobuf/gtest/include/gtest/internal/ |
gtest-string.h | 90 static String ShowCStringQuoted(const char* c_str); 99 static const char* CloneCString(const char* c_str); 114 static LPCWSTR AnsiToUtf16(const char* c_str); 193 String(const char* c_str) { // NOLINT 194 if (c_str == NULL) { 198 ConstructNonNull(c_str, strlen(c_str)); 226 ConstructNonNull(str.c_str(), str.length()); 229 operator ::std::string() const { return ::std::string(c_str(), length()); } 234 ConstructNonNull(str.c_str(), str.length()) 275 const char* c_str() const { return c_str_; } function in class:testing::internal::String 318 const char* const c_str = str.c_str(); local 323 os << c_str[i]; local [all...] |
/external/gtest/include/gtest/internal/ |
gtest-string.h | 92 static inline const char* ShowCString(const char* c_str) { 93 return c_str ? c_str : "(null)"; 103 static String ShowCStringQuoted(const char* c_str); 112 static const char* CloneCString(const char* c_str); 127 static LPCWSTR AnsiToUtf16(const char* c_str); 206 String(const char* c_str) : c_str_(NULL) { // NOLINT 207 *this = c_str; 231 String(const ::std::string& str) : c_str_(NULL) { *this = str.c_str(); } 237 String(const ::string& str) : c_str_(NULL) { *this = str.c_str(); } 285 const char* c_str() const { return c_str_; } function in class:testing::internal::String [all...] |
/external/gtest/test/ |
gtest-options_test.cc | 71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); 76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), 82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), 88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 96 _strcmpi(output_file.c_str(), 98 FilePath("path\\gtest-options_test.xml")).c_str()) == 0 || 99 _strcmpi(output_file.c_str(), 101 FilePath("path\\gtest-options-ex_test.xml")).c_str()) == 0 | [all...] |
gtest-filepath_test.cc | 75 filepath.RemoveTrailingPathSeparator().c_str()); 92 _chdir(original_dir.c_str()); 94 const char* const cwd_without_drive = strchr(cwd.c_str(), ':'); 99 EXPECT_STREQ(GTEST_PATH_SEP_, FilePath::GetCurrentDir().c_str()); 100 chdir(original_dir.c_str()); 120 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); 126 FilePath("afile").RemoveDirectoryName().c_str()); 132 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 138 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); 144 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); [all...] |
gtest_stress_test.cc | 72 TestPropertyKeyIs matches_key(IdToKey(id, suffix).c_str()); 75 EXPECT_STREQ(IdToString(id).c_str(), node->element().value()); 97 Test::RecordProperty(IdToKey(id, "string").c_str(), IdToString(id).c_str()); 98 Test::RecordProperty(IdToKey(id, "int").c_str(), id); 99 Test::RecordProperty("shared_key", IdToString(id).c_str());
|
/external/protobuf/gtest/test/ |
gtest-options_test.cc | 71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); 76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); 81 EXPECT_STREQ(GetAbsolutePathOf(FilePath("test_detail.xml")).c_str(), 82 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 87 EXPECT_STREQ(GetAbsolutePathOf(FilePath("filename.abc")).c_str(), 88 UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); 96 _strcmpi(output_file.c_str(), 98 FilePath("path\\gtest-options_test.xml")).c_str()) == 0 || 99 _strcmpi(output_file.c_str(), 101 FilePath("path\\gtest-options-ex_test.xml")).c_str()) == 0 | [all...] |
gtest-filepath_test.cc | 78 filepath.RemoveTrailingPathSeparator().c_str()); 92 posix::ChDir(original_dir.c_str()); 96 const char* const cwd_without_drive = strchr(cwd.c_str(), ':'); 100 EXPECT_STREQ(GTEST_PATH_SEP_, cwd.c_str()); 120 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); 126 FilePath("afile").RemoveDirectoryName().c_str()); 132 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 138 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); 144 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); 151 .RemoveDirectoryName().c_str()); [all...] |
gtest_stress_test.cc | 70 TestPropertyKeyIs matches_key(IdToKey(id, suffix).c_str()); 74 EXPECT_STREQ(IdToString(id).c_str(), property->value()); 96 Test::RecordProperty(IdToKey(id, "string").c_str(), IdToString(id).c_str()); 97 Test::RecordProperty(IdToKey(id, "int").c_str(), id); 98 Test::RecordProperty("shared_key", IdToString(id).c_str());
|
/frameworks/base/tools/localize/ |
ValuesFile_test.cpp | 21 printf("%s: '%s'[%d]='%s' (%s) <!-- %s -->\n", str.pos.ToString().c_str(), 22 str.id.c_str(), str.index, 23 str.value->ContentsToString(ANDROID_NAMESPACES).c_str(), 24 str.config.ToString().c_str(), str.comment.c_str()); 27 printf("XML:[[%s]]\n", canonical.c_str()); 47 fprintf(stderr, "canonical=[[%s]]\n", canonical.c_str());
|
localize_test.cpp | 15 fprintf(stderr, " locale='%s'\n", locale.c_str()); 16 fprintf(stderr, " expected='%s'\n", expected.c_str()); 17 fprintf(stderr, " result='%s'\n", result.c_str()); 22 fprintf(stderr, " locale='%s'\n", locale.c_str()); 23 fprintf(stderr, " expected='%s'\n", expected.c_str()); 24 fprintf(stderr, " result='%s'\n", result.c_str()); 63 printf("XLIFF was [[%s]]\n", xliff->ToString().c_str()); 69 printf("XLIFF is [[%s]]\n", xliff->ToString().c_str()); 75 printf("STRING!!! id=%s value='%s' pos=%s file=%s version=%d(%s)\n", str.id.c_str(), 76 str.value->ContentsToString(ANDROID_NAMESPACES).c_str(), [all...] |
XLIFFFile_test.cpp | 21 str.id.c_str(), str.index, 22 str.value->ContentsToString(ANDROID_NAMESPACES).c_str(), 23 str.pos.ToString().c_str(), str.file.c_str(), str.version, 24 str.versionString.c_str()); 26 printf("XML:[[%s]]\n", xf->ToString().c_str()); 74 printf("OLD=\"%s\"\n", oldString.c_str()); 75 printf("NEW=\"%s\"\n", newString.c_str()); 83 fprintf(stderr, " actual='%s'\n", oldString.c_str()); 94 fprintf(stderr, " actual='%s'\n", newString.c_str()); [all...] |
Perforce_test.cpp | 9 printf("err=%d result=[[%s]]\n", err, result.c_str()); 35 printf("[%zd] '%s'\n", i, results[i].c_str()); 46 printf("err=%d result=[[%s]]\n", err, result.c_str());
|
file_utils.cpp | 22 return string(String8(path.c_str()).getPathDir().string()); 53 const char* str = file.c_str(); 103 log_printf("get_values_file filename=%s\n", filename.c_str()); 112 fprintf(stderr, "unable to parse file: %s\n", filename.c_str()); 128 fd = open(filename.c_str(), O_RDONLY); 130 fprintf(stderr, "unable to open file: %s\n", filename.c_str()); 147 fprintf(stderr, "unable to parse file: %s\n", filename.c_str()); 156 printf("\r%s file %zd of %zd...", message.c_str(), j, J); 163 mkdirs(parent_dir(filename).c_str()); 164 int fd = open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0666) [all...] |
/external/chromium/sdch/open-vcdiff/src/gtest/ |
gtest-filepath.cc | 63 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 64 return FilePath(String(pathname_.c_str(), pathname_.GetLength() - 4)); 76 const char* const last_sep = strrchr(c_str(), kPathSeparator); 87 const char* const last_sep = strrchr(c_str(), kPathSeparator); 88 return FilePath(last_sep ? String(c_str(), last_sep + 1 - c_str()) 104 return FilePath(String::Format("%s%c%s.%s", dir.c_str(), kPathSeparator, 105 base_name.c_str(), extension)); 107 return FilePath(String::Format("%s%c%s_%d.%s", dir.c_str(), kPathSeparator, 108 base_name.c_str(), number, extension)) [all...] |
/external/chromium/net/disk_cache/ |
cache_util_win.cc | 22 ScopedFindFileHandle handle(FindFirstFile(name.c_str(), &data)); 34 DeleteFile(current.c_str()); 45 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) { 53 DeleteFiles(path.value().c_str(), L"*"); 55 RemoveDirectory(path.value().c_str()); 61 return DeleteFile(name.value().c_str()) ? true : false;
|
/libcore/luni/src/main/native/ |
java_lang_System.cpp | 28 if (name.c_str() == NULL) { 31 return env->NewStringUTF(getenv(name.c_str())); 45 if (name.c_str() == NULL) { 49 if (signature.c_str() == NULL) { 52 jfieldID fieldID = env->GetStaticFieldID(clazz, name.c_str(), signature.c_str());
|
java_io_ObjectOutputStream.cpp | 31 if (fieldName.c_str() == NULL) { \ 34 jfieldID fid = env->GetFieldID(declaringClass, fieldName.c_str(), JNI_TYPE_STRING); \ 53 if (fieldName.c_str() == NULL) { 57 if (fieldTypeName.c_str() == NULL) { 60 jfieldID fid = env->GetFieldID(declaringClass, fieldName.c_str(), fieldTypeName.c_str());
|
/build/tools/atree/ |
fs.cpp | 23 err = stat(path.c_str(), &st); 30 int err = unlink(path.c_str()); 32 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), 45 DIR *d = opendir(path.c_str()); 48 path.c_str(), strerror(errno)); 69 stat(full.c_str(), &stat_buf); 94 err = rmdir(path.c_str()); 96 fprintf(stderr, "error deleting directory %s (%s)\n", path.c_str(), 119 err = stat(p.c_str(), &st); 121 err = mkdir(p.c_str(), 0770) [all...] |
/external/gtest/src/ |
gtest-filepath.cc | 109 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 110 return FilePath(String(pathname_.c_str(), pathname_.GetLength() - 4)); 122 const char* const last_sep = strrchr(c_str(), kPathSeparator); 133 const char* const last_sep = strrchr(c_str(), kPathSeparator); 134 return FilePath(last_sep ? String(c_str(), last_sep + 1 - c_str()) 150 String::Format("%s.%s", base_name.c_str(), extension) : 151 String::Format("%s_%d.%s", base_name.c_str(), number, extension)); 162 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 163 relative_path.c_str())); [all...] |
/external/protobuf/src/google/protobuf/testing/ |
file.cc | 62 return access(name.c_str(), F_OK) == 0; 67 FILE* file = fopen(name.c_str(), "rb"); 86 FILE* file = fopen(name.c_str(), "wb"); 97 return mkdir(name.c_str(), mode) == 0; 124 HANDLE find_handle = FindFirstFile((name + "/*").c_str(), &find_data); 127 DeleteFile(name.c_str()); 128 RemoveDirectory(name.c_str()); 138 RemoveDirectory(path.c_str()); 140 DeleteFile(path.c_str()); 146 RemoveDirectory(name.c_str()); [all...] |
/external/skia/src/svg/ |
SkSVGSVG.cpp | 45 const char* hSuffix = SkParse::FindScalar(f_height.c_str(), &height); 48 const char* wSuffix = SkParse::FindScalar(f_width.c_str(), &width); 51 SkParse::FindScalars(f_viewBox.c_str(), viewBox, 4); 64 parser._addAttributeLen("translateX", x.c_str(), x.size()); 69 parser._addAttributeLen("translateY", y.c_str(), y.size()); 74 parser._addAttributeLen("scaleX", x.c_str(), x.size()); 79 parser._addAttributeLen("scaleY", y.c_str(), y.size());
|
/external/protobuf/gtest/src/ |
gtest-filepath.cc | 105 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 106 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); 118 const char* const last_sep = strrchr(c_str(), kPathSeparator); 129 const char* const last_sep = strrchr(c_str(), kPathSeparator); 132 dir = String(c_str(), last_sep + 1 - c_str()); 151 file = String::Format("%s.%s", base_name.c_str(), extension); 153 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); 165 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 166 relative_path.c_str())); [all...] |
/external/chromium/base/ |
string16_unittest.cc | 21 stream.str().c_str()); 48 stream.str().c_str());
|
/external/webkit/WebKitTools/DumpRenderTree/win/ |
HistoryDelegate.cpp | 142 url.c_str(), 143 title.c_str(), 144 httpMethod.c_str(), 147 redirectSource.c_str()); 165 printf("WebView performed a client redirect from \"%S\" to \"%S\".\n", source.c_str(), destination.c_str()); 182 printf("WebView performed a server redirect from \"%S\" to \"%S\".\n", source.c_str(), destination.c_str()); 199 printf("WebView updated the title for history URL \"%S\" to \"%S\".\n", url.c_str(), title.c_str()); [all...] |