• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/unicode/

Lines Matching refs:to

20   along with this program; if not, write to the Free Software
61 * need i18n filenames to be compatible with Unix software. It does
62 * have to be a superset of ASCII. All multibyte sequences must start
104 * Return the name of a charset to give to iconv().
213 /* First try to setup the required conversions */
217 LOG(log_error, logtype_default, "Required conversion from %s to %s not supported",
225 LOG(log_error, logtype_default, "Required conversion from %s to %s not supported",
259 LOG(log_error, logtype_default, "Required conversion from %s to %s not supported",
267 LOG(log_error, logtype_default, "Required conversion from %s to %s not supported",
280 static size_t add_null(charset_t to, char *buf, size_t bytesleft, size_t len)
283 if (to == CH_UCS2 && bytesleft >= 2) {
288 else if ( to != CH_UCS2 && bytesleft > 0 )
300 * Convert string from one encoding to another, making error checking etc
302 * @param src pointer to source string (multibyte or singlebyte)
304 * @param dest pointer to destination string (multibyte or singlebyte)
308 static size_t convert_string_internal(charset_t from, charset_t to,
331 descriptor = conv_handles[from][to];
358 return add_null( to, o_save, o_len, destlen -o_len);
362 size_t convert_string(charset_t from, charset_t to,
371 /* convert from_set to UCS2 */
374 LOG(log_error, logtype_default, "Conversion failed ( %s to CH_UCS2 )", charset_name(from));
381 if (charsets[to] && (charsets[to]->flags & CHARSET_DECOMPOSED) ) {
393 /* Convert UCS2 to to_set */
394 if ((size_t)(-1) == ( o_len = convert_string_internal( CH_UCS2, to, (char*) u, i_len, dest, destlen)) ) {
395 LOG(log_error, logtype_default, "Conversion failed (CH_UCS2 to %s):%s", charset_name(to), strerror(errno));
408 * @param dest always set at least to NULL
414 static size_t convert_string_allocate_internal(charset_t from, charset_t to,
430 descriptor = conv_handles[from][to];
449 inbuf = src; /* this restarts the whole conversion if buffer needed to be increased */
476 if (to == CH_UCS2 && o_len >= 2) {
481 else if ( to != CH_UCS2 && o_len > 0 ) {
499 size_t convert_string_allocate(charset_t from, charset_t to,
510 /* convert from_set to UCS2 */
513 LOG(log_error, logtype_default, "Conversion failed ( %s to CH_UCS2 )", charset_name(from));
520 if (charsets[to] && (charsets[to]->flags & CHARSET_DECOMPOSED) ) {
533 /* Convert UCS2 to to_set */
534 if ((size_t)-1 == ( o_len = convert_string_allocate_internal( CH_UCS2, to, (char*)u, i_len, dest)) )
535 LOG(log_error, logtype_default, "Conversion failed (CH_UCS2 to %s):%s", charset_name(to), strerror(errno));
605 * Copy a string from a charset_t char* src to a UCS2 destination, allocating a buffer
607 * @param dest always set at least to NULL
622 * Copy a string from a charset_t char* src to a UTF-8 destination, allocating a buffer
624 * @param dest always set at least to NULL
638 * Copy a string from a UCS2 src to a unix char * destination, allocating a buffer
640 * @param dest always set at least to NULL
660 * Copy a string from a UTF-8 src to a unix char * destination, allocating a buffer
662 * @param dest always set at least to NULL
760 * Convert from MB to UCS2 charset
762 * CONV_UNESCAPEHEX: ':XX' will be converted to an UCS2 character
767 * The (un)escape scheme is not compatible to the old cap style escape. This is bad, we need it
868 * Convert from UCS2 to MB charset
871 * CONV_ESCAPEHEX: unconvertable characters and '/' will be escaped to :XX
878 * The escape scheme is not compatible to the old cap style escape. This is bad, we need it
1041 /* convert from_set to UCS2 */
1044 LOG(log_error, logtype_default, "Conversion failed ( %s to CH_UCS2 )", charset_name(from_set));
1078 /* Convert UCS2 to to_set */
1081 "Conversion failed (CH_UCS2 to %s):%s", charset_name(to_set), strerror(errno));