Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 58) sorted by relevance

123

/trafficserver/lib/yamlcpp/src/
H A Dscanscalar.cpp208 if (pos < lastEscapedChar || pos == std::string::npos) { in ScanScalar()
209 pos = lastEscapedChar; in ScanScalar()
212 if (pos < scalar.size()) { in ScanScalar()
213 scalar.erase(pos + 1); in ScanScalar()
221 if (pos < lastEscapedChar || pos == std::string::npos) { in ScanScalar()
222 pos = lastEscapedChar; in ScanScalar()
225 if (pos == std::string::npos) { in ScanScalar()
228 scalar.erase(pos + 2); in ScanScalar()
234 if (pos < lastEscapedChar || pos == std::string::npos) { in ScanScalar()
235 pos = lastEscapedChar; in ScanScalar()
[all …]
/trafficserver/iocore/net/quic/
H A DQUICFrame.cc33 #define LEFT_SPACE(pos) ((size_t)(buf + len - pos)) argument
34 #define FRAME_SIZE(pos) (pos - buf) argument
50 pos += field_len; in read_varint()
177 pos += 1; in parse()
206 pos += data_len; in parse()
419 if (!read_varint(pos, LEFT_SPACE(pos), data_len, field_len)) { in parse()
582 if (!read_varint(pos, LEFT_SPACE(pos), gap, field_len)) { in parse()
594 this->_ecn_section = new EcnSection(pos, LEFT_SPACE(pos)); in parse()
1304 read_varint(pos, LEFT_SPACE(pos), field, field_len); in parse()
1309 if (!read_varint(pos, LEFT_SPACE(pos), field, field_len)) { in parse()
[all …]
/trafficserver/plugins/experimental/cookie_remap/
H A Dcookie_remap.cc180 size_t pos = 0; in urlencode() local
181 for (; pos < str.length(); pos++) { in urlencode()
182 if (!isalnum(str[pos])) { in urlencode()
681 pos = sendto.find('$', pos + 1); in process()
924 size_t last_pos = pos; in cr_substitutions()
991 obj.replace(pos, tmp_pos - pos + 1, str); // +1 for the in cr_substitutions()
1001 if (last_pos == pos) { in cr_substitutions()
1004 last_pos = pos; in cr_substitutions()
1005 pos = obj.find('$', pos); in cr_substitutions()
1066 pos = rewrite_to.find("//", pos); in TSRemapDoRemap()
[all …]
/trafficserver/iocore/net/
H A DP_SSLSNI.h62 std::string::size_type pos = 0; in setGlobName() local
63 while ((pos = name.find('.', pos)) != std::string::npos) { in setGlobName()
64 name.replace(pos, 1, "\\."); in setGlobName()
65 pos += 2; in setGlobName()
67 pos = 0; in setGlobName()
68 while ((pos = name.find('*', pos)) != std::string::npos) { in setGlobName()
69 name.replace(pos, 1, ".{0,}"); in setGlobName()
H A DProxyProtocol.cc50 ts::TextView::size_type pos = tv.find('\n'); in ssl_has_proxy_v1() local
51 if (pos == tv.npos) { in ssl_has_proxy_v1()
61 *bytes_r -= pos + 1; in ssl_has_proxy_v1()
65 …64 " characters remaining in the buffer from %p to %p", *bytes_r, buffer + pos + 1, buffer); in ssl_has_proxy_v1()
66 memmove(buffer, buffer + pos + 1, *bytes_r); in ssl_has_proxy_v1()
89 ts::TextView::size_type pos = tv.find('\n'); in http_has_proxy_v1() local
90 if (pos == tv.npos) { // not found, it's not a proxy protocol header. in http_has_proxy_v1()
93 reader->consume(pos + 1); // clear out the header. in http_has_proxy_v1()
H A DP_SSLNetVConnection.h371 auto pos = destination.find(":"); in set_tunnel_destination() local
375 if (pos != std::string::npos) { in set_tunnel_destination()
376 tunnel_port = std::stoi(destination.substr(pos + 1).data()); in set_tunnel_destination()
377 tunnel_host = ats_strndup(destination.substr(0, pos).data(), pos); in set_tunnel_destination()
/trafficserver/example/plugins/cpp-api/websocket/
H A DWSBuffer.cc111 size_t pos; in read_buffered_message() local
117 pos = 4; in read_buffered_message()
123 pos = 10; in read_buffered_message()
125 pos = 2; in read_buffered_message()
129 if (ws_buf_.size() < pos + msg_len) { in read_buffered_message()
134 for (size_t i = 0; i < mask_len; ++i, ++pos) { in read_buffered_message()
135 mask[i] = ws_buf_[pos]; in read_buffered_message()
140 for (size_t i = 0, p = pos; i < msg_len && p < ws_buf_.size(); ++i, ++p) { in read_buffered_message()
148 message += ws_buf_.substr(pos, msg_len); in read_buffered_message()
151 msg_buf_ += ws_buf_.substr(pos, msg_len); in read_buffered_message()
[all …]
/trafficserver/lib/yamlcpp/include/yaml-cpp/
H A Dmark.h14 Mark() : pos(0), line(0), column(0) {} in Mark()
18 bool is_null() const { return pos == -1 && line == -1 && column == -1; } in is_null()
20 int pos; member
25 : pos(pos_), line(line_), column(column_) {} in Mark()
/trafficserver/iocore/cache/
H A DP_CacheArray.h42 pos = i - 1; in set_length()
51 int pos; member
57 : data(nullptr), default_val(val), size(0), pos(-1) in CacheArray()
114 if (idx > pos) { in operator ()()
115 pos = idx; in operator ()()
137 return pos + 1; in length()
152 pos = -1; in clear()
/trafficserver/include/tscore/
H A DHistory.h45 int pos = history_pos++ % Count; in push_back() local
46 history[pos].location = location; in push_back()
47 history[pos].event = (unsigned short)event; in push_back()
48 history[pos].reentrancy = (short)reentrant; in push_back()
/trafficserver/proxy/hdrs/
H A Dtest_Huffmancode.cc110 for (uint32_t pos = 32; pos > 0; pos--) { in values_test() local
113 encoded.x = encoded.x | (1 << (pos - 1)); in values_test()
117 encoded.x = encoded.x | (1 << (pos - 1)); in values_test()
/trafficserver/src/traffic_layout/
H A Dfile_system.cc74 int ret = 0, pos = 0, pos1 = 0; in create_directory() local
78 pos = s.find('/', pos1); in create_directory()
80 ret = mkdir(s.substr(0, pos).c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); in create_directory()
81 pos1 = pos + 1; in create_directory()
84 pos = s.find('/', pos1); in create_directory()
85 if (static_cast<size_t>(pos) == s.npos) { in create_directory() local
88 ret = mkdir(s.substr(0, pos).c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); in create_directory()
89 pos1 = pos + 1; in create_directory()
/trafficserver/plugins/experimental/access_control/
H A Dconfig.cc134 String::size_type pos; in load() local
149 pos = line.find_first_of('#'); in load()
150 if (pos != String::npos) { in load()
151 line.resize(pos); in load()
341 String::size_type pos; in loadMultiPatternsFromFile() local
346 pos = regex.find_first_of('#'); in loadMultiPatternsFromFile()
347 if (pos != String::npos) { in loadMultiPatternsFromFile()
348 regex.resize(pos); in loadMultiPatternsFromFile()
/trafficserver/tests/tools/plugins/
H A Dssl_client_verify_test.cc58 int pos = -1; in check_names() local
60 pos = X509_NAME_get_index_by_NID(subject, NID_commonName, pos); in check_names()
61 if (pos == -1) { in check_names()
65 X509_NAME_ENTRY *e = X509_NAME_get_entry(subject, pos); in check_names()
/trafficserver/plugins/header_rewrite/
H A Dfactory.cc84 std::string::size_type pos = cond.find_first_of(':'); in condition_factory() local
86 if (pos != std::string::npos) { in condition_factory()
87 c_name = cond.substr(0, pos); in condition_factory()
88 c_qual = cond.substr(pos + 1); in condition_factory()
/trafficserver/plugins/s3_auth/
H A Daws_auth_v4.cc121 for (size_t pos = 0; pos < in.length(); pos++) { in isUriEncoded() local
122 char c = in[pos]; in isUriEncoded()
141 if (pos + 2 < in.length() && std::isxdigit(in[pos + 1]) && std::isxdigit(in[pos + 2])) { in isUriEncoded()
321 String::size_type pos(token.find_first_of('=')); in getCanonicalRequestSha256Hash() local
322 String param(token.substr(0, pos == String::npos ? token.size() : pos)); in getCanonicalRequestSha256Hash()
323 String value(pos == String::npos ? "" : token.substr(pos + 1, token.size())); in getCanonicalRequestSha256Hash()
/trafficserver/plugins/lua/example/
H A Dtest_ret_403.lua28 pos, len = string.find(uri, '/css/')
29 if pos ~= nil then
/trafficserver/src/tscore/
H A Dmkdfa.c276 add_states(state_t *state, info_t *info, int pos) in add_states() argument
280 if (info->namelen == pos) { in add_states()
287 if (tolower(transitions->value) == tolower(info->name[pos])) { in add_states()
288 …if ((transitions->state->value && (info->namelen == (pos + 1))) || (info->namelen != (pos + 1))) { in add_states()
289 add_states(transitions->state, info, pos + 1); in add_states()
309 transitions->value = info->name[pos]; in add_states()
312 add_states(transitions->state, info, pos + 1); in add_states()
H A Dts_file.cc145 size_t pos = 0; in create_directories() local
147 while ((pos = p.string().find_first_of(p.preferred_separator, pos)) != std::string::npos) { in create_directories()
148 token = p.string().substr(0, pos); in create_directories()
152 pos = pos + sizeof(p.preferred_separator); in create_directories()
/trafficserver/plugins/cachekey/
H A Dconfigs.cc94 StringView::size_type pos = args.find_first_of(':'); in addCapture() local
95 if (StringView::npos != pos) { in addCapture()
96 String name(args.substr(0, pos)); in addCapture()
98 String pattern(args.substr(pos + 1)); in addCapture()
327 String::size_type pos; in loadClassifiers() local
332 pos = regex.find_first_of('#'); in loadClassifiers()
333 if (pos != String::npos) { in loadClassifiers()
334 regex.resize(pos); in loadClassifiers()
/trafficserver/plugins/experimental/mp4/
H A Dmp4_meta.cc1484 for (pos = 0; pos < avail; pos += sizeof(uint64_t)) { in mp4_adjust_co64_atom()
1505 for (pos = 0; pos < avail; pos += sizeof(uint32_t)) { in mp4_adjust_stco_atom()
1698 int pos; in mp4_reader_set_32value() local
1704 pos = 0; in mp4_reader_set_32value()
1719 pos++; in mp4_reader_set_32value()
1737 int pos; in mp4_reader_set_64value() local
1743 pos = 0; in mp4_reader_set_64value()
1776 int pos; in mp4_reader_get_32value() local
1783 pos = 0; in mp4_reader_get_32value()
1818 int pos; in mp4_reader_get_64value() local
[all …]
H A Dmp4_common.h60 …: total(0), tail(0), pos(0), content_length(0), meta_length(0), parse_over(false), raw_transform(f… in Mp4TransformContext()
90 int64_t pos; member in Mp4TransformContext
/trafficserver/proxy/http3/
H A DQPACK.cc862 const uint8_t *pos = header_block; in _decode_header() local
868 if ((ret = xpack_decode_integer(tmp, pos, pos + remain_len, 8)) < 0 && tmp > 0xFFFF) { in _decode_header()
871 pos += ret; in _decode_header()
876 …if ((ret = xpack_decode_integer(delta_base_index, pos, pos + remain_len, 7)) < 0 && delta_base_ind… in _decode_header()
880 if (pos[0] & 0x80) { in _decode_header()
888 pos += ret; in _decode_header()
896 if (pos[0] & 0x80) { // Index Header Field in _decode_header()
918 pos += ret; in _decode_header()
1248 *name_len = this->_entries[pos].name_len; in lookup()
1389 ++this->_entries[pos].ref_count; in ref_entry()
[all …]
/trafficserver/plugins/prefetch/
H A Dplugin.cc199 size_t pos = v.find_first_of(':'); in evaluate() local
200 if (String::npos != pos) { in evaluate()
201 stmt.assign(v.substr(0, pos)); in evaluate()
202 len = getValue(v.substr(pos + 1)); in evaluate()
209 pos = stmt.find_first_of("+-"); in evaluate()
211 if (String::npos == pos) { in evaluate()
214 unsigned a = getValue(stmt.substr(0, pos)); in evaluate()
215 unsigned b = getValue(stmt.substr(pos + 1)); in evaluate()
217 if ('+' == stmt[pos]) { in evaluate()
/trafficserver/src/traffic_cache_tool/
H A DCacheDefs.cc890 Bytes pos = _start; in loadMeta() local
893 Bytes limit = pos + _len / 16; in loadMeta()
906 _directory._start = pos; in loadMeta()
918 pos += round_up(SBSIZE); in loadMeta()
922 while (pos < limit) { in loadMeta()
925 n.assign(pread(fd, buff, N, pos)); in loadMeta()
941 pos += round_up(N); in loadMeta()
947 pos = _meta_pos[A][FOOT]; in loadMeta()
958 _meta_pos[B][HEAD] = round_down(pos); in loadMeta()
961 pos += delta; in loadMeta()
[all …]

Completed in 94 milliseconds

123