| /rocksdb-6.9/tools/block_cache_analyzer/ |
| D | block_cache_trace_analyzer_test.cc | 256 std::string substr; in TEST_F() local 257 getline(ss, substr, ','); in TEST_F() 258 result_strs.push_back(substr); in TEST_F() 289 std::string substr; in TEST_F() local 290 getline(ss, substr, ','); in TEST_F() 293 ASSERT_EQ("trace", substr); in TEST_F() 317 std::string substr; in TEST_F() local 318 getline(ss, substr, ','); in TEST_F() 348 std::string substr; in TEST_F() local 391 std::string substr; in TEST_F() local [all …]
|
| /rocksdb-6.9/util/ |
| D | file_reader_writer_test.cc | 278 ASSERT_EQ(str.substr(3, 4), Read(3, 4)); in TEST_P() 279 ASSERT_EQ(str.substr(0, 3), Read(0, 3)); in TEST_P() 281 ASSERT_EQ(str.substr(7, std::min(static_cast<int>(str.size()) - 7, 30)), in TEST_P() 297 ASSERT_EQ(str.substr(offset, std::min(n, strLen - offset)), in TEST_P() 314 ASSERT_EQ(str.substr(offset, std::min(n, strLen - offset)), in TEST_P() 374 ASSERT_EQ(str.substr(0, 3), Read(3)); in TEST_P() 375 ASSERT_EQ(str.substr(3, 1), Read(1)); in TEST_P() 376 ASSERT_EQ(str.substr(4), Read(str.size())); in TEST_P() 395 ASSERT_EQ(str.substr(offset, std::min(n, strLen - offset)), Read(n)); in TEST_P() 419 ASSERT_EQ(str.substr(offset, std::min(n, strLen - offset)), Read(n)); in TEST_P()
|
| D | string_util.cc | 261 return str.substr(start, end - start + 1); in trim() 388 result.push_back(ParseInt(value.substr(start))); in ParseVectorInt() 391 result.push_back(ParseInt(value.substr(start, end - start))); in ParseVectorInt()
|
| /rocksdb-6.9/options/ |
| D | options_helper.cc | 324 value.substr(start), &type); in ParseVectorCompressionType() 376 std::string key = opt_val_str.substr(0, end); in ParseSingleStructOption() 377 std::string value = opt_val_str.substr(end + 1); in ParseSingleStructOption() 409 if (!ParseSingleStructOption(opt_str.substr(start, len), options, in ParseStructOptions() 434 ParseInt(trim(pe_value.substr(kCappedPrefixName.size()))); in ParseSliceTransformHelper() 869 std::string key = trim(opts.substr(pos, eq_pos - pos)); in StringToMap() 919 (*opts_map)[key] = trim(opts.substr(pos)); in StringToMap() 923 (*opts_map)[key] = trim(opts.substr(pos, sc_pos - pos)); in StringToMap() 955 ParseInt(value.substr(start, value.size() - start)); in ParseCompressionOptions() 964 ParseInt(value.substr(start, value.size() - start)); in ParseCompressionOptions() [all …]
|
| D | options_parser.cc | 150 *title = TrimAndRemoveComment(line.substr(1, arg_start_pos - 1), true); in ParseSection() 152 line.substr(arg_start_pos + 1, arg_end_pos - arg_start_pos - 1)); in ParseSection() 154 *title = TrimAndRemoveComment(line.substr(1, line.size() - 2), true); in ParseSection() 195 *name = TrimAndRemoveComment(line.substr(0, eq_pos), true); in ParseStatement() 197 TrimAndRemoveComment(line.substr(eq_pos + 1, line.size() - eq_pos - 1)); in ParseStatement() 412 section_title.substr( in EndSection() 484 return line.substr(start, end - start); in TrimAndRemoveComment()
|
| /rocksdb-6.9/hdfs/ |
| D | env_hdfs.h | 195 const std::string hostport = uri.substr(kProto.length()); in connectToPath() 208 remaining.substr(0, rem)); in connectToPath() 225 elems.push_back(s.substr(prev, pos)); in split() 229 elems.push_back(s.substr(prev, s.size())); in split()
|
| /rocksdb-6.9/db/ |
| D | log_test.cc | 831 std::string part1 = contents().substr(old_sz, delta); in TEST_P() 833 contents().substr(old_sz + delta, new_sz - old_sz - delta); in TEST_P() 874 std::string part1 = contents().substr(old_sz, delta); in TEST_P() 876 contents().substr(old_sz + delta, new_sz - old_sz - delta); in TEST_P() 908 std::string part1 = contents().substr(old_sz, delta); in TEST_P() 910 contents().substr(old_sz + delta, new_sz - old_sz - delta); in TEST_P()
|
| D | version_edit_handler.cc | 267 msg = msg.substr(0, msg.size() - 2); in CheckIterationResult() 277 msg = msg.substr(2); in CheckIterationResult()
|
| /rocksdb-6.9/db_stress_tool/ |
| D | db_stress_listener.h | 200 VerifyFileDir(file_path.substr(0, pos)); in VerifyFilePath() 202 VerifyFileName(file_path.substr(pos)); in VerifyFilePath()
|
| D | db_stress_common.h | 331 ret.push_back(src.substr(pos, pos_comma - pos)); in SplitString() 334 ret.push_back(src.substr(pos, src.length())); in SplitString()
|
| /rocksdb-6.9/monitoring/ |
| D | persistent_stats_history.cc | 105 uint64_t parsed_time = ParseUint64(key_str.substr(0, pos)); in parseKey() 112 std::string key_resize = key_str.substr(pos + 1); in parseKey()
|
| /rocksdb-6.9/utilities/checkpoint/ |
| D | checkpoint_impl.cc | 100 checkpoint_dir.substr(0, final_nonslash_idx + 1) + ".tmp"; in CreateCheckpoint() 301 create_file_cb(current_fname, manifest_fname.substr(1) + "\n", in CreateCustomCheckpoint() 367 export_dir.substr(0, final_nonslash_idx + 1) + ".tmp"; in ExportColumnFamily()
|
| /rocksdb-6.9/test_util/ |
| D | fault_injection_test_fs.cc | 29 return filename.substr(0, found); in TestFSGetDirName() 39 return str.substr(0, found + 1); in TestFSTrimDirname() 46 std::string fname = name.substr(dirname.size() + 1); in TestFSGetDirAndName()
|
| D | fault_injection_test_env.cc | 26 return filename.substr(0, found); in GetDirName() 76 return str.substr(0, found + 1); in TrimDirname() 82 std::string fname = name.substr(dirname.size() + 1); in GetDirAndName()
|
| D | sync_point_impl.cc | 14 if (kill_point.substr(0, p.length()) == p) { in TestKillRandom()
|
| /rocksdb-6.9/trace_replay/ |
| D | block_cache_tracer.cc | 377 std::string substr; in ReadAccess() local 378 getline(ss, substr, ','); in ReadAccess() 379 record_strs.push_back(substr); in ReadAccess()
|
| /rocksdb-6.9/third-party/gtest-1.8.1/fused-src/gtest/ |
| D | gtest-all.cc | 214 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 280 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 285 (substr));\ 299 (substr));\ 2160 if (strstr(r.message(), substr.c_str()) == NULL) { in HasOneFailure() 2162 << substr << "\"\n" in HasOneFailure() 2429 parsed.push_back(str.substr(pos)); in SplitString() 2791 lines.push_back(str.substr(start, end - start)); in SplitEscapedString() 7983 ret += output.substr(at); in FormatDeathTestOutput() 7986 ret += output.substr(at, line_end + 1 - at); in FormatDeathTestOutput() [all …]
|
| /rocksdb-6.9/tools/ |
| D | trace_analyzer_tool.cc | 221 opt1 = cur.substr(1, split - 1); in SparseCorrelationInput() 228 opt2 = cur.substr(split + 1, end - split - 1); in SparseCorrelationInput() 233 cur = cur.substr(end + 1); in SparseCorrelationInput() 403 if (header->payload.substr(0, kTraceMagic.length()) != kTraceMagic) { in ReadTraceHeader() 751 prefix = record.first.substr(0, FLAGS_output_prefix_cut); in MakeStatisticKeyStatsOrPrefix() 1105 prefix[type] = input_key.substr(0, FLAGS_output_prefix_cut); in ReProcessing() 1204 prefix = key.substr(0, FLAGS_output_prefix_cut); in KeyStatsInsertion()
|
| D | ldb_cmd.cc | 142 std::string optionKey = splits[0].substr(OPTION_PREFIX.size()); in InitFromCmdLineArgs() 146 std::string optionKey = splits[0].substr(OPTION_PREFIX.size()); in InitFromCmdLineArgs() 150 std::string optionKey = splits[0].substr(OPTION_PREFIX.size()); in InitFromCmdLineArgs() 152 arg.substr(splits[0].length() + 1); in InitFromCmdLineArgs() 730 *key = line.substr(0, pos); in ParseKeyValue() 731 *value = line.substr(pos + strlen(DELIM)); in ParseKeyValue() 2222 sanitized = sanitized.substr(lastslash + 1); in DumpWalFile() 2799 tokens.push_back(line.substr(pos, pos2-pos)); in DoCommand() 2802 tokens.push_back(line.substr(pos)); in DoCommand()
|
| /rocksdb-6.9/env/ |
| D | env_chroot.cc | 330 auto status_and_enc_path = EncodePath(path.substr(0, base_sep + 1)); in EncodePathWithNewBasename() 331 status_and_enc_path.second.append(path.substr(base_sep + 1)); in EncodePathWithNewBasename()
|
| D | io_posix.cc | 441 std::string dir = fname.substr(0, fname.find_last_of("/")); in GetLogicalBlockSize() 511 device_dir.substr(parent_begin + 1, parent_end - parent_begin - 1); in GetLogicalBlockSizeOfFd() 512 std::string child = device_dir.substr(parent_end + 1, std::string::npos); in GetLogicalBlockSizeOfFd() 515 device_dir = device_dir.substr(0, parent_end); in GetLogicalBlockSizeOfFd()
|
| /rocksdb-6.9/table/block_based/ |
| D | block_based_table_factory.cc | 521 ParseDouble(trim(value.substr(kName.size(), pos - kName.size()))); in ParseBlockBasedTableOption() 523 ParseBoolean("use_block_based_builder", trim(value.substr(pos + 1))); in ParseBlockBasedTableOption()
|
| /rocksdb-6.9/utilities/ |
| D | env_librados.cc | 79 *file = fn.substr(fstart + 1, pos - fstart); in split() 88 *dir = fn.substr(dstart + 1, pos - dstart); in split() 819 result->push_back(i->first.substr(dir.size() + 1)); in _GetSubFnames()
|
| /rocksdb-6.9/logging/ |
| D | auto_roll_logger_test.cc | 566 const std::string dirname = path.substr(/*start=*/0, path.find_last_of("/")); in GetOldFileNames() 567 const std::string fname = path.substr(path.find_last_of("/") + 1); in GetOldFileNames()
|
| /rocksdb-6.9/table/ |
| D | table_test.cc | 2036 ASSERT_EQ("0055", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2040 ASSERT_EQ("0095", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2044 ASSERT_EQ("0055", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2048 ASSERT_EQ("0095", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2053 ASSERT_EQ("0075", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2057 ASSERT_EQ("0095", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2062 ASSERT_EQ("0075", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2066 ASSERT_EQ("0095", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2070 ASSERT_EQ("0095", index_iter2->key().ToString().substr(0, 4)); in IndexTest() 2076 ASSERT_EQ("0075", index_iter2->key().ToString().substr(0, 4)); in IndexTest() [all …]
|