MeVisLab Toolbox Reference
DCMTree_Unicode.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef DCM_TREE_UNICODE_H
14#define DCM_TREE_UNICODE_H
15
16#include "DCMTree_Defines.h"
17
18#ifdef _MSC_VER
19 #pragma warning (push)
20 #pragma warning (disable : 4350)
21#endif
22
23#include <string>
24
25#ifdef _MSC_VER
26 #pragma warning (pop)
27#endif
28
29
31{
35 DCMTREE_EXPORT const std::string &defaultCharacterSet();
36
40 DCMTREE_EXPORT const std::string &UTF8CharacterSet();
41
46
50 DCMTREE_EXPORT std::string toDefault (const std::string &characterset,const std::string &toconvert);
51
55 DCMTREE_EXPORT std::string toLatin1 (const std::string &characterset,const std::string &toconvert);
56
60 DCMTREE_EXPORT std::string UTF8toLatin1 (const std::string &toconvert);
61
65 DCMTREE_EXPORT std::string toUTF8 (const std::string &characterset,const std::string &toconvert);
66
70 DCMTREE_EXPORT std::string defaultToUTF8 (const std::string &toconvert);
71
75 DCMTREE_EXPORT std::string latin1ToUTF8 (const std::string &toconvert);
76
81 DCMTREE_EXPORT bool convertCharacterSet (const std::string &originalcharacterset,const std::string &newcharacterset,std::string &val);
82}
83
84#endif
85
86
#define DCMTREE_EXPORT
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
DCMTREE_EXPORT const std::string & defaultCharacterSet()
get the specific character set for the DICOM default
DCMTREE_EXPORT std::string toLatin1(const std::string &characterset, const std::string &toconvert)
convert toconvert from the given character set to the latin1 character set
DCMTREE_EXPORT bool convertCharacterSet(const std::string &originalcharacterset, const std::string &newcharacterset, std::string &val)
convert val from the original character set to the new character set returns true if val has been cha...
DCMTREE_EXPORT std::string toDefault(const std::string &characterset, const std::string &toconvert)
convert toconvert from the given character set to the default character set
DCMTREE_EXPORT const std::string & isoLatin1CharacterSet()
get the specific character set for iso-Latin1
DCMTREE_EXPORT std::string toUTF8(const std::string &characterset, const std::string &toconvert)
convert toconvert from the given character set to UTF8
DCMTREE_EXPORT std::string latin1ToUTF8(const std::string &toconvert)
convert toconvert from latin1 to UTF8
DCMTREE_EXPORT std::string UTF8toLatin1(const std::string &toconvert)
convert toconvert from the UTF8 character set to the latin1 character set
DCMTREE_EXPORT const std::string & UTF8CharacterSet()
get the specific character set for UTf3 encoding
DCMTREE_EXPORT std::string defaultToUTF8(const std::string &toconvert)
convert toconvert from the default character set to UTF8