Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 2412:cad393b41bc3
handy shortcuts in DicomMap
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Sep 2017 11:35:45 +0200 |
parents | 68380777f9a6 |
children | 330349d712f9 |
comparison
equal
deleted
inserted
replaced
2411:82d5e305fbd9 | 2412:cad393b41bc3 |
---|---|
395 } | 395 } |
396 | 396 |
397 #endif | 397 #endif |
398 | 398 |
399 | 399 |
400 #if ORTHANC_ENABLE_LOCALE == 1 | |
400 static const char* GetBoostLocaleEncoding(const Encoding sourceEncoding) | 401 static const char* GetBoostLocaleEncoding(const Encoding sourceEncoding) |
401 { | 402 { |
402 switch (sourceEncoding) | 403 switch (sourceEncoding) |
403 { | 404 { |
404 case Encoding_Utf8: | 405 case Encoding_Utf8: |
461 | 462 |
462 default: | 463 default: |
463 throw OrthancException(ErrorCode_NotImplemented); | 464 throw OrthancException(ErrorCode_NotImplemented); |
464 } | 465 } |
465 } | 466 } |
467 #endif | |
466 | 468 |
467 | 469 |
468 #if ORTHANC_ENABLE_LOCALE == 1 | 470 #if ORTHANC_ENABLE_LOCALE == 1 |
469 std::string Toolbox::ConvertToUtf8(const std::string& source, | 471 std::string Toolbox::ConvertToUtf8(const std::string& source, |
470 Encoding sourceEncoding) | 472 Encoding sourceEncoding) |