for (i = 0; i < len; i++)
{
- charsets[XCHARSET_ID (str[i].charset) - MIN_LEADING_BYTE] = 1;
+ charsets[CHARC_CHARSET_ID (str[i]) - MIN_LEADING_BYTE] = 1;
}
#endif
}
int i;
for (i = 0; i < len; i++)
- cols += CHARSET_COLUMNS (XCHARSET (str[i].charset));
+ cols += CHARC_COLUMNS (str[i]);
return cols;
#else /* not MULE */
while (str < strend)
{
- Charc ec;
-
- ec.code_point = ENCODE_CHAR (charptr_emchar (str), ec.charset);
- Dynarr_add (dyn, ec);
+ Dynarr_add (dyn, CHAR_TO_CHARC (charptr_emchar (str)));
INC_CHARPTR (str);
}
}
for (i = 0; i < nels; i++)
{
- Charc ec = arr[i];
-
- Bytecount len
- = set_charptr_emchar (str, DECODE_CHAR (ec.charset, ec.code_point));
+ Bytecount len = set_charptr_emchar (str, CHARC_TO_CHAR (arr[i]));
Dynarr_add_many (dyn, str, len);
}
}
for (i = 0; i < nels; i++)
{
- Charc ec = arr[i];
-
- str += set_charptr_emchar (str,
- DECODE_CHAR (ec.charset, ec.code_point));
+ str += set_charptr_emchar (str, CHARC_TO_CHAR (arr[i]));
}
*str = '\0';
len = str - strorig;