MoreInternals.Model.UrlValue.Parse C# (CSharp) Method

Parse() public static method

public static Parse ( string raw, IPosition forPos ) : UrlValue
raw string
forPos IPosition
return UrlValue
        public static UrlValue Parse(string raw, IPosition forPos)
        {
            int i = raw.IndexOf('(');
            var j = raw.IndexOf(')', i);

            var path = raw.Substring(i + 1, j - (i + 1)).Trim();

            return new UrlValue(MoreValueParser.Parse(path, Position.Create(forPos.Start + i, forPos.Stop + j, forPos.FilePath)));
        }