app/src/main/java/fr/neamar/kiss/utils/FuzzyScore.java
/**
     * @param text string where to search
     * @return true if each character in pattern is found sequentially within text
     */
@param text string where to search
@return true if each character in pattern is found sequentially within text
@param text string where to search @return true if each character in pattern is found sequentially within text
public MatchInfo match(CharSequence text) {
        int idx = 0;
        int idxCodepoint = 0;
        int textLength = text.length();
        int[] codepoints = new int[Character.codePointCount(text, 0, textLength)];
        while (idx < textLength) {
            int codepoint = Character.codePointAt(text, idx);
            codepoints[idxCodepoint] = codepoint;
            idx += Character.charCount(codepoint);
            idxCodepoint += 1;
        }
        return match(codepoints);
    }
public MatchInfo match ( CharSequence text ) { int idx = 0 ; int idxCodepoint = 0 ; int textLength = text . length ( ) ; int [ ] codepoints = new int [ Character . codePointCount ( text , 0 , textLength ) ] ; while ( idx < textLength ) { int codepoint = Character . codePointAt ( text , idx ) ; codepoints [ idxCodepoint ] = codepoint ; idx += Character . charCount ( codepoint ) ; idxCodepoint += 1 ; } return match ( codepoints ) ; }
@param text string where to search
 @return true if each character in pattern is found sequentially within text
@param text string where to search @return true if each character in pattern is found sequentially within text