js/calc.js
/**
 * Recognizes if supplied <i>input</i> is supposed to be treated as string within calculation expressions. 
 * That means it checks wheather it is enclosed in double quotes.
 * This is not to be confused with ActionScript String class, it is a separate construct that is used in Calc.
 * <br/><br/>
 * <b>Example:</b><br/> isString("s"), returns <i>false</i><br/> isString(""s""), returns <i>true</i>
 * @param input String that needs to be checked if it is a valid string representation for Calc.
 * @return Boolean true if the specified string is a valid string representation for Calc.
 * */
Recognizes if supplied input is supposed to be treated as string within calculation expressions.
That means it checks wheather it is enclosed in double quotes.
This is not to be confused with ActionScript String class, it is a separate construct that is used in Calc.
Recognizes if supplied input is supposed to be treated as string within calculation expressions . That means it checks wheather it is enclosed in double quotes . This is not to be confused with ActionScript String class it is a separate construct that is used in Calc .
function isString(input)
{
	var b = false;
	var len = input.length;
	if (input.substr(0, 1) == "\"" && input.substr(len - 1, 1) == "\"")
	{
		b = true;
	}
	if (input.substr(0, 1) == "'" && input.substr(len - 1, 1) == "'")
	{
		b = true;
	}
	return b;
}
function isString ( input ) { var b = false ; var len = input . length ; if ( input . substr ( 0 , 1 ) == "\"" && input . substr ( len - 1 , 1 ) == "\"" ) { b = true ; } if ( input . substr ( 0 , 1 ) == "'" && input . substr ( len - 1 , 1 ) == "'" ) { b = true ; } return b ; }
Recognizes if supplied <i>input</i> is supposed to be treated as string within calculation expressions.
Recognizes if supplied <i > input< / i > is supposed to be treated as string within calculation expressions .