autocomplete-highlighters-accentfold.js revision 99ae4cf94b18f24d35db8c5ffed25fdf304accf4
/**
* <p>
* Provides pre-built accent-folding result highlighters for AutoComplete.
* </p>
*
* <p>
* These highlighters are similar to the ones provided by the
* <code>autocomplete-highlighters</code> module, but use accent-aware
* comparisons. For example, "resume" and "résumé" will be considered equal when
* using the accent-folding highlighters.
* </p>
*
* @module autocomplete
* @submodule autocomplete-highlighters-accentfold
*/
/**
* @class AutoComplete.Highlighters
* @static
*/
YArray = Y.Array;
/**
* Accent-folding version of <code>charMatch()</code>.
*
* @method charMatchFold
* @param {String} query Query to match
* @param {Array} results Results to highlight
* @return {Array} Highlighted results
* @static
*/
});
},
/**
* Accent-folding version of <code>phraseMatch()</code>.
*
* @method phraseMatchFold
* @param {String} query Query to match
* @param {Array} results Results to highlight
* @return {Array} Highlighted results
* @static
*/
});
},
/**
* Accent-folding version of <code>startsWith()</code>.
*
* @method startsWithFold
* @param {String} query Query to match
* @param {Array} results Results to highlight
* @return {Array} Highlighted results
* @static
*/
startsWith: true
});
});
},
/**
* Accent-folding version of <code>wordMatch()</code>.
*
* @method wordMatchFold
* @param {String} query Query to match
* @param {Array} results Results to highlight
* @return {Array} Highlighted results
* @static
*/
});
}
});