/// <summary>
        /// Returns an unquoted, unescaped version of the result from FormatValue() if that value
        /// looks like a quoted and escaped string literal. For instance, L"\"foo\\nbar\"" becomes
        /// "foo\nbar". Returns "" otherwise.
        /// </summary>
        public virtual string FormatStringView(
            RemoteValue remoteValue, ValueFormat fallbackValueFormat)
        {
            string value = FormatValue(remoteValue, fallbackValueFormat);

            return(CStringEscapeHelper.Unescape(value));
        }
Exemplo n.º 2
0
        public string FormatValueWithSize(RemoteValue remoteValue, uint size)
        {
            string result = GetValueAsString(remoteValue, size, out string error);

            if (result == null)
            {
                return(error);
            }
            return(CStringEscapeHelper.Escape(result, _prefix, _postfix));
        }