| /rocksdb-6.9/util/ |
| D | file_reader_writer_test.cc | 277 ResetSourceStr(str); in TEST_P() 280 ASSERT_EQ(str, Read(0, str.size())); in TEST_P() 281 ASSERT_EQ(str.substr(7, std::min(static_cast<int>(str.size()) - 7, 30)), in TEST_P() 291 std::string str = in TEST_P() local 293 ResetSourceStr(str); in TEST_P() 307 std::string str = in TEST_P() local 309 ResetSourceStr(str); in TEST_P() 373 ResetSourceStr(str); in TEST_P() 376 ASSERT_EQ(str.substr(4), Read(str.size())); in TEST_P() 386 std::string str = in TEST_P() local [all …]
|
| D | string_util.cc | 82 void AppendNumberTo(std::string* str, uint64_t num) { in AppendNumberTo() argument 85 str->append(buf); in AppendNumberTo() 88 void AppendEscapedStringTo(std::string* str, const Slice& value) { in AppendEscapedStringTo() argument 92 str->push_back(c); in AppendEscapedStringTo() 97 str->append(buf); in AppendEscapedStringTo() 250 std::string trim(const std::string& str) { in trim() argument 251 if (str.empty()) return std::string(); in trim() 253 size_t end = str.size() - 1; in trim() 254 while (isspace(str[start]) != 0 && start < end) { in trim() 257 while (isspace(str[end]) != 0 && start < end) { in trim() [all …]
|
| D | string_util.h | 31 return os.str(); in ToString() 36 extern void AppendNumberTo(std::string* str, uint64_t num); 40 extern void AppendEscapedStringTo(std::string* str, const Slice& value); 112 std::string trim(const std::string& str);
|
| /rocksdb-6.9/db/blob/ |
| D | blob_file_addition_test.cc | 65 std::string str; in TEST_F() local 66 Slice slice(str); in TEST_F() 77 PutVarint64(&str, blob_file_number); in TEST_F() 78 slice = str; in TEST_F() 87 PutVarint64(&str, total_blob_count); in TEST_F() 88 slice = str; in TEST_F() 98 slice = str; in TEST_F() 108 slice = str; in TEST_F() 118 slice = str; in TEST_F() 127 PutVarint32(&str, custom_tag); in TEST_F() [all …]
|
| D | blob_file_garbage_test.cc | 58 std::string str; in TEST_F() local 59 Slice slice(str); in TEST_F() 70 PutVarint64(&str, blob_file_number); in TEST_F() 71 slice = str; in TEST_F() 80 PutVarint64(&str, garbage_blob_count); in TEST_F() 81 slice = str; in TEST_F() 90 PutVarint64(&str, garbage_blob_bytes); in TEST_F() 91 slice = str; in TEST_F() 100 PutVarint32(&str, custom_tag); in TEST_F() 101 slice = str; in TEST_F()
|
| /rocksdb-6.9/table/ |
| D | cleanable_test.cc | 226 std::string str; in TEST_F() local 227 str.assign(value.data(), value.size()); in TEST_F() 228 ASSERT_EQ(const_str, str); in TEST_F() 244 std::string str; in TEST_F() local 245 str.assign(value.data(), value.size()); in TEST_F() 246 ASSERT_EQ(const_str, str); in TEST_F() 255 std::string str; in TEST_F() local 256 str.assign(value.data(), value.size()); in TEST_F() 257 ASSERT_EQ(const_str, str); in TEST_F() 265 std::string str; in TEST_F() local [all …]
|
| /rocksdb-6.9/tools/advisor/advisor/ |
| D | config_optimizer_example.py | 76 '--rocksdb_options', required=True, type=str, 88 '--base_db_path', required=True, type=str, 92 '--rules_spec', required=True, type=str, 102 '--ods_client', type=str, help='the ODS client binary' 105 '--ods_entity', type=str, 109 '--ods_key_prefix', type=str, 115 '--benchrunner_module', required=True, type=str, 121 '--benchrunner_class', required=True, type=str,
|
| D | rule_parser_example.py | 51 '--rules_spec', required=True, type=str, 55 '--rocksdb_options', required=True, type=str, 59 '--log_files_path_prefix', required=True, type=str, 69 '--ods_client', type=str, help='the ODS client binary' 72 '--ods_entity', type=str, 76 '--ods_key_prefix', type=str,
|
| D | rule_parser.py | 42 if isinstance(value, str): 47 if isinstance(value, str): 248 if isinstance(value, str): 276 ' suggested_values : ' + str(self.suggested_values) 349 if isinstance(value, str): 365 opt_cond_str += (" options: " + str(self.options)) 368 opt_cond_str += (" trigger: " + str(self.trigger)) 381 if isinstance(value, str): 416 ts_cond_str += (" statistics: " + str(self.keys)) 420 ts_cond_str += (" window_sec: " + str(self.window_sec)) [all …]
|
| D | db_options_parser.py | 64 option_str += (str(value) + ':') 69 option_str += str(values) 273 file_name = '../temp/OPTIONS_' + str(nonce) + '.tmp' 325 'WARNING(DatabaseOptions) check_and_trigger:' + str(e) 349 str(e)
|
| /rocksdb-6.9/third-party/gtest-1.8.1/fused-src/gtest/ |
| D | gtest-all.cc | 1377 if (str.empty() || !IsDigit(str[0])) { in ParseNaturalNumber() 2775 if (end > 2 && str[0] == '"' && str[end - 1] == '"') { in SplitEscapedString() 3285 return str; in CodePointToUtf8() 3484 const ::std::string& str = ss->str(); in StringStreamToString() local 5704 for (char ch = *str; ch != '\0'; ch = *++str) { in UrlEncode() 6847 for (int i = 0; *str != '\0'; ++str) { in PrintOnOneLine() 7162 str = p + 2; in PrintColorEncoded() 7174 --str; in PrintColorEncoded() 10226 if (str[i] == '\0' || !AtomMatchesChar(escaped, c, str[i])) in MatchRepetitionAndRegexAtHead() 11320 str++; in SkipSpaces() [all …]
|
| /rocksdb-6.9/db/ |
| D | db_info_dumper.cc | 59 char str[16]; in DumpDBFileSummary() local 60 snprintf(str, sizeof(str), "%" PRIu64, file_size); in DumpDBFileSummary() 62 append(str).append(" ; "); in DumpDBFileSummary() 112 char str[16]; in DumpDBFileSummary() local 113 snprintf(str, sizeof(str), "%" PRIu64, file_size); in DumpDBFileSummary() 115 append(str).append(" ; "); in DumpDBFileSummary()
|
| D | version_edit_test.cc | 133 std::string* str = reinterpret_cast<std::string*>(arg); in TEST_F() local 134 PutVarint32(str, 33); in TEST_F() 136 PutLengthPrefixedSlice(str, str1); in TEST_F() 139 PutVarint32(str, 22); in TEST_F() 141 PutLengthPrefixedSlice(str, str2); in TEST_F() 179 std::string* str = reinterpret_cast<std::string*>(arg); in TEST_F() local 181 PutLengthPrefixedSlice(str, str1); in TEST_F()
|
| D | version_edit.cc | 313 Slice str; in GetInternalKey() local 314 if (GetLengthPrefixedSlice(input, &str)) { in GetInternalKey() 315 dst->DecodeFrom(str); in GetInternalKey() 433 Slice str; in DecodeFrom() local 438 if (GetLengthPrefixedSlice(&input, &str)) { in DecodeFrom() 439 db_id_ = str.ToString(); in DecodeFrom() 446 if (GetLengthPrefixedSlice(&input, &str)) { in DecodeFrom() 447 comparator_ = str.ToString(); in DecodeFrom() 624 if (GetLengthPrefixedSlice(&input, &str)) { in DecodeFrom() 626 column_family_name_ = str.ToString(); in DecodeFrom()
|
| D | comparator_db_test.cc | 372 std::string str; in TEST_P() local 373 str.resize(8); in TEST_P() 374 memcpy(&str[0], static_cast<void*>(&r), 8); in TEST_P() 375 source_strings.push_back(str); in TEST_P() 438 std::string str; in TEST_P() local 441 str.append(1, static_cast<char>(size1)); in TEST_P() 442 str.append(1, static_cast<char>(size2)); in TEST_P() 443 str.append(test::RandomKey(&rnd, size1)); in TEST_P() 444 str.append(test::RandomKey(&rnd, size2)); in TEST_P() 445 source_strings.push_back(str); in TEST_P()
|
| /rocksdb-6.9/utilities/blob_db/ |
| D | blob_log_writer.cc | 45 std::string str; in WriteHeader() local 46 header.EncodeTo(&str); in WriteHeader() 48 Status s = dest_->Append(Slice(str)); in WriteHeader() 50 block_offset_ += str.size(); in WriteHeader() 63 std::string str; in AppendFooter() local 64 footer.EncodeTo(&str); in AppendFooter() 66 Status s = dest_->Append(Slice(str)); in AppendFooter() 68 block_offset_ += str.size(); in AppendFooter()
|
| /rocksdb-6.9/monitoring/ |
| D | iostats_context.cc | 57 std::string str = ss.str(); in ToString() local 58 str.erase(str.find_last_not_of(", ") + 1); in ToString() 59 return str; in ToString()
|
| /rocksdb-6.9/build_tools/ |
| D | precommit_checker.py | 27 def caption(self, str): argument 28 line = "\n##### %s #####\n" % str 34 def error(self, str): argument 35 data = "\n\n##### ERROR ##### %s" % str 41 def log(self, str): argument 43 self.f.write("%s \n" % str) 45 print(str)
|
| /rocksdb-6.9/third-party/folly/folly/ |
| D | ScopeGuard.h | 43 #define FB_ANONYMOUS_VARIABLE(str) \ argument 44 FB_CONCATENATE(FB_CONCATENATE(FB_CONCATENATE(str, __COUNTER__), _), __LINE__) 46 #define FB_ANONYMOUS_VARIABLE(str) FB_CONCATENATE(str, __LINE__) argument
|
| /rocksdb-6.9/utilities/ttl/ |
| D | db_ttl_impl.cc | 160 Status DBWithTTLImpl::SanityCheckTimestamp(const Slice& str) { in SanityCheckTimestamp() argument 161 if (str.size() < kTSLength) { in SanityCheckTimestamp() 166 int32_t timestamp_value = DecodeFixed32(str.data() + str.size() - kTSLength); in SanityCheckTimestamp() 199 Status DBWithTTLImpl::StripTS(std::string* str) { in StripTS() argument 201 if (str->length() < kTSLength) { in StripTS() 205 str->erase(str->length() - kTSLength, kTSLength); in StripTS()
|
| /rocksdb-6.9/java/src/test/java/org/rocksdb/ |
| D | MutableDBOptionsTest.java | 60 final String str = MutableDBOptions in mutableDBOptions_toString() local 69 assertThat(str).isEqualTo("max_open_files=99;delayed_write_rate=789;" in mutableDBOptions_toString() 75 final String str = "max_open_files=99;delayed_write_rate=789;" in mutableDBOptions_parse() local 79 MutableDBOptions.parse(str); in mutableDBOptions_parse()
|
| D | MutableColumnFamilyOptionsTest.java | 62 final String str = MutableColumnFamilyOptions in mutableColumnFamilyOptions_toString() local 71 assertThat(str).isEqualTo("write_buffer_size=10;inplace_update_num_locks=5;" in mutableColumnFamilyOptions_toString() 77 final String str = "write_buffer_size=10;inplace_update_num_locks=5;" in mutableColumnFamilyOptions_parse() local 81 MutableColumnFamilyOptions.parse(str); in mutableColumnFamilyOptions_parse()
|
| /rocksdb-6.9/buckifier/ |
| D | targets_builder.py | 8 from builtins import str 11 from __builtin__ import str 71 str(src), 72 str(exec_mode),
|
| /rocksdb-6.9/java/src/test/java/org/rocksdb/util/ |
| D | TestUtil.java | 57 final byte[] str = new byte[len]; in dummyString() 58 random.nextBytes(str); in dummyString() 59 return str; in dummyString()
|
| /rocksdb-6.9/java/rocksjni/ |
| D | slice.cc | 30 const auto* str = env->GetStringUTFChars(jstr, nullptr); in Java_org_rocksdb_AbstractSlice_createNewSliceFromString() local 31 if (str == nullptr) { in Java_org_rocksdb_AbstractSlice_createNewSliceFromString() 36 const size_t len = strlen(str); in Java_org_rocksdb_AbstractSlice_createNewSliceFromString() 42 memcpy(buf, str, len); in Java_org_rocksdb_AbstractSlice_createNewSliceFromString() 44 env->ReleaseStringUTFChars(jstr, str); in Java_org_rocksdb_AbstractSlice_createNewSliceFromString()
|