Lines Matching defs:source

4  *  Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
8 * be found in the AUTHORS file in the root of the source tree.
29 // Decode the utf8 encoded value pointed to by source. Returns the number of
31 size_t utf8_decode(const char* source, size_t srclen, unsigned long* value);
36 const char * source, size_t srclen,
38 // Note: in-place unescaping (buffer == source) is allowed.
40 const char * source, size_t srclen,
48 const char * source, size_t srclen,
50 // Note: in-place decoding (buffer == source) is allowed.
52 const char * source, size_t srclen,
62 const char * source, size_t srclen);
63 // Note: in-place decoding (buffer == source) is allowed.
65 const char * source, size_t srclen);
69 const char * source, size_t srclen);
70 // Note: in-place decoding (buffer == source) is allowed.
72 const char * source, size_t srclen);
76 const char * source, size_t srclen);
77 // Note: in-place decoding (buffer == source) is allowed.
79 const char * source, size_t srclen);
88 const char* source, size_t srclen);
94 const char* source, size_t srclen,
99 std::string hex_encode(const char* source, size_t srclen);
100 std::string hex_encode_with_delimiter(const char* source, size_t srclen,
105 const char* source, size_t srclen);
112 const char* source, size_t srclen,
116 size_t hex_decode(char* buffer, size_t buflen, const std::string& source);
118 const std::string& source, char delimiter);
122 // so value and source may refer to the same string.
124 const char * source, size_t srclen);
125 size_t transform(std::string& value, size_t maxlen, const std::string& source,
128 // Return the result of applying transform t to source.
129 std::string s_transform(const std::string& source, Transform t);
132 inline std::string s_url_encode(const std::string& source) {
133 return s_transform(source, url_encode);
135 inline std::string s_url_decode(const std::string& source) {
136 return s_transform(source, url_decode);
139 // Splits the source string into multiple fields separated by delimiter,
141 size_t split(const std::string& source, char delimiter,
144 // Splits the source string into multiple fields separated by delimiter,
146 size_t tokenize(const std::string& source, char delimiter,
150 size_t tokenize_with_empty_tokens(const std::string& source,
155 size_t tokenize_append(const std::string& source, char delimiter,
158 // Splits the source string into multiple fields separated by delimiter, with
161 // the size of fields. For example, if source is "filename
165 size_t tokenize(const std::string& source, char delimiter, char start_mark,
168 // Extract the first token from source as separated by delimiter, with
171 bool tokenize_first(const std::string& source,