Home
last modified time | relevance | path

Searched refs:str (Results 1 - 25 of 642) sorted by relevance

12345678910>>...26

/5.5.2/forestdb/tests/unit/
H A Dhash_test.cc97 char str[32]; in string_hash_test() local
103 str[j] = 'a' + random('z'-'a'); in string_hash_test()
105 str[j] = 0; in string_hash_test()
106 b = hash_djb2((uint8_t *)str, strlen(str)); in string_hash_test()
108 DBG("%s %10u %5u\n",str, b, b&0xfff); in string_hash_test()
112 sprintf(str, "asdf%d.%d",i,random(100)); in string_hash_test()
113 b = hash_djb2((uint8_t *)str, strlen(str)); in string_hash_test()
115 DBG("%s %10u %5u\n",str, in string_hash_test()
[all...]
/5.5.2/testrunner/lib/
H A Dcouchbase_cli.py22 options += " --bucket-ramsize " + str(quota)
26 options += " --bucket-replica " + str(replica_count)
28 options += " --enable-index-replica " + str(enable_replica_indexes)
32 options += " --enable-flush " + str(enable_flush)
75 options += " --bucket-ramsize " + str(quota)
79 options += " --bucket-replica " + str(replica_count)
83 options += " --enable-flush " + str(enable_flush)
117 options += " --cluster-username " + str(cluster_username)
119 options += " --cluster-password " + str(cluster_password)
121 options += " --cluster-ramsize " + str(data_ramsiz
[all...]
/5.5.2/kv_engine/utilities/
H A Dutil.cc18 bool safe_strtoull(const char* str, uint64_t& out) { in safe_strtoull() argument
25 ull = strtoull(str, &endptr, 10); in safe_strtoull()
30 if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { in safe_strtoull()
35 if (strchr(str, '-') != NULL) { in safe_strtoull()
45 bool safe_strtoll(const char* str, int64_t& out) { in safe_strtoll() argument
51 ll = strtoll(str, &endptr, 10); in safe_strtoll()
56 if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { in safe_strtoll()
63 bool safe_strtoul(const char* str, uint32_t& out) { in safe_strtoul() argument
69 l = strtoul(str, &endptr, 10); in safe_strtoul()
74 if (xisspace(*endptr) || (*endptr == '\0' && endptr != str)) { in safe_strtoul()
90 safe_strtol(const char* str, int32_t& out) safe_strtol() argument
107 safe_strtof(const char* str, float& out) safe_strtof() argument
[all...]
/5.5.2/goproj/src/github.com/couchbase/indexing/secondary/indexer/
H A Dmessage.go251 str := "\n\tMessage: MsgStream"
252 str += fmt.Sprintf("\n\tType: %v", m.mType)
253 str += fmt.Sprintf("\n\tStreamId: %v", m.streamId)
254 str += fmt.Sprintf("\n\tMeta: %v", m.meta)
255 str += fmt.Sprintf("\n\tSnapshot: %v", m.snapshot)
256 return str
315 str := "\n\tMessage: MsgStreamInfo"
316 str += fmt.Sprintf("\n\tType: %v", m.mType)
317 str += fmt.Sprintf("\n\tStream: %v", m.streamId)
318 str
[all...]
H A Dpartition_instance.go48 str := "\n"
50 str += fmt.Sprintf("\tInstanceId: %v ", i)
52 str += fmt.Sprintf("PartitionId: %v ", j)
53 str += fmt.Sprintf("Endpoints: %v ", p.Defn.Endpoints())
55 str += "\n"
57 return str
62 str := fmt.Sprintf("PartitionId: %v ", pi.Defn.GetPartitionId())
63 str += fmt.Sprintf("Endpoints: %v ", pi.Defn.Endpoints())
65 return str
/5.5.2/couchdb/src/ejson/yajl/
H A Dyajl_encode.c48 yajl_string_encode(yajl_buf buf, const unsigned char * str, in yajl_string_encode() argument
51 yajl_string_encode2((const yajl_print_t) &yajl_buf_append, buf, str, len); in yajl_string_encode()
57 const unsigned char * str, in yajl_string_encode2()
68 switch (str[end]) { in yajl_string_encode2()
78 if ((unsigned char) str[end] < 32) { in yajl_string_encode2()
79 CharToHex(str[end], hexBuf + 4); in yajl_string_encode2()
85 print(ctx, (const char *) (str + beg), end - beg); in yajl_string_encode2()
92 print(ctx, (const char *) (str + beg), end - beg); in yajl_string_encode2()
133 void yajl_string_decode(yajl_buf buf, const unsigned char * str, in yajl_string_decode() argument
140 if (str[en in yajl_string_decode()
55 yajl_string_encode2(const yajl_print_t print, void * ctx, const unsigned char * str, unsigned int len) yajl_string_encode2() argument
[all...]
/5.5.2/godeps/src/github.com/blevesearch/bleve/search/query/
H A Dquery_string.y89 str := $1
90 logDebugGrammar("STRING - %s", str)
92 if strings.HasPrefix(str, "/") && strings.HasSuffix(str, "/") {
93 q = NewRegexpQuery(str[1:len(str)-1])
94 } else if strings.ContainsAny(str, "*?"){
95 q = NewWildcardQuery(str)
97 q = NewMatchQuery(str)
103 str
[all...]
/5.5.2/kv_engine/auditd/src/
H A Dauditfile.cc38 std::string str((std::istreambuf_iterator<char>(myfile)), in load_file()
41 return str; in load_file()
43 std::string str; in load_file() local
44 return str; in load_file()
99 open_file_name = ss.str(); in open()
140 fname.assign(archive_file.str()); in close_and_rotate_log()
154 std::string filename = file.str(); in cleanup_old_logfile()
158 std::string str; in cleanup_old_logfile() local
160 str = load_file(filename.c_str()); in cleanup_old_logfile()
164 throw ss.str(); in cleanup_old_logfile()
206 << filename << "\\": " << str; cleanup_old_logfile() local
215 << str; cleanup_old_logfile() local
315 is_timestamp_format_correct(std::string& str) is_timestamp_format_correct() argument
[all...]
/5.5.2/testrunner/pytests/clitest/
H A Dcli_base.py153 if str(self.__class__).find('couchbase_clitest.CouchbaseCliTest') == -1:
434 if max_rollbacks and str(settings["maxRollbackPoints"]) != str(
437 str(settings["maxRollbackPoints"]), str(max_rollbacks))
439 if stable_snap_interval and str(
440 settings["stableSnapshotInterval"]) != str(
443 str(settings["stableSnapshotInterval"]),
444 str(stable_snap_interval))
446 if mem_snap_interval and str(
[all...]
/5.5.2/ns_server/
H A Dcluster_run160 "rest_port", str(base_api_port + i),
161 "query_port", str(base_couch_port - 1 - i),
162 "ssl_query_port", str(10000 + base_couch_port - 1 - i),
163 "projector_port", str(base_projector_port + i),
164 "ssl_rest_port", str(10000 + base_api_port + i),
165 "capi_port", str(base_couch_port + i),
166 "ssl_capi_port", str(10000 + base_couch_port + i),
167 "memcached_port", str(base_direct_port + i * 2),
168 "moxi_port", str(base_direct_port + i * 2 + 1),
169 "memcached_dedicated_port", str(base_direct_por
[all...]
/5.5.2/kv_engine/engines/ep/src/
H A Dcommon.h69 inline bool parseUint32(const char *str, uint32_t *out) { in parseUint32() argument
71 if (out == nullptr || str == nullptr) { in parseUint32()
77 unsigned long l = strtoul(str, &endptr, 10); in parseUint32()
82 if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { in parseUint32()
87 if (strchr(str, '-') != NULL) { in parseUint32()
98 inline bool parseInt64(const char *str, int64_t *out) { in parseInt64() argument
106 int64_t ll = strtoll(str, &endptr, 10); in parseInt64()
111 if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { in parseInt64()
120 inline bool parseUint64(const char *str, uint64_t *out) { in parseUint64() argument
127 uint64_t ull = strtoull(str, in parseUint64()
[all...]
/5.5.2/testrunner/pytests/2i/
H A Dgsi_replica_indexes.py57 index_name_prefix = "random_index_" + str(
65 self.log.info(str(ex))
66 if self.expected_err_msg not in str(ex):
69 str(ex)))
89 index_name_prefix = "random_index_" + str(
97 self.log.info(str(ex))
98 if self.expected_err_msg not in str(ex):
101 str(ex)))
114 index_name_prefix = "random_index_" + str(
136 self.log.info(str(e
[all...]
/5.5.2/goproj/src/github.com/couchbase/indexing/secondary/common/
H A Drebalance_defs.go137 str := fmt.Sprintf(" MasterId: %v ", tt.MasterId)
138 str += fmt.Sprintf("SourceId: %v ", tt.SourceId)
139 str += fmt.Sprintf("DestId: %v ", tt.DestId)
140 str += fmt.Sprintf("RebalId: %v ", tt.RebalId)
141 str += fmt.Sprintf("State: %v ", tt.State)
142 str += fmt.Sprintf("BuildSource: %v ", tt.BuildSource)
143 str += fmt.Sprintf("TransferMode: %v ", tt.TransferMode)
145 str += fmt.Sprintf("Error: %v ", tt.Error)
147 str += fmt.Sprintf("InstId: %v ", tt.InstId)
148 str
[all...]
H A Dindex.go254 str := fmt.Sprintf("DefnId: %v ", idx.DefnId)
255 str += fmt.Sprintf("Name: %v ", idx.Name)
256 str += fmt.Sprintf("Using: %v ", idx.Using)
257 str += fmt.Sprintf("Bucket: %v ", idx.Bucket)
258 str += fmt.Sprintf("IsPrimary: %v ", idx.IsPrimary)
259 str += fmt.Sprintf("NumReplica: %v ", idx.NumReplica)
260 str += fmt.Sprintf("InstVersion: %v ", idx.InstVersion)
261 str += fmt.Sprintf("\n\t\tSecExprs: %v ", logging.TagUD(idx.SecExprs))
262 str += fmt.Sprintf("\n\t\tDesc: %v", idx.Desc)
263 str
[all...]
/5.5.2/moxi/src/
H A Dutil.c13 bool safe_strtoull(const char *str, uint64_t *out) { in safe_strtoull() argument
20 ull = strtoull(str, &endptr, 10); in safe_strtoull()
23 if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { in safe_strtoull()
28 if (strchr(str, '-') != NULL) { in safe_strtoull()
38 bool safe_strtoll(const char *str, int64_t *out) { in safe_strtoll() argument
45 ll = strtoll(str, &endptr, 10); in safe_strtoll()
48 if (isspace(*endptr) || (*endptr == '\0' && endptr != str)) { in safe_strtoll()
55 bool safe_strtoul(const char *str, uint32_t *out) { in safe_strtoul() argument
59 cb_assert(str); in safe_strtoul()
63 l = strtoul(str, in safe_strtoul()
84 safe_strtol(const char *str, int32_t *out) safe_strtol() argument
[all...]
/5.5.2/phosphor/src/utils/
H A Dstring_utils.cc94 std::string to_json(const std::string& str) { in to_json() argument
95 return "\"" + escape_json(str) + "\""; in to_json()
98 std::vector<std::string> split_string(const std::string& str, in split_string() argument
100 if (str == "") { in split_string()
104 std::stringstream ss(str); in split_string()
119 for(const auto& str : strs) { in join_string()
120 result += str + delim; in join_string()
126 std::string& string_replace(std::string& str, in string_replace() argument
130 return str; in string_replace()
132 size_t start_pos = str in string_replace()
[all...]
/5.5.2/couchstore/src/views/
H A Dcollate_json.cc160 const char* str; in createStringFromJSON() local
161 for (str = start; *str != '"'; ++str) { in createStringFromJSON()
162 if (*str == '\\') { in createStringFromJSON()
163 ++str; in createStringFromJSON()
164 if (*str == 'u') { in createStringFromJSON()
166 str += 4; in createStringFromJSON()
171 *in = str + 1; in createStringFromJSON()
172 *length = str in createStringFromJSON()
356 char* str; readNumber() local
[all...]
/5.5.2/testrunner/pysystests/app/
H A Dsetup.py12 function = function + ",default_bucket=" + str(cfg.CLUSTER['default_bucket'])
14 function = function + ",default_mem_quota=" + str(cfg.CLUSTER['default_mem_quota'])
16 function = function + ",sasl_buckets=" + str(cfg.CLUSTER['sasl_buckets'])
18 function = function + ",sasl_mem_quota=" + str(cfg.CLUSTER['sasl_mem_quota'])
20 function = function + ",standard_buckets=" + str(cfg.CLUSTER['standard_buckets'])
22 function = function + ",standard_mem_quota=" + str(cfg.CLUSTER['standard_mem_quota'])
24 function = function + ",initial_nodes=" + str(cfg.CLUSTER['initial_nodes'])
/5.5.2/couchdb/src/couch_view_parser/yajl/
H A Dyajl_encode.c34 const unsigned char * str, in yajl_string_encode()
49 const unsigned char chr = str[end]; in yajl_string_encode()
90 print(ctx, (const char *) (str + beg), end - beg); in yajl_string_encode()
97 print(ctx, (const char *) (str + beg), end - beg); in yajl_string_encode()
138 void yajl_string_decode(yajl_buf buf, const unsigned char * str, in yajl_string_decode() argument
145 if (str[end] == '\\') { in yajl_string_decode()
148 yajl_buf_append(buf, str + beg, end - beg); in yajl_string_decode()
149 switch (str[++end]) { in yajl_string_decode()
160 hexToDigit(&codepoint, str + ++end); in yajl_string_decode()
165 if (str[en in yajl_string_decode()
32 yajl_string_encode(const yajl_print_t print, void * ctx, const unsigned char * str, size_t len, int escape_solidus) yajl_string_encode() argument
[all...]
/5.5.2/godeps/src/github.com/couchbase/clog/
H A Dclog.go234 str := logCallBack("INFO", format, args...)
235 if str != "" {
236 logger.Print(str)
248 str := logCallBack("INFO", format, args...)
249 if str != "" {
250 logger.Print(str)
262 str := logCallBack("INFO", format, args...)
263 if str != "" {
264 logger.Print(str)
276 str
[all...]
/5.5.2/forestdb/tests/functional/
H A Dfunctional_util.cc20 void _set_random_string(char *str, int len) in _set_random_string() argument
22 str[len--] = 0; in _set_random_string()
24 str[len] = '!' + random('~'-'!'); in _set_random_string()
28 void _set_random_string_smallabt(char *str, int len) in _set_random_string_smallabt() argument
30 str[len--] = 0; in _set_random_string_smallabt()
32 str[len] = 'a' + random('z'-'a'); in _set_random_string_smallabt()
/5.5.2/couchbase-cli/requests/
H A Dcompat.py44 builtin_str = str
45 bytes = str
46 str = unicode variable
58 builtin_str = str
59 str = str variable
61 basestring = (str, bytes)
/5.5.2/goproj/src/github.com/couchbase/query/datastore/couchbase/
H A Dview_template.go8 var stringToUtf8Bytes = function (str) {
9 var utf8 = unescape(encodeURIComponent(str));
11 for (var i = 0; i < str.length; ++i) {
12 bytes.push(str.charCodeAt(i));
84 var stringToUtf8Bytes = function (str) {
85 var utf8 = unescape(encodeURIComponent(str));
87 for (var i = 0; i < str.length; ++i) {
88 bytes.push(str.charCodeAt(i));
/5.5.2/couchdb/src/couchdb/priv/couch_ejson_compare/
H A Dcouch_raw_json_compare.c205 const char* str; in createStringFromJSON() local
207 for (str = start; *str != '"'; ++str) { in createStringFromJSON()
208 if (*str == '\\') { in createStringFromJSON()
209 ++str; in createStringFromJSON()
210 if (*str == 'u') { in createStringFromJSON()
212 str += 4; in createStringFromJSON()
218 *in = str + 1; in createStringFromJSON()
219 *length = str in createStringFromJSON()
[all...]
/5.5.2/platform/tests/sized_buffer/
H A Dsized_buffer_test.cc179 std::string str = "Hello, World";
180 cb::const_char_buffer ccb = str;
181 cb::char_buffer cb = str;
182 EXPECT_EQ(str.data(), ccb.data());
183 EXPECT_EQ(str.size(), ccb.size());
184 EXPECT_EQ(str.data(), cb.data());
185 EXPECT_EQ(str.size(), cb.size());
189 std::string str = "Hello, World";
190 std::vector<char> vec(str.begin(), str
[all...]

Completed in 59 milliseconds

12345678910>>...26