14#include "arcane/utils/ArcanePrecomp.h"
16#include "arcane/utils/ISO88591Transcoder.h"
17#include "arcane/utils/Iostream.h"
36void ISO88591Transcoder::
47 const Byte* src_current = src;
48 const Byte* src_end = src + src_len;
49 while (src_current < src_end)
50 *out++ = *src_current++;
59 const UChar* src_current = src;
60 const UChar* src_end = src + src_len;
61 bool has_error =
false;
62 while (src_current < src_end) {
63 if (*src_current < 256) {
64 *out++ =
Byte(*src_current);
74 cerr <<
"ARCANE: Bad transcoding from UTF16 to ISO88591\n";
virtual void transcodeFromUtf16(const UChar *src, Integer src_len, Byte *out)
Translates the source src of length src_len from the UTF-16 format.
virtual void transcodeToUtf16(const Byte *src, Integer src_len, UChar *out)
Translates the source src of length src_len to the UTF-16 format.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
unsigned char Byte
Type of a byte.
unsigned short UChar
Type of a unicode character.