public static UnescapeInitialAndClosingDoubleQuotes ( string code ) : string | ||
code | string | |
Результат | string |
public static string UnescapeInitialAndClosingDoubleQuotes(string code)
{
if (code.StartsWith(ClosingQuoteReplacement))
code = DoubleQuote + code.Substring(ClosingQuoteReplacement.Length);
if (code.EndsWith(ClosingQuoteReplacement))
code = code.Substring(0, code.Length - ClosingQuoteReplacement.Length) +
DoubleQuote;
return code;
}
}
private static void UnescapeInitialAndClosingDoubleQuotes(MacroStatement macro) { var value = macro.Arguments[0] as StringLiteralExpression; if (value == null) { return; } value.Value = BrailPreProcessor.UnescapeInitialAndClosingDoubleQuotes(value.Value); }