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); }
public URIParsedResult(string uri, string title) : base(ParsedResultType.URI) { this.uri = URIParsedResult.massageURI(uri); this.title = title; }