C# Class System.Globalization.Tests.Unicode_Win7_IdnaTest

contained in Data\Unicode_Win7\IdnaTest_Win7.txt The structure of the data set is a semicolon deliminated list with the following columns: Column 1: type - T for transitional, N for nontransitional, B for both Column 2: source - the source string to be tested Column 3: toUnicode - the result of applying toUnicode to the source, using the specified type Column 4: toASCII - the result of applying toASCII to the source, using nontransitional If the value of toUnicode or toASCII is the same as source, the column will be blank.
Inheritance: IConformanceIdnaTest
Show file Open project: dotnet/corefx

Public Methods

Method Description
Unicode_Win7_IdnaTest ( string line, int lineNumber ) : System.Text

Private Methods

Method Description
ConvertStringToType ( string idnType ) : IdnType
EscapedToLiteralString ( string escaped, int lineNumber ) : string

This will convert strings with escaped sequences to literal characters. The input string is expected to have escaped sequences in the form of '\uXXXX'. Example: "a\u0020b" will be converted to 'a b'.

Method Details

Unicode_Win7_IdnaTest() public method

public Unicode_Win7_IdnaTest ( string line, int lineNumber ) : System.Text
line string
lineNumber int
return System.Text