Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ISO88591Transcoder.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ISO88591Transcoder.h (C) 2000-2005 */
9/* */
10/* ISO-8859-1 Transcoder from/to UTF-16. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_ISO88591TRANSCODER_H
13#define ARCANE_UTILS_ISO88591TRANSCODER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/ITranscoder.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \internal
30 * \brief ISO-8859-1 Transcoder from/to UTF-16.
31 */
33: public ITranscoder
34{
35 public:
36
37 virtual ~ISO88591Transcoder();
38
39 public:
40
41 virtual void build();
42
43 public:
44
45 virtual void transcodeToUtf16(const Byte* src, Integer src_len, UChar* out);
46 virtual void transcodeFromUtf16(const UChar* src, Integer src_len, Byte* out);
47};
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
51
52} // namespace Arcane
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57#endif
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.
Definition BaseTypes.h:43
unsigned short UChar
Type of a unicode character.
Definition BaseTypes.h:47