Lines Matching defs:srclen
79 size_t srclen = 0;
80 while(*src){ printf("%d %d %x\n",(int) srclen,*src,*src); srclen++; src++; }
96 size_t srclen = 0;
97 while(*src){ printf("%d %d %x\n",(int) srclen,*src,*src); srclen++; src++; }
112 size_t srclen = 0;
113 while(*src){ printf("%d %d %x\n",(int) srclen,*src,*src); srclen++; src++; }
130 size_t srclen = 0;
134 printf("%d %d %x\n",(int) srclen,val,val);
135 srclen++;
153 size_t srclen = 0;
155 while(*src){ srclen++; src++; }
157 return(srclen);
167 size_t srclen = 0;
169 while(*src){ srclen++; src++; }
171 return(srclen);
231 size_t srclen,dstlen,status;
234 if(max){ srclen = 4*max; }
235 else { srclen = 4 + 4*wchar32len(src); } //include terminator, length in BYTES
237 dstlen = 2 + srclen; // this will always work, but may waste space
246 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
274 size_t srclen,dstlen,status;
277 if(max){ srclen = 2*max; }
278 else { srclen = 2*wchar16len(src)+2; } // include terminator, length in BYTES
279 dstlen = 2*(2 + srclen); // This should always work
288 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
322 size_t srclen,dstlen,status;
325 if(max){ srclen = max; }
326 else { srclen = strlen(src)+1; } // include terminator, length in BYTES
327 dstlen = sizeof(uint32_t)*(1 + srclen); // This should always work but might waste some space
336 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
364 size_t srclen,dstlen,status;
367 if(max){ srclen = max; }
368 else { srclen = strlen(src)+1; } // include terminator, length in BYTES
369 dstlen = sizeof(uint32_t)*(1 + srclen); // This should always work but might waste some space
378 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
406 size_t srclen,dstlen,status;
409 if(max){ srclen = 4*max; }
410 else { srclen = 4*(1 + wchar32len(src)); } //include terminator, length in BYTES
411 dstlen = 1 + srclen; // This should always work but might waste some space
420 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
448 size_t srclen,dstlen,status;
451 if(max){ srclen = max; }
452 else { srclen = strlen(src)+1; } // include terminator, length in BYTES
453 dstlen = 2 * (1 + srclen); // this will always work, but may waste space
462 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
490 size_t srclen,dstlen,status;
493 if(max){ srclen = 2*max; }
494 else { srclen = 2*(1 +wchar16len(src)); } //include terminator, length in BYTES
495 dstlen = 1 + 2*srclen; // this will always work, but may waste space
505 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
536 size_t srclen,dstlen,status;
539 if(max){ srclen = 2*max; }
540 else { srclen = 2*(1 +wchar16len(src)); } //include terminator, length in BYTES
541 dstlen = 1 + srclen; // this will always work as latin1 is always 1 byte/character
550 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
602 size_t srclen,dstlen,status;
603 if(max){ srclen = max; }
604 else { srclen = strlen(src)+1; } // include terminator, length in BYTES
605 dstlen = (1 + srclen); // This should always work but might waste some space
614 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);
646 size_t srclen,dstlen,status;
647 if(max){ srclen = max; }
648 else { srclen = strlen(src)+1; } // include terminator, will waste some space
649 dstlen = (1 + 2*srclen); // This should always work because all latin1 convert to 1 or 2 byte UTF8, it might waste some space
658 status = iconv(conv, ICONV_CAST &src2, &srclen, &dst, &dstlen);