lib/protocol.js
function decodeString (string) {
	if (string === values.EMPTY) {
		return "";
	} else if (string === values.NULL) {
		return null;
	} else {
		return decodeURIComponent(
			string.replace(/\+/g,"%20"));
	}
}
function decodeString (string) {
	if (string === values.EMPTY) {
		return "";
	} else if (string === values.NULL) {
		return null;
	} else {
		return decodeURIComponent(
			string.replace(/\+/g,"%20"));
	}
}
function decodeString ( string ) { if ( string === values . EMPTY ) { return "" ; } else if ( string === values . NULL ) { return null ; } else { return decodeURIComponent ( string . replace ( / \+ / g , "%20" ) ) ; } }
Decodes a string according to the ARI protocol.

@param {String} string input
@return {String} output
@private
Decodes a string according to the ARI protocol .