view Resources/EncodingTests.h @ 1261:ef74281b2ffa

deploy
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Jan 2015 15:45:20 +0100
parents a66224eec125
children 60cc0ee61edb
line wrap: on
line source

static const unsigned int testEncodingsCount = 14;
static const ::Orthanc::Encoding testEncodings[] = {
  ::Orthanc::Encoding_Latin5,
  ::Orthanc::Encoding_Hebrew,
  ::Orthanc::Encoding_Greek,
  ::Orthanc::Encoding_Arabic,
  ::Orthanc::Encoding_Cyrillic,
  ::Orthanc::Encoding_Latin4,
  ::Orthanc::Encoding_Latin3,
  ::Orthanc::Encoding_Latin2,
  ::Orthanc::Encoding_Latin1,
  ::Orthanc::Encoding_Utf8,
  ::Orthanc::Encoding_Thai,
  ::Orthanc::Encoding_Japanese,
  ::Orthanc::Encoding_Ascii,
  ::Orthanc::Encoding_Chinese
};
static const char *testEncodingsEncoded[14] = {
  "\x54\x65\x73\x74\xe9\xe4\xf6\xf2\xdd",
  "\x54\x65\x73\x74\xe3",
  "\x54\x65\x73\x74\xc8",
  "\x54\x65\x73\x74\xd5",
  "\x54\x65\x73\x74\xb4\xfb",
  "\x54\x65\x73\x74\xe9\xe4\xf6\xf3",
  "\x54\x65\x73\x74\xe9\xe4\xf6\xf2\xf8\xa9",
  "\x54\x65\x73\x74\xe9\xe4\xf6",
  "\x54\x65\x73\x74\xe9\xe4\xf6\xf2",
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xd0\x94\xce\x98\xc4\x9d\xd7\x93\xd8\xb5\xc4\xb7\xd1\x9b\xe0\xb9\x9b\xef\xbe\x88\xc4\xb0",
  "\x54\x65\x73\x74\xfb",
  "\x54\x65\x73\x74\x84\x44\x83\xa6\xc8",
  "\x54\x65\x73\x74",
  "\x81\x30\x89\x37\x81\x30\x89\x38\xA8\xA4\xA8\xA2\x81\x30\x89\x39\x81\x30\x8A\x30"
};
static const char *testEncodingsExpected[14] = {
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xc4\xb0",
  "\x54\x65\x73\x74\xd7\x93",
  "\x54\x65\x73\x74\xce\x98",
  "\x54\x65\x73\x74\xd8\xb5",
  "\x54\x65\x73\x74\xd0\x94\xd1\x9b",
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc4\xb7",
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xc4\x9d\xc4\xb0",
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6",
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2",
  "\x54\x65\x73\x74\xc3\xa9\xc3\xa4\xc3\xb6\xc3\xb2\xd0\x94\xce\x98\xc4\x9d\xd7\x93\xd8\xb5\xc4\xb7\xd1\x9b\xe0\xb9\x9b\xef\xbe\x88\xc4\xb0",
  "\x54\x65\x73\x74\xe0\xb9\x9b",
  "\x54\x65\x73\x74\xd0\x94\xce\x98\xef\xbe\x88",
  "\x54\x65\x73\x74",
  "\xc3\x9e\xc3\x9f\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3"
};