/external/libtextclassifier/util/strings/ |
numbers.h | 28 // c_str should point to a zero-terminated array of chars that contains the 38 bool ParseInt32(const char *c_str, int32 *value); 41 bool ParseInt64(const char *c_str, int64 *value); 44 bool ParseDouble(const char *c_str, double *value);
|
numbers.cc | 27 bool ParseInt32(const char *c_str, int32 *value) { 37 // If there were no digits at all, strtol() sets temp to be c_str (the start 39 *value = strtol(c_str, &temp, 0); // NOLINT 41 // temp != c_str means that the input string contained at least one digit (see 44 return (temp != c_str) && (*temp == '\0'); 47 bool ParseInt64(const char *c_str, int64 *value) { 49 *value = strtoll(c_str, &temp, 0); // NOLINT 52 return (temp != c_str) && (*temp == '\0'); 55 bool ParseDouble(const char *c_str, double *value) { 57 *value = strtod(c_str, &temp) [all...] |
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.native.obs/ |
c_str.pass.cpp | 17 // const value_type* c_str() const noexcept; 35 ASSERT_SAME_TYPE(path::value_type const*, decltype(p.c_str())); 36 ASSERT_NOEXCEPT(p.c_str()); 40 assert(p.c_str() == str_value); 41 assert(p.native().c_str() == p.c_str());
|
/external/google-breakpad/src/testing/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 GetCurrentExecutableName().c_str() + ".xml")).c_str(); 99 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); [all...] |
/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 GetCurrentExecutableName().c_str() + ".xml")).c_str(); 99 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/ofstream.cons/ |
pointer.pass.cpp | 25 std::ofstream fs(temp.c_str()); 29 std::ifstream fs(temp.c_str()); 34 std::remove(temp.c_str()); 36 std::wofstream fs(temp.c_str()); 40 std::wifstream fs(temp.c_str()); 45 std::remove(temp.c_str());
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/input.output/file.streams/fstreams/ofstream.cons/ |
pointer.pass.cpp | 25 std::ofstream fs(temp.c_str()); 29 std::ifstream fs(temp.c_str()); 34 std::remove(temp.c_str()); 36 std::wofstream fs(temp.c_str()); 40 std::wifstream fs(temp.c_str()); 45 std::remove(temp.c_str());
|
/bionic/libc/malloc_debug/tests/ |
malloc_debug_config_tests.cpp | 132 ASSERT_STREQ("", getFakeLogBuf().c_str()); 134 ASSERT_STREQ((log_msg + usage_string).c_str(), getFakeLogPrint().c_str()); 140 ASSERT_STREQ("", getFakeLogBuf().c_str()); 142 ASSERT_STREQ((log_msg + usage_string).c_str(), getFakeLogPrint().c_str()); 148 ASSERT_STREQ("", getFakeLogBuf().c_str()); 150 ASSERT_STREQ((log_msg + usage_string).c_str(), getFakeLogPrint().c_str()); 156 ASSERT_STREQ("", getFakeLogBuf().c_str()); [all...] |
/external/webrtc/webrtc/test/testsupport/metrics/ |
video_metrics_unittest.cc | 36 remove(non_existing_file_.c_str()); // To be sure it doesn't exist. 41 FILE* dummy = fopen(empty_file_.c_str(), "wb"); 45 remove(empty_file_.c_str()); 56 EXPECT_EQ(0, I420PSNRFromFiles(video_file_.c_str(), video_file_.c_str(), 62 EXPECT_EQ(0, I420SSIMFromFiles(video_file_.c_str(), video_file_.c_str(), 68 EXPECT_EQ(0, I420MetricsFromFiles(video_file_.c_str(), video_file_.c_str(), 78 I420PSNRFromFiles(non_existing_file_.c_str(), [all...] |
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/ |
pointer.pass.cpp | 25 std::ofstream fs(temp.c_str()); 29 std::ifstream fs(temp.c_str()); 35 std::ifstream fs(temp.c_str(), std::ios_base::out); 40 std::remove(temp.c_str()); 42 std::wofstream fs(temp.c_str()); 46 std::wifstream fs(temp.c_str()); 52 std::wifstream fs(temp.c_str(), std::ios_base::out); 57 std::remove(temp.c_str());
|
move.pass.cpp | 26 std::ofstream fso(temp.c_str()); 31 std::ifstream fs(temp.c_str()); 36 std::remove(temp.c_str()); 38 std::wofstream fso(temp.c_str()); 43 std::wifstream fs(temp.c_str()); 48 std::remove(temp.c_str());
|
/art/test/647-jni-get-field-id/ |
get_field_id.cc | 29 if (name_chars.c_str() == nullptr) { 33 if (signature_chars.c_str() == nullptr) { 36 jfieldID field_id = env->GetFieldID(cls, name_chars.c_str(), signature_chars.c_str());
|
/external/libchrome/base/test/ |
scoped_locale.cc | 15 EXPECT_TRUE(setlocale(LC_ALL, locale.c_str()) != NULL) << 20 EXPECT_STREQ(prev_locale_.c_str(), setlocale(LC_ALL, prev_locale_.c_str()));
|
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/ |
member_swap.pass.cpp | 26 std::ofstream fs1(temp1.c_str()); 27 std::ofstream fs2(temp2.c_str()); 35 std::ifstream fs(temp1.c_str()); 42 std::remove(temp1.c_str()); 44 std::ifstream fs(temp2.c_str()); 51 std::remove(temp2.c_str()); 53 std::wofstream fs1(temp1.c_str()); 54 std::wofstream fs2(temp2.c_str()); 62 std::wifstream fs(temp1.c_str()); 69 std::remove(temp1.c_str()); [all...] |
nonmember_swap.pass.cpp | 27 std::ofstream fs1(temp1.c_str()); 28 std::ofstream fs2(temp2.c_str()); 36 std::ifstream fs(temp1.c_str()); 43 std::remove(temp1.c_str()); 45 std::ifstream fs(temp2.c_str()); 52 std::remove(temp2.c_str()); 54 std::wofstream fs1(temp1.c_str()); 55 std::wofstream fs2(temp2.c_str()); 63 std::wifstream fs(temp1.c_str()); 70 std::remove(temp1.c_str()); [all...] |
move_assign.pass.cpp | 26 std::ofstream fso(temp.c_str()); 32 std::ifstream fs(temp.c_str()); 37 std::remove(temp.c_str()); 39 std::wofstream fso(temp.c_str()); 45 std::wifstream fs(temp.c_str()); 50 std::remove(temp.c_str());
|
/external/libmojo/base/android/ |
fifo_utils.cc | 16 return mkfifo(path.value().c_str(), mode) == 0 && 17 chmod(path.value().c_str(), mode) == 0; 21 return freopen(path.value().c_str(), mode, stream) != NULL;
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/ofstream.assign/ |
member_swap.pass.cpp | 26 std::ofstream fs1(temp1.c_str()); 27 std::ofstream fs2(temp2.c_str()); 35 std::ifstream fs(temp1.c_str()); 42 std::remove(temp1.c_str()); 44 std::ifstream fs(temp2.c_str()); 51 std::remove(temp2.c_str()); 53 std::wofstream fs1(temp1.c_str()); 54 std::wofstream fs2(temp2.c_str()); 62 std::wifstream fs(temp1.c_str()); 69 std::remove(temp1.c_str()); [all...] |
nonmember_swap.pass.cpp | 27 std::ofstream fs1(temp1.c_str()); 28 std::ofstream fs2(temp2.c_str()); 36 std::ifstream fs(temp1.c_str()); 43 std::remove(temp1.c_str()); 45 std::ifstream fs(temp2.c_str()); 52 std::remove(temp2.c_str()); 54 std::wofstream fs1(temp1.c_str()); 55 std::wofstream fs2(temp2.c_str()); 63 std::wifstream fs(temp1.c_str()); 70 std::remove(temp1.c_str()); [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/input.output/file.streams/fstreams/ofstream.assign/ |
member_swap.pass.cpp | 26 std::ofstream fs1(temp1.c_str()); 27 std::ofstream fs2(temp2.c_str()); 35 std::ifstream fs(temp1.c_str()); 42 std::remove(temp1.c_str()); 44 std::ifstream fs(temp2.c_str()); 51 std::remove(temp2.c_str()); 53 std::wofstream fs1(temp1.c_str()); 54 std::wofstream fs2(temp2.c_str()); 62 std::wifstream fs(temp1.c_str()); 69 std::remove(temp1.c_str()); [all...] |
nonmember_swap.pass.cpp | 27 std::ofstream fs1(temp1.c_str()); 28 std::ofstream fs2(temp2.c_str()); 36 std::ifstream fs(temp1.c_str()); 43 std::remove(temp1.c_str()); 45 std::ifstream fs(temp2.c_str()); 52 std::remove(temp2.c_str()); 54 std::wofstream fs1(temp1.c_str()); 55 std::wofstream fs2(temp2.c_str()); 63 std::wifstream fs(temp1.c_str()); 70 std::remove(temp1.c_str()); [all...] |
/external/skia/src/gpu/glsl/ |
GrGLSLVertexShaderBuilder.cpp | 22 const char* p = posVar.c_str(); 26 this->codeAppendf("{vec2 _posTmp = %s;", posVar.c_str()); 34 posVar.c_str(), rtAdjustName, 35 posVar.c_str(), rtAdjustName, 36 posVar.c_str()); 40 posVar.c_str(), rtAdjustName, rtAdjustName, 41 posVar.c_str(), rtAdjustName, rtAdjustName);
|
/external/google-breakpad/src/tools/windows/converter/ |
ms_symbol_server_converter.cc | 75 if (SSCANF(identifier.c_str(), 89 if (SSCANF(identifier.c_str(), "%08X%x", &signature_, &age_) != 2) { 196 error, path_.c_str()); 204 int error = remove(path_.c_str()); 229 debug_or_code_file.c_str(), 230 debug_or_code_id.c_str(), 231 version.c_str()); 238 const_cast<char *>(symbol_path_.c_str()), 242 debug_or_code_file.c_str(), 243 debug_or_code_id.c_str(), [all...] |
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/ |
open_pointer.pass.cpp | 30 fs.open(temp.c_str()); 35 std::ifstream fs(temp.c_str()); 40 std::remove(temp.c_str()); 47 fs.open(temp.c_str()); 52 std::wifstream fs(temp.c_str()); 57 std::remove(temp.c_str());
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
BaseDynamicSensorDaemon.cpp | 29 ALOGV("device %s is connected", deviceKey.c_str()); 33 ALOGI("no valid sensor is defined in device %s, ignore", deviceKey.c_str()); 43 ALOGV("device %s is registered", deviceKey.c_str()); 47 ALOGD("device %s already added and is connected again, ignore", deviceKey.c_str()); 50 ALOGV("device %s is disconnected", deviceKey.c_str()); 59 ALOGV("device %s is unregistered", deviceKey.c_str());
|