Searched refs:line_end (Results 1 – 3 of 3) sorted by relevance
/aosp12/system/extras/simpleperf/ |
H A D | kallsyms.cpp | 247 char* line_end = strchr(p, '\n'); in ProcessKernelSymbols() local 248 if (line_end != nullptr) { in ProcessKernelSymbols() 249 *line_end = '\0'; in ProcessKernelSymbols() 251 size_t line_size = (line_end != nullptr) ? (line_end - p) : (data_end - p); in ProcessKernelSymbols() 259 if (line_end != nullptr) { in ProcessKernelSymbols() 260 *line_end = '\n'; in ProcessKernelSymbols() 261 p = line_end + 1; in ProcessKernelSymbols()
|
/aosp12/system/extras/memory_replay/ |
H A D | Alloc.cpp | 42 const char* line_end = &line[line_pos]; in AllocGetData() local 47 if (sscanf(line_end, "%zu", &entry->size) != 1) { in AllocGetData() 58 if (sscanf(line_end, "%" SCNd64 " %zu", &entry->u.n_elements, &entry->size) != 2) { in AllocGetData() 65 if (sscanf(line_end, "%" SCNx64 " %zu", &entry->u.old_ptr, &entry->size) != 2) { in AllocGetData() 72 if (sscanf(line_end, "%" SCNd64 " %zu", &entry->u.align, &entry->size) != 2) { in AllocGetData()
|
/aosp12/system/tools/aidl/ |
H A D | code_writer.cpp | 56 size_t line_end = formatted.find('\n', pos); in Write() local 57 if (line_end != std::string::npos) { in Write() 58 lines.push_back(formatted.substr(pos, (line_end - pos) + 1)); in Write() 59 pos = line_end + 1; in Write()
|