2 * Sherlock Library -- Character Conversion with Allocation on the Stack
4 * (c) 2006 Pavel Charvat <pchar@ucw.cz>
8 #include "charset/stk-charconv.h"
12 stk_conv_internal(struct conv_context *c, byte *s, uns in_cs, uns out_cs)
14 /* We do not allocate anything for identical charsets. */
24 conv_set_charset(c, in_cs, out_cs);
26 c->source_end = s + l + 1;
28 /* Resulting string can be longer after the conversion.
29 * The following constant must be at least 3 for conversion to UTF-8
30 * and at least the maximum length of the strings in string_table for other charsets. */