bundles/org.eclipse.orion.client.webtools/web/webtools/htmlContentAssist.js
function(start, end, source, offset, bounds) {
			var idx = offset;
			var _c;
			var before = false;
			while(idx > bounds[0]) {
				_c = source[idx];
				if(_c === start) {
					before = true;
					break;
				}
				idx--;
			}
			if(before) {
				idx = offset;
				while(idx < bounds[1]) {
					_c = source[idx];
					if(_c === end) {
						return true;
					}
					idx++;
				}
			}
			return false;
		}
function(start, end, source, offset, bounds) {
			var idx = offset;
			var _c;
			var before = false;
			while(idx > bounds[0]) {
				_c = source[idx];
				if(_c === start) {
					before = true;
					break;
				}
				idx--;
			}
			if(before) {
				idx = offset;
				while(idx < bounds[1]) {
					_c = source[idx];
					if(_c === end) {
						return true;
					}
					idx++;
				}
			}
			return false;
		}
function ( start , end , source , offset , bounds ) { var idx = offset ; var _c ; var before = false ; while ( idx > bounds [ 0 ] ) { _c = source [ idx ] ; if ( _c === start ) { before = true ; break ; } idx -- ; } if ( before ) { idx = offset ; while ( idx < bounds [ 1 ] ) { _c = source [ idx ] ; if ( _c === end ) { return true ; } idx ++ ; } } return false ; }
A util method to determine if the caret is within two given chars, that are found within
the given bounds
@param {String} start The char to the LHS
@param {String} end The char to the RHS
@param {String} source The source to check against
@param {Number} offset
A util method to determine if the caret is within two given chars that are found within the given bounds