isQuotedString method

bool isQuotedString(
  1. String s
)

Implementation

bool isQuotedString(String s) {
	if (s.length < 2) {
		return false;
	}
	else {
		return ((s.startsWith("\"") && s.endsWith("\"")) || (s.startsWith("'") && s.endsWith("'")));
	}
}