Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ITranscoder.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/* ITranscoder.h (C) 2000-2005 */
9/* */
10/* Interface of a converter to/from the UTF-16 format. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_ITRANSCODER_H
13#define ARCANE_UTILS_ITRANSCODER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
33{
34 public:
35
36 virtual ~ITranscoder() {} //<! Releases resources
37
38 public:
39
40 virtual void build() = 0;
41
42 public:
43
49 virtual void transcodeToUtf16(const Byte* src, Integer src_len, UChar* out) = 0;
50
56 virtual void transcodeFromUtf16(const UChar* src, Integer src_len, Byte* out) = 0;
57};
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62} // namespace Arcane
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67#endif
Declarations of types used in Arcane.
Interface of a converter to/from the UTF-16 format.
Definition ITranscoder.h:33
virtual void transcodeFromUtf16(const UChar *src, Integer src_len, Byte *out)=0
Translates the source src of length src_len from the UTF-16 format.
virtual void transcodeToUtf16(const Byte *src, Integer src_len, UChar *out)=0
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