sl@0: //Ini file for running InetProUtils tests (Syntax normalisation/Escape encoding/Tel uri parsing & validation). sl@0: sl@0: ////////////////////////////////////////////////////////////////////////////////////////////// sl@0: //////// Code for PercentEncoding = 1 //////////////////////////////////////////////////////// sl@0: //////// Code for CaseNormalisation = 2 ////////////////////////////////////////////////////// sl@0: //////// Code for RemoveDotegments = 3 /////////////////////////////////////////////////////// sl@0: //////// Code for PercentEncoding and CaseNormalisation = 12 ///////////////////////////////// sl@0: //////// Code for PercentEncoding and RemoveDotegments = 13 ////////////////////////////////// sl@0: //////// Code for CaseNormalisation and RemoveDotegments = 23 //////////////////////////////// sl@0: //////// Code for PercentEncoding, CaseNormalisation and RemoveDotegments = 123 ////////////// sl@0: //////// Code for No-Normalisation Technique is executed = 0 ///////////////////////////////// sl@0: ////////////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: ////////////////Scheme and HostComponents///////////////////// sl@0: ////////Percent encoding of unreserved characters///////////// sl@0: //////////Scheme and Host are Case-insensitive//////////////// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_1] sl@0: Uri = %68%74%74%70://exa%4Dple.co%4d/abc/ sl@0: ExpUri = http://example.com/abc/ sl@0: RetCode = 12 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: ////////////////Scheme and HostComponents///////////////////// sl@0: //////////Scheme and Host are Case-insensitive//////////////// sl@0: ////////////Executes CaseNormalisation//////////////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_2] sl@0: Uri = htTP://wwW.ExaMpLe.COM/abc/AD sl@0: ExpUri = http://www.example.com/abc/AD sl@0: RetCode = 2 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: ////////////////Scheme and Host Components//////////////////// sl@0: ////////Percent encoding of unreserved characters///////////// sl@0: //////////Scheme and Host are Case-insensitive//////////////// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_3] sl@0: Uri = htTP://wwW.ExaMpLe.CO%4d/abc/AD sl@0: ExpUri = http://www.example.com/abc/AD sl@0: RetCode = 12 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: ////////////////Scheme, Host and Path Components////////////// sl@0: ////////Percent encoding of unreserved characters///////////// sl@0: //////////Scheme and Host are Case-insensitive//////////////// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_4] sl@0: Uri = htt%70://user:pass@LOcaTion.co%4D:1666/AbcD/ad%6a/ResouRce.cgi;x=123;df223;2342;2323?asd=b#part sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b#part sl@0: RetCode = 12 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: ////////////////Scheme and Host Components//////////////////// sl@0: ////Percent encoding of unreserved and reserved characters//// sl@0: //////////Scheme and Host are Case-insensitive//////////////// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_5] sl@0: Uri = %68%74%74%70://user:pass@%40LOcaTion.co%4D:1666/AbcD/ sl@0: ExpUri = http://user:pass@%40location.com:1666/AbcD/ sl@0: RetCode = 12 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: ////////////////Scheme, Host and Path Components////////////// sl@0: ////Percent encoding of unreserved and reserved characters//// sl@0: //////////Scheme and Host are Case-insensitive//////////////// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_6] sl@0: Uri = %68%74%74%70%2f://user:pass@%40LOcaTion.co%4D:1666/AbcD%2f/ sl@0: ExpUri = http%2F://user:pass@%40location.com:1666/AbcD%2F/ sl@0: RetCode = 12 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: /////////////////////Scheme Component///////////////////////// sl@0: ////Percent encoding of unreserved and reserved characters//// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_7] sl@0: Uri = %68%74%74%70%3a%3b%3c%3d://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http%3A%3B%3C%3D://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 12 sl@0: sl@0: ////////////////////////////////////////////////////////////// sl@0: /////////////////////Scheme Component///////////////////////// sl@0: ////Percent encoding of unreserved Uppercase characters/////// sl@0: ///////////////Scheme is Case-insensitive///////////////////// sl@0: //Executes PercentEncoding and CaseNormalisation////////////// sl@0: ////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_8] sl@0: Uri = %48%54%54%50://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 12 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////UserInfo Component//////////////////////// sl@0: ////Percent encoding of unreserved characters////////////////// sl@0: ///////////////UserInfo is Case-sensitive////////////////////// sl@0: ////////////Executes PercentEncoding ////////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_9] sl@0: Uri = http://%55sEr:pa%73%53@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://UsEr:pasS@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 1 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////UserInfo Component//////////////////////// sl@0: ///////////////UserInfo is Case-sensitive////////////////////// sl@0: ///////////////Already in Normalsied form ///////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_10] sl@0: Uri = http://USER:PAsS@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://USER:PAsS@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 0 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////UserInfo Component//////////////////////// sl@0: ////Percent encoding of unreserved and reserved characters///// sl@0: ///////////////UserInfo is Case-sensitive////////////////////// sl@0: //Executes PercentEncoding and CaseNormalisation/////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_11] sl@0: Uri = http://USeR:PAs%3b%3c%73@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://USeR:PAs%3B%3Cs@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 12 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Host Component//////////////////////////// sl@0: ////Percent encoding of unreserved and reserved characters///// sl@0: ///////////////Host is Case-insensitive//////////////////////// sl@0: //Executes PercentEncoding and CaseNormalisation/////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_12] sl@0: Uri = http://user:pass@l%4f%43ation.com%3a:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com%3A:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 12 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Host Component//////////////////////////// sl@0: ////Percent encoding of reserved characters//////////////////// sl@0: ///////////////Host is Case-insensitive//////////////////////// sl@0: ////////////Executes CaseNormalisation///////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_13] sl@0: Uri = http://user:pass@LOCATION.COM%3A:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com%3A:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 2 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Port Component//////////////////////////// sl@0: ////Percent encoding of unreserved character/////////////////// sl@0: ////////////Executes PercentEncoding ////////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_14] sl@0: Uri = http://user:pass@location.com:166%36/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 1 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Port Component//////////////////////////// sl@0: ////Percent encoding of reserved character///////////////////// sl@0: ////////////Executes CaseNormalisation///////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_15] sl@0: Uri = http://user:pass@location.com:166%3a/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com:166%3A/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b sl@0: RetCode = 2 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Path Component//////////////////////////// sl@0: ////Percent encoding of unreserved character/////////////////// sl@0: ///////////////Path is Case-sensitive////////////////////////// sl@0: ////////////Executes PercentEncoding ////////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_16] sl@0: Uri = http://user:pass@location.com:1666/AbcD/%61%64%6a/Resource.cgi;x=123;D%66%3223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123;Df223;2342;2323?asd=b sl@0: RetCode = 1 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Path Component//////////////////////////// sl@0: ////Percent encoding of reserved character///////////////////// sl@0: ///////////////Path is Case-sensitive////////////////////////// sl@0: ////////////Executes CaseNormalisation///////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_17] sl@0: Uri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123%3b;Df223;2342;2323?asd=b sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123%3B;Df223;2342;2323?asd=b sl@0: RetCode = 2 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Query Component/////////////////////////// sl@0: ////Percent encoding of Unreserved and reserved characters///// sl@0: ///////////////Query is Case-sensitive///////////////////////// sl@0: //Executes PercentEncoding and CaseNormalisation/////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_18] sl@0: Uri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=B%35%2a%20%21 sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=B5%2A%20%21 sl@0: RetCode = 12 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Fragment Component//////////////////////// sl@0: ///////////////Fragment is Case-sensitive////////////////////// sl@0: ///////////////Already in Normalsied form ///////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_19] sl@0: Uri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt sl@0: RetCode = 0 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////Fragment Component//////////////////////// sl@0: ////Percent encoding of reserved characters//////////////////// sl@0: ////////////Executes CaseNormalisation///////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_20] sl@0: Uri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt%2a sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/ResouRce.cgi;x=123;df223;2342;2323?asd=b5#pArt%2A sl@0: RetCode = 2 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////All Uri Components//////////////////////// sl@0: ////Percent encoding of Unreserved and reserved characters///// sl@0: ///////////////Scheme and Host are Case-insensitive//////////// sl@0: //Executes PercentEncoding and CaseNormalisation/////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_21] sl@0: Uri = %68%74%74%70%3a%3b%3c%3d://%55sEr:pa%73%53@l%4f%43ation.com:166%3a/AbcD/%61%64%6a/Resource.cgi;x=123;D%66%3223;2342;2323?asd=B%35%2a%20%21#pArt%2a sl@0: ExpUri = http%3A%3B%3C%3D://UsEr:pasS@location.com:166%3A/AbcD/adj/Resource.cgi;x=123;Df223;2342;2323?asd=B5%2A%20%21#pArt%2A sl@0: RetCode = 12 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////////All Uri Components//////////////////////// sl@0: ///////Percent encoding of Unreserved characters/////////////// sl@0: ///////////////Scheme and Host are Case-insensitive//////////// sl@0: //Executes PercentEncoding and CaseNormalisation/////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_22] sl@0: Uri = %68%74%74%70://%75%73%65%72:pa%73%73@l%4f%43ation.com:166%36/AbcD/%61%64%6a/Resource.cgi;x=123;D%66%3223;2342;2323?asd=B%35#pArt sl@0: ExpUri = http://user:pass@location.com:1666/AbcD/adj/Resource.cgi;x=123;Df223;2342;2323?asd=B5#pArt sl@0: RetCode = 12 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_23] sl@0: Uri = http://example.com/a/b/c/../../../g sl@0: ExpUri = http://example.com/g sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_24] sl@0: Uri = http://example.com/a/b/c/../../../../g sl@0: ExpUri = http://example.com/g sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_25] sl@0: Uri = http://example.com/a/b/c/./../g sl@0: ExpUri = http://example.com/a/b/g sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_26] sl@0: Uri = http://example.com/a/b/c/./g. sl@0: ExpUri = http://example.com/a/b/c/g. sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_27] sl@0: Uri = http://example.com/a/b/c/./g/. sl@0: ExpUri = http://example.com/a/b/c/g/ sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_28] sl@0: Uri = http://example.com/a/b/c/./.g sl@0: ExpUri = http://example.com/a/b/c/.g sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_29] sl@0: Uri = http://example.com/a/b/c/./..g sl@0: ExpUri = http://example.com/a/b/c/..g sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_30] sl@0: Uri = http://example.com/a/b/c/../.g sl@0: ExpUri = http://example.com/a/b/.g sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: ///////////////Already in Normalsied form ///////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_31] sl@0: Uri = http://example.com/a/b/c/.g sl@0: ExpUri = http://example.com/a/b/c/.g sl@0: RetCode = 0 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments/////////////////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_32] sl@0: Uri = http://example.com/a/b/c/g/./h sl@0: ExpUri = http://example.com/a/b/c/g/h sl@0: RetCode = 3 sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments///////////////////////////////////////////////////////// sl@0: //////////////Executes CaseNormalisation and RemoveDotegments//////////////////////////////////////// sl@0: ///////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_33] sl@0: Uri = hTTp://exaMple.coM/a/b/c/g/../h sl@0: ExpUri = http://example.com/a/b/c/h sl@0: RetCode = 23 sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments///////////////////////////////////////////////////////// sl@0: //////////////Executes PercentEncoding and RemoveDotegments////////////////////////////////////////// sl@0: ///////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_34] sl@0: Uri = %68%74%74%70://example.com/a/b/c/g;x=1/./y sl@0: ExpUri = http://example.com/a/b/c/g;x=1/y sl@0: RetCode = 13 sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: ////////////Path Component with dot segments///////////////////////////////////////////////////////// sl@0: //////////////Executes PercentEncoding, CaseNormalisation and RemoveDotegments/////////////////////// sl@0: ///////////////////////////////////////////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_35] sl@0: Uri = %68%74%74%70://exa%4Dple.co%4d/d/c/b/a/.././abc/./../.. sl@0: ExpUri = http://example.com/d/c/ sl@0: RetCode = 123 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ///////Path and Query Components with dot segments///////////// sl@0: //Query Components with dot segments can have no impact//////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_36] sl@0: Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/./x sl@0: ExpUri = http://example.com/d/c/g?y/./x sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ///////Path and Query Components with dot segments///////////// sl@0: //Query Components with dot segments can have no impact//////// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_37] sl@0: Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/../x sl@0: ExpUri = http://example.com/d/c/g?y/../x sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ///////Path and Fragment Components with dot segments////////// sl@0: //Fragment Components with dot segments can have no impact//// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_38] sl@0: Uri = http://example.com/d/c/b/a/.././abc/./../../g#s/./x sl@0: ExpUri = http://example.com/d/c/g#s/./x sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: ///////Path and Fragment Components with dot segments////////// sl@0: //Fragment Components with dot segments can have no impact//// sl@0: //////////////Executes RemoveDotSegments/////////////////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_39] sl@0: Uri = http://example.com/d/c/b/a/.././abc/./../../g#s/../x sl@0: ExpUri = http://example.com/d/c/g#s/../x sl@0: RetCode = 3 sl@0: sl@0: ///////////////////////////////////////////////////////////////////////// sl@0: ///////Path, Query and Fragment Components with dot segments///////////// sl@0: //Query and Fragment Components with dot segments can have no impact//// sl@0: //////////////////Executes RemoveDotSegments///////////////////////////// sl@0: ///////////////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_40] sl@0: Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/./x#s/../z sl@0: ExpUri = http://example.com/d/c/g?y/./x#s/../z sl@0: RetCode = 3 sl@0: sl@0: ///////////////////////////////////////////////////////////////////////// sl@0: ///////Path, Query and Fragment Components with dot segments///////////// sl@0: //Query and Fragment Components with dot segments can have no impact//// sl@0: //////////////////Executes RemoveDotSegments///////////////////////////// sl@0: ///////////////////////////////////////////////////////////////////////// sl@0: sl@0: [Syntax_Normalisation_Uri_41] sl@0: Uri = http://example.com/d/c/b/a/.././abc/./../../g?y/./x#s/./z sl@0: ExpUri = http://example.com/d/c/g?y/./x#s/./z sl@0: RetCode = 3 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: //////Escape encoding covering the caharcters * ! ' ( )//////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Escape_Encoding_Uri_1] sl@0: EscDecoded = ;/?:@&=+$,*!'() sl@0: EscEncodedUri = %3B%2F%3F%3A%40%26%3D%2B%24,%2A%21%27%28%29 sl@0: EscEncodedAut = %3B%2F%3F%3A%40&=+$,*!'() sl@0: EscEncodedUriPath = %3B%2F%3F:@&%3D+$,*!'() sl@0: EscEncodedUriQuery = %3B%2F%3F%3A%40%26%3D%2B%24%2C*!'() sl@0: EscEncodedUriNormal = ;/?:@&=+$,*!'() sl@0: sl@0: sl@0: [Escape_Encoding_Uri_2] sl@0: EscDecoded = <>#%"{}|\^[]'*!() sl@0: EscEncodedUri = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D%27%2A%21%28%29 sl@0: EscEncodedAut = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D'*!() sl@0: EscEncodedUriPath = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D'*!() sl@0: EscEncodedUriQuery = %3C%3E%23%25%22%7B%7D%7C%5C%5E%5B%5D'*!() sl@0: EscEncodedUriNormal = %3C%3E%23%25%22%7B%7D%7C%5C%5E[]'*!() sl@0: sl@0: sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: //////Tel Uri should contain only two parts//////////////////// sl@0: ///////////1. Scheme-->e.g. "tel" ///////////////////////////// sl@0: ///////////2. Path---->e.g: +1234567;sms=example.com/////////// sl@0: ////for given tel Uri---> tel:+1234567;sms=example.com///////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Tel_Uri_Parsing_1] sl@0: Uri = tel:123456;isd=76678;sms=6678ghghjgh; sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 123456;isd=76678;sms=6678ghghjgh; sl@0: sl@0: [Tel_Uri_Parsing_2] sl@0: Uri = tel:123456 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 123456 sl@0: sl@0: [Tel_Uri_Parsing_3] sl@0: Uri = tel:+2746;postd=1722%40foo.com sl@0: ExpTelScheme = tel sl@0: ExpTelPath = +2746;postd=1722%40foo.com sl@0: sl@0: [Tel_Uri_Parsing_4] sl@0: Uri = tel:545734;postd=pp22 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 545734;postd=pp22 sl@0: sl@0: [Tel_Uri_Parsing_5] sl@0: Uri = tel:85475834758;isub=447;user=phone sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 85475834758;isub=447;user=phone sl@0: sl@0: [Tel_Uri_Parsing_6] sl@0: Uri = tel:85475834758;isub=447;user=phone;phone-context=jffj3433 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 85475834758;isub=447;user=phone;phone-context=jffj3433 sl@0: sl@0: [Tel_Uri_Parsing_7] sl@0: Uri = tel:1234;isub=676897;ext=6767 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 1234;isub=676897;ext=6767 sl@0: sl@0: [Tel_Uri_Parsing_8] sl@0: Uri = tel:1234;ext=6767;isub=676897 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 1234;ext=6767;isub=676897 sl@0: sl@0: [Tel_Uri_Parsing_9] sl@0: Uri = tel: sl@0: ExpTelScheme = tel sl@0: ExpTelPath = sl@0: sl@0: [Tel_Uri_Parsing_10] sl@0: Uri = tel:hjthj sl@0: ExpTelScheme = tel sl@0: ExpTelPath = hjthj sl@0: sl@0: [Tel_Uri_Parsing_11] sl@0: Uri = tel:1234;isub=676897;isub=6767 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 1234;isub=676897;isub=6767 sl@0: sl@0: [Tel_Uri_Parsing_12] sl@0: Uri = tel:1234;ext=6767;ext=676897 sl@0: ExpTelScheme = tel sl@0: ExpTelPath = 1234;ext=6767;ext=676897 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////Validation of Tel Uri //////////////////////// sl@0: /////////It does Partial Support for RFC 3966////////////////// sl@0: ////It does not support Lexicographical order of Parameters//// sl@0: ////////ExpRetCode---> 0 means It is a Valid tel-Uri/////////// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Tel_Uri_Validation_1] sl@0: Uri = tel:123456;isd=76678;sms=6678ghghjgh; sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_2] sl@0: Uri = tel:123456 sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_3] sl@0: Uri = tel:+2746;postd=1722%40foo.com sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_4] sl@0: Uri = tel:545734;postd=pp22 sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_5] sl@0: Uri = tel:85475834758;isub=447;user=phone sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_6] sl@0: Uri = tel:85475834758;isub=447;user=phone;phone-context=jffj3433 sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_7] sl@0: Uri = tel:123456;gggff=%3d%2c%3b%3f%26 sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_8] sl@0: Uri = tel:7042;phone-context=cs.columbia.edu: sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_9] sl@0: Uri = tel:8631234;phone-context=+1-914-555: sl@0: ExpRetCode = 0 sl@0: sl@0: [Tel_Uri_Validation_10] sl@0: Uri = tel:1234;phone-context=munich.example.com sl@0: ExpRetCode = 0 sl@0: sl@0: /////////////////////////////////////////////////////////////// sl@0: /////////////////Validation of Tel Uri //////////////////////// sl@0: /////////It does Partial Support for RFC 3966////////////////// sl@0: ////It does not support Lexicographical order of Parameters//// sl@0: ////////ExpRetCode---> -5020 means KUriUtilsErrInvalidParam//// sl@0: /////////////////////////////////////////////////////////////// sl@0: sl@0: [Tel_Uri_Validation_11] sl@0: Uri = tel:hjthj sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_12] sl@0: Uri = tel: sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_13] sl@0: Uri = tel:1234;ext=6767;isub=676897 sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_14] sl@0: Uri = tel:1234;isub=676897;isub=6767 sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_15] sl@0: Uri = tel:365746;hgd=, sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_16] sl@0: Uri = tel:465746;hgd=; sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_17] sl@0: Uri = tel:863-1234;phone-context=+1-914-555: sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_18] sl@0: Uri = tel:565746;hgd=? sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_19] sl@0: Uri = tel:1234;ext=6767;ext=676897 sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_20] sl@0: Uri = tel:1234;isub=676897;ext=6767 sl@0: ExpRetCode = -5020 sl@0: sl@0: [Tel_Uri_Validation_21] sl@0: Uri = tel:265746;hgd== sl@0: ExpRetCode = -5020 sl@0: sl@0: sl@0: sl@0: