コード例 #1
0
        private static string massageURI(string uri)
        {
            int num = uri.IndexOf(':');

            if (num < 0)
            {
                uri = "http://" + uri;
            }
            else
            {
                if (URIParsedResult.isColonFollowedByPortNumber(uri, num))
                {
                    uri = "http://" + uri;
                }
                else
                {
                    uri = uri.Substring(0, num).ToLower() + uri.Substring(num);
                }
            }
            return(uri);
        }
コード例 #2
0
 public URIParsedResult(string uri, string title) : base(ParsedResultType.URI)
 {
     this.uri   = URIParsedResult.massageURI(uri);
     this.title = title;
 }