StripQuotes

Last Updated2010-02-13
Created At2008-04-16

Strips a quote pair off a string if it exists. That is, the following replace rule is applied once: ^"(.*)"$ -> ^\1$ Note that the leading and trailing quotes will only be removed if both exist. Otherwise, the string is left unmodified. This function should be considered O(k) (all characters get shifted down).

native bool StripQuotes(char[] text)

Parameters

char[] text
String to modify (in place).

Return Value

bool True if string was modified, false if there was no set of quotes.