FreeRDP
TestString.c File Reference
#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/windows.h>

Macros

#define testStringW_Length   ((sizeof(testStringW) / sizeof(WCHAR)) - 1)
 
#define testToken1W_Length   ((sizeof(testToken1W) / sizeof(WCHAR)) - 1)
 
#define testToken2W_Length   ((sizeof(testToken2W) / sizeof(WCHAR)) - 1)
 
#define testToken3W_Length   ((sizeof(testToken3W) / sizeof(WCHAR)) - 1)
 
#define testTokensW_Length   ((sizeof(testTokensW) / sizeof(WCHAR)) - 1)
 
#define testDelimiter_Length   ((sizeof(testDelimiter) / sizeof(WCHAR)) - 1)
 

Functions

static BOOL test_url_escape (void)
 
int TestString (int argc, char *argv[])
 

Variables

static WCHAR testStringW []
 
static WCHAR testToken1W [] = { 'q', 'u', 'i', 'c', 'k', '\0' }
 
static WCHAR testToken2W [] = { 'b', 'r', 'o', 'w', 'n', '\0' }
 
static WCHAR testToken3W [] = { 'f', 'o', 'x', '\0' }
 
static WCHAR testTokensW []
 
static WCHAR testDelimiter [] = { '\r', '\n', '\0' }
 
static const struct url_test_pair url_tests []
 

Macro Definition Documentation

◆ testDelimiter_Length

#define testDelimiter_Length   ((sizeof(testDelimiter) / sizeof(WCHAR)) - 1)

◆ testStringW_Length

#define testStringW_Length   ((sizeof(testStringW) / sizeof(WCHAR)) - 1)

◆ testToken1W_Length

#define testToken1W_Length   ((sizeof(testToken1W) / sizeof(WCHAR)) - 1)

◆ testToken2W_Length

#define testToken2W_Length   ((sizeof(testToken2W) / sizeof(WCHAR)) - 1)

◆ testToken3W_Length

#define testToken3W_Length   ((sizeof(testToken3W) / sizeof(WCHAR)) - 1)

◆ testTokensW_Length

#define testTokensW_Length   ((sizeof(testTokensW) / sizeof(WCHAR)) - 1)

Function Documentation

◆ test_url_escape()

static BOOL test_url_escape ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestString()

int TestString ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ testDelimiter

WCHAR testDelimiter[] = { '\r', '\n', '\0' }
static

◆ testStringW

WCHAR testStringW[]
static
Initial value:
= { 'T', 'h', 'e', ' ', 'q', 'u', 'i', 'c', 'k', ' ', 'b',
'r', 'o', 'w', 'n', ' ', 'f', 'o', 'x', ' ', 'j', 'u',
'm', 'p', 's', ' ', 'o', 'v', 'e', 'r', ' ', 't', 'h',
'e', ' ', 'l', 'a', 'z', 'y', ' ', 'd', 'o', 'g', '\0' }

◆ testToken1W

WCHAR testToken1W[] = { 'q', 'u', 'i', 'c', 'k', '\0' }
static

◆ testToken2W

WCHAR testToken2W[] = { 'b', 'r', 'o', 'w', 'n', '\0' }
static

◆ testToken3W

WCHAR testToken3W[] = { 'f', 'o', 'x', '\0' }
static

◆ testTokensW

WCHAR testTokensW[]
static
Initial value:
= { 'q', 'u', 'i', 'c', 'k', '\r', '\n', 'b', 'r', 'o',
'w', 'n', '\r', '\n', 'f', 'o', 'x', '\r', '\n', '\0' }

◆ url_tests

const struct url_test_pair url_tests[]
static
Initial value:
= {
{ "xxx%bar ga<ka>ee#%%#%{h}g{f{e%d|c\\b^a~p[q]r`s;t/u?v:w@x=y&z$xxx",
"xxx%25bar%20ga%3Cka%3Eee%23%25%25%23%25%7Bh%7Dg%7Bf%7Be%25d%7Cc%5Cb%5Ea~p%5Bq%5Dr%60s%3Bt%"
"2Fu%3Fv%3Aw%40x%3Dy%26z%24xxx" },
{ "äöúëü", "%C3%A4%C3%B6%C3%BA%C3%AB%C3%BC" },
{ "🎅🏄🤘😈", "%F0%9F%8E%85%F0%9F%8F%84%F0%9F%A4%98%F0%9F%98%88" }
}