Lines Matching defs:target
138 std::string percent_encode(const unsigned char *target, size_t len) {
141 unsigned char c = target[i];
154 std::string percent_encode(const std::string &target) {
155 return percent_encode(reinterpret_cast<const unsigned char *>(target.c_str()),
156 target.size());
194 const StringRef &target) {
195 auto iov = make_byte_ref(balloc, target.size() * 3 + 1);
196 auto p = percent_encode_token(iov.base, target);
203 size_t percent_encode_tokenlen(const StringRef &target) {
206 for (auto first = std::begin(target); first != std::end(target); ++first) {
234 StringRef quote_string(BlockAllocator &balloc, const StringRef &target) {
235 auto cnt = std::count(std::begin(target), std::end(target), '"');
238 return make_string_ref(balloc, target);
241 auto iov = make_byte_ref(balloc, target.size() + cnt + 1);
242 auto p = quote_string(iov.base, target);
249 size_t quote_stringlen(const StringRef &target) {
252 for (auto c : target) {