FreeRDP
|
#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/error.h>
#include <winpr/print.h>
#include <winpr/windows.h>
Functions | |
static void | string_hexdump (const BYTE *data, size_t length) |
static int | convert_utf8_to_utf16 (BYTE *lpMultiByteStr, BYTE *expected_lpWideCharStr, int expected_cchWideChar) |
static int | convert_utf16_to_utf8 (BYTE *lpWideCharStr, BYTE *expected_lpMultiByteStr, int expected_cbMultiByte) |
static BOOL | test_unicode_uppercasing (BYTE *lower, BYTE *upper) |
static BOOL | test_ConvertFromUnicode_wrapper (void) |
static BOOL | test_ConvertToUnicode_wrapper (void) |
int | TestUnicodeConversion (int argc, char *argv[]) |
Variables | |
static BYTE | c_cedilla_UTF8 [] = "\xC3\xA7\x00" |
static BYTE | c_cedilla_UTF16 [] = "\xE7\x00\x00\x00" |
static int | c_cedilla_cchWideChar = 2 |
static int | c_cedilla_cbMultiByte = 3 |
static BYTE | en_Hello_UTF8 [] = "Hello\0" |
static BYTE | en_Hello_UTF16 [] = "\x48\x00\x65\x00\x6C\x00\x6C\x00\x6F\x00\x00\x00" |
static int | en_Hello_cchWideChar = 6 |
static int | en_Hello_cbMultiByte = 6 |
static BYTE | en_HowAreYou_UTF8 [] = "How are you?\0" |
static BYTE | en_HowAreYou_UTF16 [] |
static int | en_HowAreYou_cchWideChar = 13 |
static int | en_HowAreYou_cbMultiByte = 13 |
static BYTE | fr_Hello_UTF8 [] = "Allo\0" |
static BYTE | fr_Hello_UTF16 [] = "\x41\x00\x6C\x00\x6C\x00\x6F\x00\x00\x00" |
static int | fr_Hello_cchWideChar = 5 |
static int | fr_Hello_cbMultiByte = 5 |
static BYTE | fr_HowAreYou_UTF8 [] |
static BYTE | fr_HowAreYou_UTF16 [] |
static int | fr_HowAreYou_cchWideChar = 15 |
static int | fr_HowAreYou_cbMultiByte = 16 |
static BYTE | ru_Hello_UTF8 [] = "\xD0\x97\xD0\xB4\xD0\xBE\xD1\x80\xD0\xBE\xD0\xB2\xD0\xBE\x00" |
static BYTE | ru_Hello_UTF16 [] = "\x17\x04\x34\x04\x3E\x04\x40\x04\x3E\x04\x32\x04\x3E\x04\x00\x00" |
static int | ru_Hello_cchWideChar = 8 |
static int | ru_Hello_cbMultiByte = 15 |
static BYTE | ru_HowAreYou_UTF8 [] |
static BYTE | ru_HowAreYou_UTF16 [] |
static int | ru_HowAreYou_cchWideChar = 10 |
static int | ru_HowAreYou_cbMultiByte = 17 |
static BYTE | ar_Hello_UTF8 [] |
static BYTE | ar_Hello_UTF16 [] |
static int | ar_Hello_cchWideChar = 13 |
static int | ar_Hello_cbMultiByte = 24 |
static BYTE | ar_HowAreYou_UTF8 [] |
static BYTE | ar_HowAreYou_UTF16 [] |
static int | ar_HowAreYou_cchWideChar = 10 |
static int | ar_HowAreYou_cbMultiByte = 18 |
static BYTE | ch_Hello_UTF8 [] = "\xE4\xBD\xA0\xE5\xA5\xBD\x00" |
static BYTE | ch_Hello_UTF16 [] = "\x60\x4F\x7D\x59\x00\x00" |
static int | ch_Hello_cchWideChar = 3 |
static int | ch_Hello_cbMultiByte = 7 |
static BYTE | ch_HowAreYou_UTF8 [] = "\xE4\xBD\xA0\xE5\xA5\xBD\xE5\x90\x97\x00" |
static BYTE | ch_HowAreYou_UTF16 [] = "\x60\x4F\x7D\x59\x17\x54\x00\x00" |
static int | ch_HowAreYou_cchWideChar = 4 |
static int | ch_HowAreYou_cbMultiByte = 10 |
static BYTE | ru_Administrator_lower [] |
static BYTE | ru_Administrator_upper [] |
|
static |
|
static |
|
static |
|
static |
|
static |
int TestUnicodeConversion | ( | int | argc, |
char * | argv[] | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |