private static int push_globs(String cwd, List<ByteList> ary, byte[] pattern, int pbegin, int pend, int pflags) { pflags |= FNM_SYSCASE; return glob_helper(cwd, pattern, pbegin, pend, -1, pflags, glob_caller, new GlobArgs(push_pattern, ary)); }
private static int push_globs(Ruby runtime, String cwd, List<ByteList> ary, ByteList pattern, int flags) { flags |= FNM_SYSCASE; return glob_helper(runtime, cwd, pattern, -1, flags, glob_caller, new GlobArgs(push_pattern, ary)); }
private static int push_globs(Ruby runtime, String cwd, List<ByteList> ary, ByteList pattern, int flags) { flags |= FNM_SYSCASE; return glob_helper(runtime, cwd, pattern, -1, flags, glob_caller, new GlobArgs(push_pattern, ary)); }
private static int push_globs(String cwd, List<ByteList> ary, byte[] pattern, int pbegin, int pend, int pflags) { pflags |= FNM_SYSCASE; return glob_helper(cwd, pattern, pbegin, pend, -1, pflags, glob_caller, new GlobArgs(push_pattern, ary)); }
private static int glob_helper(Ruby runtime, String cwd, ByteList path, int sub, int flags, GlobFunc<GlobArgs> func, GlobArgs arg) { final int begin = path.getBegin(); final int end = begin + path.getRealSize(); final Encoding enc = path.getEncoding(); return glob_helper(runtime, cwd, path.getUnsafeBytes(), begin, end, enc, sub, flags, func, arg); }
private static int glob_helper(Ruby runtime, String cwd, ByteList path, int sub, int flags, GlobFunc<GlobArgs> func, GlobArgs arg) { final int begin = path.getBegin(); final int end = begin + path.getRealSize(); final Encoding enc = path.getEncoding(); return glob_helper(runtime, cwd, path.getUnsafeBytes(), begin, end, enc, sub, flags, func, arg); }
buf = fixBytesForJarInUTF8(buf.getUnsafeBytes(), buf.getBegin(), buf.getRealSize()); status = glob_helper(cwd, buf.getUnsafeBytes(), buf.getBegin(), buf.getRealSize(), n, flags, func, arg); if(status != 0) { break finalize; buf.append(DOUBLE_STAR); buf.append(bytes, m, end - m); status = glob_helper(cwd, buf.getUnsafeBytes(), buf.getBegin(), buf.getRealSize(), t, flags, func, arg); if(status != 0) { break; status = glob_helper(cwd, buf.getUnsafeBytes(), buf.getBegin(), buf.getRealSize(), t, flags, func, arg); if(status != 0) { break; buf = fixBytesForJarInUTF8(buf.getUnsafeBytes(), 0, buf.getRealSize()); status = glob_helper(cwd, buf.getUnsafeBytes(),0, buf.getRealSize(),len,flags,func,arg);
status = glob_helper(runtime, cwd, buf, lengthOfBase, flags, func, arg); if ( status != 0 ) break finalize; buf.append(DOUBLE_STAR); buf.append(path, SLASH_INDEX, end - SLASH_INDEX); status = glob_helper(runtime, cwd, buf, buf.getBegin() + len, flags, func, arg); if ( status != 0 ) break; buf.append(link); buf.append(path, SLASH_INDEX, end - SLASH_INDEX); status = glob_helper(runtime, cwd, buf, buf.getBegin() + len, flags, func, arg);
status = glob_helper(runtime, cwd, buf, lengthOfBase, flags, func, arg); if ( status != 0 ) break finalize; buf.append(DOUBLE_STAR); buf.append(path, SLASH_INDEX, end - SLASH_INDEX); status = glob_helper(runtime, cwd, buf, buf.getBegin() + len, flags, func, arg); if ( status != 0 ) break; buf.append(link); buf.append(path, SLASH_INDEX, end - SLASH_INDEX); status = glob_helper(runtime, cwd, buf, buf.getBegin() + len, flags, func, arg);
buf.append(base); buf.append(bytes, (base.length > 0 ? m : m + 1), end - (base.length > 0 ? m : m + 1)); status = glob_helper(cwd, buf.getUnsafeBytes(), buf.getBegin(), buf.getRealSize(), n, flags, func, arg); if(status != 0) { break finalize; buf.append(DOUBLE_STAR); buf.append(bytes, m, end - m); status = glob_helper(cwd, buf.getUnsafeBytes(), buf.getBegin(), buf.getRealSize(), t, flags, func, arg); if(status != 0) { break; buf.append(b); buf.append(bytes, m, end - m); status = glob_helper(cwd, buf.getUnsafeBytes(),0, buf.getRealSize(),len,flags,func,arg);