comparison Orthanc/Core/Toolbox.cpp @ 172:330ecfd96aec

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Oct 2017 12:53:46 +0200
parents 38aa615b7667
children dd1ad819ca33
comparison
equal deleted inserted replaced
171:b6c55352818c 172:330ecfd96aec
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)