Searched defs:tolen (Results 1 - 17 of 17) sorted by relevance

/bind-9.11.3/contrib/idn/idnkit-1.0-src/wsock/common/
H A Dconvert.c133 idnConvReq(idn_resconf_t ctx, const char FAR *from, char FAR *to, size_t tolen) argument
142 if (strlen(from) >= tolen)
148 r = idn_res_encodename(ctx, IDN_ENCODE_APP, from, to, tolen);
164 idnConvRsp(idn_resconf_t ctx, const char FAR *from, char FAR *to, size_t tolen) argument
170 if (strlen(from) >= tolen)
175 from, to, tolen) == idn_success) {
/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/
H A Dapi.c139 idn_encodename(idn_action_t actions, const char *from, char *to, size_t tolen) { argument
151 r = idn_res_encodename(default_conf, actions, from, to, tolen);
164 idn_decodename(idn_action_t actions, const char *from, char *to, size_t tolen) { argument
169 TRACE(("idn_decodename(actions=%s, from=\"%s\", tolen=%d)\n",
171 idn__debug_xstring(from, 50), (int)tolen));
176 r = idn_res_decodename(default_conf, actions, from, to, tolen);
189 idn_decodename2(idn_action_t actions, const char *from, char *to, size_t tolen, argument
195 TRACE(("idn_decodename2(actions=%s, from=\"%s\", tolen=%d)\n",
197 idn__debug_xstring(from, 50), (int)tolen));
202 r = idn_res_decodename2(default_conf, actions, from, to, tolen,
226 mdn_encodename(int actions, const char *from, char *to, size_t tolen) argument
242 mdn_decodename(int actions, const char *from, char *to, size_t tolen) argument
[all...]
H A Ddelimitermap.c200 unsigned long *to, size_t tolen) {
217 TRACE(("idn_delimitermap_map(from=\"%s\", tolen=%d)\n",
218 idn__debug_ucs4xstring(from, 50), (int)tolen));
225 if (tolen < 1) {
249 tolen--;
252 if (tolen < 1) {
199 idn_delimitermap_map(idn_delimitermap_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
H A Dmapselector.c268 const char *tld, unsigned long *to, size_t tolen) {
276 TRACE(("idn_mapselector_map(from=\"%s\", tld=\"%s\", tolen=%d)\n",
278 (int)tolen));
312 if (fromlen + 1 > tolen) {
319 r = idn_mapper_map(mapper, from, to, tolen);
338 size_t tolen) {
356 r = idn_mapselector_map(ctx, from, tld_utf8, to, tolen);
267 idn_mapselector_map(idn_mapselector_t ctx, const unsigned long *from, const char *tld, unsigned long *to, size_t tolen) argument
336 idn_mapselector_map2(idn_mapselector_t ctx, const unsigned long *from, const unsigned long *tld, unsigned long *to, size_t tolen) argument
H A Dfilemapper.c138 unsigned long *to, size_t tolen)
165 if (tolen < ub.len) {
171 tolen -= ub.len;
184 if (tolen == 0)
345 unsigned long *to, size_t tolen) {
346 return idn__filemapper_map((idn__filemapper_t)ctx, from, to, tolen);
137 idn__filemapper_map(idn__filemapper_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
344 idn__filemapper_mapproc(void *ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
H A Dmapper.c341 unsigned long *to, size_t tolen) {
353 TRACE(("idn_mapper_map(from=\"%s\", tolen=%d)\n",
354 idn__debug_ucs4xstring(from, 50), (int)tolen));
357 if (tolen < idn_ucs4_strlen(from) + 1) {
381 dstlen = tolen;
340 idn_mapper_map(idn_mapper_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
H A Dnameprep.c139 unsigned long *to, size_t tolen) {
162 if (tolen < 1)
165 tolen--;
173 if (tolen < (mappedlen + 3) / 4)
175 tolen -= (mappedlen + 3) / 4;
195 if (tolen == 0)
337 unsigned long *to, size_t tolen) {
338 return idn_nameprep_map((idn_nameprep_t)handle, from, to, tolen);
138 idn_nameprep_map(idn_nameprep_t handle, const unsigned long *from, unsigned long *to, size_t tolen) argument
336 idn_nameprep_mapproc(void *handle, const unsigned long *from, unsigned long *to, size_t tolen) argument
H A Dnormalizer.c97 unsigned long *to, size_t tolen);
100 size_t tolen);
250 unsigned long *to, size_t tolen) {
262 TRACE(("idn_normalizer_normalize(from=\"%s\", tolen=%d)\n",
263 idn__debug_ucs4xstring(from, 50), (int)tolen));
266 if (tolen < idn_ucs4_strlen(from) + 1) {
291 dstlen = tolen;
425 normalizer_formkc(const unsigned long *from, unsigned long *to, size_t tolen) { argument
427 return (idn__unormalize_formkc(vcur, from, to, tolen));
436 size_t tolen) {
249 idn_normalizer_normalize(idn_normalizer_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
435 normalizer_formkc_v320(const unsigned long *from, unsigned long *to, size_t tolen) argument
[all...]
H A Dpunycode.c108 const char *from, unsigned long *to, size_t tolen) {
119 TRACE(("idn__punycode_decode(from=\"%s\", tolen=%d)\n",
120 idn__debug_xstring(from, 50), (int)tolen));
124 r = idn_ucs4_utf8toucs4(from, to, tolen);
140 if (tolen < fidx) {
175 if (tolen-- <= 0) {
188 if (tolen <= 0) {
207 const unsigned long *from, char *to, size_t tolen) {
219 TRACE(("idn__punycode_encode(from=\"%s\", tolen=%d)\n",
220 idn__debug_ucs4xstring(from, 50), (int)tolen));
107 idn__punycode_decode(idn_converter_t ctx, void *privdata, const char *from, unsigned long *to, size_t tolen) argument
206 idn__punycode_encode(idn_converter_t ctx, void *privdata, const unsigned long *from, char *to, size_t tolen) argument
[all...]
H A Drace.c99 char *to, size_t tolen);
104 const char *from, unsigned long *to, size_t tolen) {
113 TRACE(("idn__race_decode(from=\"%s\", tolen=%d)\n",
114 idn__debug_xstring(from, 50), (int)tolen));
118 r = idn_ucs4_utf8toucs4(from, to, tolen);
152 r = idn_ucs4_utf16toucs4(buf, to, tolen);
243 const unsigned long *from, char *to, size_t tolen) {
254 TRACE(("idn__race_encode(from=\"%s\", tolen=%d)\n",
255 idn__debug_ucs4xstring(from, 50), (int)tolen));
258 r = idn_ucs4_ucs4toutf8(from, to, tolen);
103 idn__race_decode(idn_converter_t ctx, void *privdata, const char *from, unsigned long *to, size_t tolen) argument
242 idn__race_encode(idn_converter_t ctx, void *privdata, const unsigned long *from, char *to, size_t tolen) argument
333 race_compress_encode(const unsigned short *p, int compress_mode, char *to, size_t tolen) argument
[all...]
H A Ducs4.c84 size_t tolen) {
89 TRACE(("idn_ucs4_ucs4toutf16(ucs4=\"%s\", tolen=%d)\n",
90 idn__debug_ucs4xstring(ucs4, 50), (int)tolen));
106 if (tolen < 2) {
112 tolen -= 2;
114 if (tolen < 1) {
119 tolen--;
123 if (tolen < 1) {
143 size_t tolen) {
148 TRACE(("idn_ucs4_utf16toucs4(utf16=\"%s\", tolen
83 idn_ucs4_ucs4toutf16(const unsigned long *ucs4, unsigned short *utf16, size_t tolen) argument
142 idn_ucs4_utf16toucs4(const unsigned short *utf16, unsigned long *ucs4, size_t tolen) argument
198 idn_ucs4_utf8toucs4(const char *utf8, unsigned long *ucs4, size_t tolen) argument
295 idn_ucs4_ucs4toutf8(const unsigned long *ucs4, char *utf8, size_t tolen) argument
[all...]
H A Ducsmap.c267 size_t tolen, size_t *maplenp) {
300 if (tolen < e[mid].len)
313 if (tolen < 1)
266 idn_ucsmap_map(idn_ucsmap_t ctx, unsigned long v, unsigned long *to, size_t tolen, size_t *maplenp) argument
H A Dunormalize.c83 unsigned long *to, size_t tolen);
100 size_t tolen) {
101 assert(version != NULL && from != NULL && to != NULL && tolen >= 0);
102 TRACE(("idn__unormalize_formkc(from=\"%s\", tolen=%d)\n",
103 idn__debug_ucs4xstring(from, 50), tolen));
104 return (normalize(version, 1, 1, from, to, tolen));
109 const unsigned long *from, unsigned long *to, size_t tolen) {
174 r = flush_before_cur(&wb, &to, &tolen);
199 r = flush_before_cur(&wb, &to, &tolen);
204 if (tolen <
98 idn__unormalize_formkc(idn__unicode_version_t version, const unsigned long *from, unsigned long *to, size_t tolen) argument
108 normalize(idn__unicode_version_t version, int do_composition, int compat, const unsigned long *from, unsigned long *to, size_t tolen) argument
[all...]
H A Dconverter.c136 char *to, size_t tolen);
140 unsigned long *to, size_t tolen);
153 char *to, size_t tolen);
158 unsigned long *to, size_t tolen);
175 char *to, size_t tolen);
181 size_t tolen);
421 char *to, size_t tolen) {
426 TRACE(("idn_converter_convfromucs4(ctx=%s, from=\"%s\", tolen=%d)\n",
428 (int)tolen));
437 r = (*ctx->ops->convfromucs4)(ctx, ctx->private_data, from, to, tolen);
420 idn_converter_convfromucs4(idn_converter_t ctx, const unsigned long *from, char *to, size_t tolen) argument
459 idn_converter_convtoucs4(idn_converter_t ctx, const char *from, unsigned long *to, size_t tolen) argument
777 converter_none_convfromucs4(idn_converter_t ctx, void *privdata, const unsigned long *from, char *to, size_t tolen) argument
785 converter_none_convtoucs4(idn_converter_t ctx, void *privdata, const char *from, unsigned long *to, size_t tolen) argument
897 converter_iconv_convfromucs4(idn_converter_t ctx, void *privdata, const unsigned long *from, char *to, size_t tolen) argument
1015 converter_iconv_convtoucs4(idn_converter_t ctx, void *privdata, const char *from, unsigned long *to, size_t tolen) argument
1108 converter_uescape_convfromucs4(idn_converter_t ctx, void *privdata, const unsigned long *from, char *to, size_t tolen) argument
1160 converter_uescape_convtoucs4(idn_converter_t ctx, void *privdata, const char *from, unsigned long *to, size_t tolen) argument
[all...]
H A Dres.c114 size_t tolen);
185 char *to, size_t tolen) {
198 TRACE(("idn_res_encodename(actions=%s, from=\"%s\", tolen=%d)\n",
200 idn__debug_xstring(from, 50), (int)tolen));
212 r = copy_verbatim(from, to, tolen);
214 } else if (tolen <= 0) {
249 buffer_length = tolen * 2;
276 if (tolen <= 0) {
427 tolen);
429 r = idn_ucs4_ucs4toutf8(buffer, to, tolen);
184 idn_res_encodename(idn_resconf_t ctx, idn_action_t actions, const char *from, char *to, size_t tolen) argument
450 idn_res_decodename(idn_resconf_t ctx, idn_action_t actions, const char *from, char *to, size_t tolen) argument
710 idn_res_decodename2(idn_resconf_t ctx, idn_action_t actions, const char *from, char *to, size_t tolen, const char *auxencoding) argument
849 copy_verbatim(const char *from, char *to, size_t tolen) argument
[all...]
/bind-9.11.3/contrib/idn/idnkit-1.0-src/tools/idnconv/
H A Dutil.c70 char *from, char *to, int tolen)
87 if (tolen <= strlen(from))
103 if (tolen < len) {
110 tolen -= len;
121 r = idn_res_encodename(conf, actions, region_start, to, tolen);
133 tolen -= len;
141 char *from, char *to, int tolen)
206 if (tolen < len)
210 tolen -= len;
221 domain_name, to, tolen);
69 selective_encode(idn_resconf_t conf, idn_action_t actions, char *from, char *to, int tolen) argument
140 selective_decode(idn_resconf_t conf, idn_action_t actions, char *from, char *to, int tolen) argument
[all...]
/bind-9.11.3/bin/dig/
H A Ddighost.c4658 size_t fromlen, tolen; local
4689 tolen = strlen(tmp1);
4690 if (absolute && !end_with_dot && tmp1[tolen - 1] == '.')
4691 tolen--;
4693 if (isc_buffer_length(buffer) < used_org + tolen)
4697 memmove(isc_buffer_used(buffer), tmp1, tolen); local
4698 isc_buffer_add(buffer, (unsigned int)tolen);

Completed in 44 milliseconds