/external/libtextclassifier/utils/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/libtextclassifier/lang_id/common/lite_strings/ |
numbers.cc | 41 bool LiteAtoi(const char *c_str, int *value) { 42 if (c_str == nullptr) { 53 // If there were no digits at all, strtol() sets temp to be c_str (the start 56 const long int parsed_value = strtol(c_str, &temp, 0); // NOLINT 71 return (temp != c_str) && OnlyWhitespaces(temp); 74 bool LiteAtof(const char *c_str, float *value) { 75 if (c_str == nullptr) { 81 *value = strtof(c_str, &temp); 82 return (temp != c_str) && OnlyWhitespaces(temp);
|
numbers.h | 29 // c_str should point to a zero-terminated array of chars that contains the 41 bool LiteAtoi(const char *c_str, int *value); 44 return LiteAtoi(s.c_str(), value); 51 return LiteAtoi(temp.c_str(), value); 58 bool LiteAtof(const char *c_str, float *value); 61 return LiteAtof(s.c_str(), value); 68 return LiteAtof(temp.c_str(), value);
|
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/doxygen/ |
observe_on.cpp | 10 printf("[thread %s] Start task\n", get_pid().c_str()); 13 printf("[thread %s] Emit value %d\n", get_pid().c_str(), v); 20 [](int v){printf("[thread %s] OnNext: %d\n", get_pid().c_str(), v);}, 21 [](){printf("[thread %s] OnCompleted\n", get_pid().c_str());}); 22 printf("[thread %s] Finish task\n", get_pid().c_str());
|
subscribe_on.cpp | 10 printf("[thread %s] Start task\n", get_pid().c_str()); 13 printf("[thread %s] Emit value %d\n", get_pid().c_str(), v); 20 [](int v){printf("[thread %s] OnNext: %d\n", get_pid().c_str(), v);}, 21 [](){printf("[thread %s] OnCompleted\n", get_pid().c_str());}); 22 printf("[thread %s] Finish task\n", get_pid().c_str());
|
from.cpp | 20 printf("[thread %s] Start task\n", get_pid().c_str()); 22 printf("[thread %s] Emit value: %d\n", get_pid().c_str(), v); 28 [](int v){printf("[thread %s] OnNext: %d\n", get_pid().c_str(), v);}, 29 [](){printf("[thread %s] OnCompleted\n", get_pid().c_str());}); 30 printf("[thread %s] Finish task\n", get_pid().c_str());
|
merge_delay_error.cpp | 18 [](std::exception_ptr eptr) { printf("OnError %s\n", rxu::what(eptr).c_str()); }, 33 [](std::exception_ptr eptr) { printf("OnError %s\n", rxu::what(eptr).c_str()); }, 42 printf("[thread %s] Start task\n", get_pid().c_str()); 44 printf("[thread %s] Timer1 fired\n", get_pid().c_str()); 49 ss << "[thread " << get_pid().c_str() << "] Timer2 failed\n"; 50 printf("%s\n", ss.str().c_str()); 52 ss << "(Error from thread: " << get_pid().c_str() << ")\n"; 56 printf("[thread %s] Timer3 fired\n", get_pid().c_str()); 63 [](int v){printf("[thread %s] OnNext: %d\n", get_pid().c_str(), v);}, 64 [](std::exception_ptr eptr) { printf("[thread %s] OnError %s\n", get_pid().c_str(), rxu::what(eptr).c_str()); } [all...] |
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/ |
c_str.pass.cpp | 17 // const value_type* c_str() const noexcept; 34 ASSERT_SAME_TYPE(path::value_type const*, decltype(p.c_str())); 35 ASSERT_NOEXCEPT(p.c_str()); 39 assert(p.c_str() == str_value); 40 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/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/libcxx/input.output/file.streams/fstreams/ofstream.cons/ |
wchar_pointer.pass.cpp | 26 std::ofstream fs(temp.c_str()); 30 std::ifstream fs(temp.c_str()); 36 std::ifstream fs(temp.c_str(), std::ios_base::out); 41 _wremove(temp.c_str()); 43 std::wofstream fs(temp.c_str()); 47 std::wifstream fs(temp.c_str()); 53 std::wifstream fs(temp.c_str(), std::ios_base::out); 58 _wremove(temp.c_str());
|
/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 | 27 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()); 44 std::wifstream fs(temp.c_str()); 49 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/perfetto/tools/trace_to_text/ |
proto_full_utils.cc | 28 PERFETTO_ELOG("Error %s %d:%d: %s", filename.c_str(), line, column, 29 message.c_str()); 36 PERFETTO_ELOG("Error %s %d:%d: %s", filename.c_str(), line, column, 37 message.c_str());
|
/external/libchrome/base/test/ |
scoped_locale.cc | 15 EXPECT_TRUE(setlocale(LC_ALL, locale.c_str()) != nullptr) 20 EXPECT_STREQ(prev_locale_.c_str(), setlocale(LC_ALL, prev_locale_.c_str()));
|
/bionic/libc/malloc_debug/tests/ |
malloc_debug_config_tests.cpp | 50 ASSERT_STREQ("", getFakeLogBuf().c_str()); 52 ASSERT_STREQ((log_msg + usage_string).c_str(), getFakeLogPrint().c_str()); 58 ASSERT_STREQ("", getFakeLogBuf().c_str()); 60 ASSERT_STREQ((log_msg + usage_string).c_str(), getFakeLogPrint().c_str()); 66 ASSERT_STREQ("", getFakeLogBuf().c_str()); 68 ASSERT_STREQ((log_msg + usage_string).c_str(), getFakeLogPrint().c_str()); 74 ASSERT_STREQ("", getFakeLogBuf().c_str()); [all...] |
/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/libcxx/input.output/file.streams/fstreams/ofstream.members/ |
open_wchar_pointer.pass.cpp | 31 fs.open(temp.c_str()); 36 std::ifstream fs(temp.c_str()); 41 _wremove(temp.c_str()); 48 fs.open(temp.c_str()); 53 std::wifstream fs(temp.c_str()); 58 _wremove(temp.c_str());
|
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/ |
move_assign.pass.cpp | 27 std::ofstream fso(temp.c_str()); 33 std::ifstream fs(temp.c_str()); 38 std::remove(temp.c_str()); 40 std::wofstream fso(temp.c_str()); 46 std::wifstream fs(temp.c_str()); 51 std::remove(temp.c_str());
|
/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());
|
/bionic/libc/private/ |
FdPath.h | 25 const char* c_str() { function in class:FdPath
|
/build/kati/ |
log.h | 40 fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \ 47 fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \ 52 fprintf(stderr, "%s: %s\n", StringPrintf(__VA_ARGS__).c_str(), \ 64 fprintf(stderr, "%s\n", StringPrintf(__VA_ARGS__).c_str()); \ 70 fprintf(stderr, "%s\n", StringPrintf(__VA_ARGS__).c_str()); \ 76 fprintf(stderr, "%s\n", StringPrintf(__VA_ARGS__).c_str()); \ 93 ColorWarnLog(LOCF(loc), StringPrintf(__VA_ARGS__).c_str()); \ 99 ColorWarnLog(LOCF(loc), StringPrintf(__VA_ARGS__).c_str()); \ 104 ColorErrorLog(LOCF(loc), StringPrintf(__VA_ARGS__).c_str()); \
|
/external/flatbuffers/samples/ |
sample_text.cpp | 40 ok = parser.Parse(schemafile.c_str(), include_directories) && 41 parser.Parse(jsonfile.c_str(), include_directories); 55 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str());
|