pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:2250:    *! Accept and decode the extension used by @[string_to_utf8()].    *! @value 2    *! Accept and decode UTF-8 encoded UTF-16 (ie accept and    *! decode valid surrogates).    *! @endint    *!    *! @note    *! Throws an error if the stream is not a legal UTF-8 byte-stream.    *!    *! @note -  *! In conformance with RFC 3629 and Unicode 3.1 and later, +  *! In conformance with @rfc{3629@} and Unicode 3.1 and later,    *! non-shortest forms are not decoded. An error is thrown instead.    *!    *! @seealso    *! @[Charset.encoder()], @[string_to_unicode()], @[string_to_utf8()],    *! @[unicode_to_string()]    */   PMOD_EXPORT void f_utf8_to_string(INT32 args)   {    struct pike_string *in;    struct pike_string *out;