StripQuotes Function

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).

bool StripQuotes(char[] text)

Parameters

char[] text

String to modify (in place).

Return Value

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