Amazon.S3.Util.AmazonS3Uri.Decode C# (CSharp) Method

Decode() static private method

Percent-decodes the given string, with a fast path for strings that are not percent-encoded.
static private Decode ( string s ) : string
s string The string to decode
return string
        static string Decode(string s)
        {
            if (s == null)
                return null;

            for (var i = 0; i < s.Length; ++i)
            {
                if (s[i] == '%')
                    return Decode(s, i);
            }

            return s;
        }

Same methods

AmazonS3Uri::Decode ( string s, int firstPercent ) : string