示例#1
0
        /// <summary>
        /// check www url
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public static string CheckWWWUrl(string url)
        {
            if (url.IndexOf("://") == -1)
            {
#if HUGULA_GSTRING
                using (GString.Block())
                {
                    url = GString.Format("file:///{0}", url).Intern();
                }
#else
                url = string.Format("file:///{0}", url);
#endif
            }
            return(url);
        }