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

Macros

#define testStringA_Length   ((sizeof(testStringA) / sizeof(CHAR)) - 1)
 
#define testToken1A_Length   ((sizeof(testToken1A) / sizeof(CHAR)) - 1)
 
#define testToken2A_Length   ((sizeof(testToken2A) / sizeof(CHAR)) - 1)
 
#define testToken3A_Length   ((sizeof(testToken3A) / sizeof(CHAR)) - 1)
 
#define testTokensA_Length   ((sizeof(testTokensA) / sizeof(CHAR)) - 1)
 
#define testDelimiterA_Length   ((sizeof(testDelimiter) / sizeof(CHAR)) - 1)
 

Functions

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

Variables

static const CHAR testStringA []
 
static const CHAR testToken1A [] = { 'q', 'u', 'i', 'c', 'k', '\0' }
 
static const CHAR testToken2A [] = { 'b', 'r', 'o', 'w', 'n', '\0' }
 
static const CHAR testToken3A [] = { 'f', 'o', 'x', '\0' }
 
static const CHAR testTokensA []
 
static const CHAR testDelimiterA [] = { '\r', '\n', '\0' }
 
static const struct url_test_pair url_tests []
 

Macro Definition Documentation

◆ testDelimiterA_Length

#define testDelimiterA_Length   ((sizeof(testDelimiter) / sizeof(CHAR)) - 1)

◆ testStringA_Length

#define testStringA_Length   ((sizeof(testStringA) / sizeof(CHAR)) - 1)

◆ testToken1A_Length

#define testToken1A_Length   ((sizeof(testToken1A) / sizeof(CHAR)) - 1)

◆ testToken2A_Length

#define testToken2A_Length   ((sizeof(testToken2A) / sizeof(CHAR)) - 1)

◆ testToken3A_Length

#define testToken3A_Length   ((sizeof(testToken3A) / sizeof(CHAR)) - 1)

◆ testTokensA_Length

#define testTokensA_Length   ((sizeof(testTokensA) / sizeof(CHAR)) - 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

◆ testDelimiterA

const CHAR testDelimiterA[] = { '\r', '\n', '\0' }
static

◆ testStringA

const CHAR testStringA[]
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' }

◆ testToken1A

const CHAR testToken1A[] = { 'q', 'u', 'i', 'c', 'k', '\0' }
static

◆ testToken2A

const CHAR testToken2A[] = { 'b', 'r', 'o', 'w', 'n', '\0' }
static

◆ testToken3A

const CHAR testToken3A[] = { 'f', 'o', 'x', '\0' }
static

◆ testTokensA

const CHAR testTokensA[]
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" },
{ "foo$.%.^.&.\\.txt+", "foo%24.%25.%5E.%26.%5C.txt%2B" }
}