MeVisLab Toolbox Reference
DCMTree_Unicode Namespace Reference

Functions

DCMTREE_EXPORT const std::string & defaultCharacterSet ()
 Returns the specific character set for the DICOM default. More...
 
DCMTREE_EXPORT const std::string & UTF8CharacterSet ()
 Returns the specific character set for UTf3 encoding. More...
 
DCMTREE_EXPORT const std::string & isoLatin1CharacterSet ()
 Returns the specific character set for iso-Latin1. More...
 
DCMTREE_EXPORT std::string toDefault (const std::string &characterset, const std::string &toconvert)
 Converts toconvert from the given character set to the default character set. More...
 
DCMTREE_EXPORT std::string toLatin1 (const std::string &characterset, const std::string &toconvert)
 Converts toconvert from the given character set to the Latin1 character set. More...
 
DCMTREE_EXPORT std::string UTF8toLatin1 (const std::string &toconvert)
 Converts toconvert from the UTF-8 character set to the Latin1 character set. More...
 
DCMTREE_EXPORT std::string toUTF8 (const std::string &characterset, const std::string &toconvert)
 Converts toconvert from the given character set to UTF-8. More...
 
DCMTREE_EXPORT std::string defaultToUTF8 (const std::string &toconvert)
 Converts toconvert from the default character set to UTF-8. More...
 
DCMTREE_EXPORT std::string latin1ToUTF8 (const std::string &toconvert)
 Converts toconvert from latin1 to UTF-8. More...
 
DCMTREE_EXPORT bool convertCharacterSet (const std::string &originalcharacterset, const std::string &newcharacterset, std::string &val)
 Converts val from the original character set to the new character set. More...
 

Function Documentation

◆ convertCharacterSet()

DCMTREE_EXPORT bool DCMTree_Unicode::convertCharacterSet ( const std::string &  originalcharacterset,
const std::string &  newcharacterset,
std::string &  val 
)

Converts val from the original character set to the new character set.

Returns true if val has been changed.

◆ defaultCharacterSet()

DCMTREE_EXPORT const std::string& DCMTree_Unicode::defaultCharacterSet ( )

Returns the specific character set for the DICOM default.

◆ defaultToUTF8()

DCMTREE_EXPORT std::string DCMTree_Unicode::defaultToUTF8 ( const std::string &  toconvert)

Converts toconvert from the default character set to UTF-8.

◆ isoLatin1CharacterSet()

DCMTREE_EXPORT const std::string& DCMTree_Unicode::isoLatin1CharacterSet ( )

Returns the specific character set for iso-Latin1.

◆ latin1ToUTF8()

DCMTREE_EXPORT std::string DCMTree_Unicode::latin1ToUTF8 ( const std::string &  toconvert)

Converts toconvert from latin1 to UTF-8.

◆ toDefault()

DCMTREE_EXPORT std::string DCMTree_Unicode::toDefault ( const std::string &  characterset,
const std::string &  toconvert 
)

Converts toconvert from the given character set to the default character set.

◆ toLatin1()

DCMTREE_EXPORT std::string DCMTree_Unicode::toLatin1 ( const std::string &  characterset,
const std::string &  toconvert 
)

Converts toconvert from the given character set to the Latin1 character set.

◆ toUTF8()

DCMTREE_EXPORT std::string DCMTree_Unicode::toUTF8 ( const std::string &  characterset,
const std::string &  toconvert 
)

Converts toconvert from the given character set to UTF-8.

◆ UTF8CharacterSet()

DCMTREE_EXPORT const std::string& DCMTree_Unicode::UTF8CharacterSet ( )

Returns the specific character set for UTf3 encoding.

◆ UTF8toLatin1()

DCMTREE_EXPORT std::string DCMTree_Unicode::UTF8toLatin1 ( const std::string &  toconvert)

Converts toconvert from the UTF-8 character set to the Latin1 character set.