code: function(scalar, delimiters, stringDelimiters, i, evaluate)
  	{
  		if ( delimiters == undefined ) delimiters = null;
  		if ( stringDelimiters == undefined ) stringDelimiters = ['"', "'"];
  		if ( i == undefined ) i = 0;
  		if ( evaluate == undefined ) evaluate = true;
  		
  		var output = null;
  		var pos = null;
  		var matches = null;
  		
  		if ( this.inArray(scalar[i], stringDelimiters) )
  		{
  			// quoted scalar
  			output = this.parseQuotedScalar(scalar, i);
  			i = this.i;
  			if (null !== delimiters) {
  				var tmp = scalar.substr(i).replace(/^\s+/, '');
  				if (!this.inArray(tmp.charAt(0), delimiters)) {
  					throw new YamlParseException('Unexpected characters ('+scalar.substr(i)+').');
  				}
  			}
  		}
  		else
  		{
  			// "normal" string
  			if ( !delimiters )
  			{
  				output = (scalar+'').substring(i);
  				
  				i += output.length;
  
  				// remove comments
  				pos = output.indexOf(' #');
  				if ( pos != -1 )
  				{
  					output = output.substr(0, pos).replace(/\s+$/g,'');
  				}
  			}
  			else if ( matches = new RegExp('^(.+?)('+delimiters.join('|')+')').exec((scalar+'').substring(i)) )
  			{
  				output = matches[1];
  				i += output.length;
  			}
  			else
  			{
  				throw new YamlParseException('Malformed inline YAML string ('+scalar+').');
  			}
  			output = evaluate ? this.evaluateScalar(output) : output;
  		}
  
  		this.i = i;
  		
  		return output;
  	}
docs: Parses a scalar to a YAML string.
  
  @param scalar scalar
  @param string delimiters
  @param object stringDelimiters
  @param integer i
  @param boolean evaluate
  
  @return string A YAML string
  
  @throws YamlParseException When malformed inline YAML string is parsed