lost+found/src/path/matcher.js
function (context) {
        var parts = context.parts,
            partsLen = parts.length,
            startPos = context.startPos,
            array = this.start,
            len = array.length,
            idx;
        for (idx = 0; idx < len; ++idx) {
            if (this._matchName(array[idx], parts[startPos])) {
                if (++startPos >= partsLen) {
                    // Match if last part of the start and no end
                    if (idx === len - 1 && !this.end) {
                        return _GPF_PATHMATCH_OK;
                    }
                    return _GPF_PATHMATCH_KO;
                }
            } else {
                return _GPF_PATHMATCH_KO;
            }
        }
        context.startPos = startPos;
        return _GPF_PATHMATCH_UNKNOWN;
    }
function (context) {
        var parts = context.parts,
            partsLen = parts.length,
            startPos = context.startPos,
            array = this.start,
            len = array.length,
            idx;
        for (idx = 0; idx < len; ++idx) {
            if (this._matchName(array[idx], parts[startPos])) {
                if (++startPos >= partsLen) {
                    // Match if last part of the start and no end
                    if (idx === len - 1 && !this.end) {
                        return _GPF_PATHMATCH_OK;
                    }
                    return _GPF_PATHMATCH_KO;
                }
            } else {
                return _GPF_PATHMATCH_KO;
            }
        }
        context.startPos = startPos;
        return _GPF_PATHMATCH_UNKNOWN;
    }
function ( context ) { var parts = context . parts , partsLen = parts . length , startPos = context . startPos , array = this . start , len = array . length , idx ; for ( idx = 0 ; idx < len ; ++ idx ) { if ( this . _matchName ( array [ idx ] , parts [ startPos ] ) ) { if ( ++ startPos >= partsLen ) { // Match if last part of the start and no end if ( idx === len - 1 && ! this . end ) { return _GPF_PATHMATCH_OK ; } return _GPF_PATHMATCH_KO ; } } else { return _GPF_PATHMATCH_KO ; } } context . startPos = startPos ; return _GPF_PATHMATCH_UNKNOWN ; }
Match using this.start
Match using this . start