138 while (p1 < e1 && p2 < e2) {
140 c1 = (
unsigned char)*p1++;
141 c2 = (
unsigned char)*p2++;
142 if (c1 ==
'/') c1 =
'\0';
143 if (c2 ==
'/') c2 =
'\0';
234 else if (extlen <= 1) {
498 VALUE pattern, flags;
702 VALUE ary, dirname, basename;
1011 VALUE klass, str, ary;
static VALUE unlink_rescue(VALUE str, VALUE errinfo)
static VALUE path_world_writable_p(VALUE self)
VALUE rb_ary_entry(VALUE ary, long offset)
VALUE rb_str_equal(VALUE str1, VALUE str2)
static VALUE path_owned_p(VALUE self)
static VALUE path_zero_p(VALUE self)
static VALUE path_mkdir(int argc, VALUE *argv, VALUE self)
static VALUE path_pipe_p(VALUE self)
static VALUE path_writable_p(VALUE self)
static VALUE path_size(VALUE self)
static VALUE path_rmdir(VALUE self)
void rb_define_singleton_method(VALUE obj, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a singleton method for obj.
static VALUE path_readable_real_p(VALUE self)
static VALUE path_readable_p(VALUE self)
static VALUE path_executable_real_p(VALUE self)
static VALUE path_socket_p(VALUE self)
static VALUE path_atime(VALUE self)
static VALUE path_each_entry(VALUE self)
static VALUE path_to_s(VALUE self)
static VALUE get_strpath(VALUE obj)
VALUE rb_funcall(VALUE, ID, int,...)
Calls a method.
static VALUE path_fnmatch(int argc, VALUE *argv, VALUE self)
void rb_raise(VALUE exc, const char *fmt,...)
VALUE rb_ivar_get(VALUE, ID)
static VALUE path_chardev_p(VALUE self)
VALUE rb_convert_type(VALUE, int, const char *, const char *)
static VALUE path_ctime(VALUE self)
VALUE rb_obj_is_kind_of(VALUE, VALUE)
static VALUE path_taint(VALUE self)
st_index_t rb_str_hash(VALUE)
VALUE rb_ary_new3(long n,...)
static VALUE path_read(int argc, VALUE *argv, VALUE self)
static VALUE glob_i(VALUE elt, VALUE klass, int argc, VALUE *argv)
static VALUE path_opendir(VALUE self)
void rb_define_global_function(const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a global function.
VALUE rb_block_call(VALUE, ID, int, VALUE *, VALUE(*)(ANYARGS), VALUE)
static VALUE path_executable_p(VALUE self)
static VALUE path_chmod(VALUE self, VALUE mode)
static VALUE path_f_pathname(VALUE self, VALUE str)
static VALUE path_s_getwd(VALUE klass)
void rb_undef_method(VALUE klass, const char *name)
const char * rb_obj_classname(VALUE)
static VALUE path_realdirpath(int argc, VALUE *argv, VALUE self)
VALUE rb_obj_untaint(VALUE)
static VALUE path_make_link(VALUE self, VALUE old)
static VALUE path_lchmod(VALUE self, VALUE mode)
#define RB_TYPE_P(obj, type)
static VALUE path_truncate(VALUE self, VALUE length)
static VALUE path_sticky_p(VALUE self)
static VALUE path_eq(VALUE self, VALUE other)
VALUE rb_class_new_instance(int, VALUE *, VALUE)
int rb_block_given_p(void)
VALUE rb_obj_taint(VALUE)
static VALUE unlink_body(VALUE str)
RUBY_EXTERN VALUE rb_cObject
static VALUE path_setgid_p(VALUE self)
static VALUE path_hash(VALUE self)
static VALUE path_file_p(VALUE self)
static VALUE path_entries(VALUE self)
VALUE rb_define_class(const char *name, VALUE super)
Defines a top-level class.
static VALUE path_exist_p(VALUE self)
void rb_ary_store(VALUE ary, long idx, VALUE val)
static VALUE path_readlink(VALUE self)
static VALUE path_extname(VALUE self)
static VALUE path_unlink(VALUE self)
static VALUE each_entry_i(VALUE elt, VALUE klass, int argc, VALUE *argv)
static VALUE path_inspect(VALUE self)
static VALUE path_untaint(VALUE self)
static VALUE rb_cPathname
static VALUE path_dirname(VALUE self)
static VALUE path_make_symlink(VALUE self, VALUE old)
VALUE rb_str_subseq(VALUE, long, long)
static VALUE path_readlines(int argc, VALUE *argv, VALUE self)
VALUE rb_check_funcall(VALUE, ID, int, VALUE *)
VALUE rb_funcall2(VALUE, ID, int, const VALUE *)
Calls a method.
VALUE rb_sprintf(const char *format,...)
static void set_strpath(VALUE obj, VALUE val)
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
VALUE rb_ivar_set(VALUE, ID, VALUE)
static VALUE path_grpowned_p(VALUE self)
static VALUE path_writable_real_p(VALUE self)
static VALUE path_size_p(VALUE self)
static VALUE path_world_readable_p(VALUE self)
VALUE rb_rescue2(VALUE(*b_proc)(ANYARGS), VALUE data1, VALUE(*r_proc)(ANYARGS), VALUE data2,...)
VALUE rb_call_super(int, const VALUE *)
static VALUE path_each_line(int argc, VALUE *argv, VALUE self)
static VALUE path_freeze(VALUE self)
static VALUE path_lchown(VALUE self, VALUE owner, VALUE group)
static VALUE path_ftype(VALUE self)
VALUE rb_str_freeze(VALUE)
static VALUE path_sub(int argc, VALUE *argv, VALUE self)
static VALUE path_lstat(VALUE self)
rb_encoding * rb_enc_get(VALUE obj)
static VALUE path_binread(int argc, VALUE *argv, VALUE self)
static VALUE path_directory_p(VALUE self)
static VALUE path_utime(VALUE self, VALUE atime, VALUE mtime)
static VALUE path_basename(int argc, VALUE *argv, VALUE self)
static VALUE path_blockdev_p(VALUE self)
static VALUE path_split(VALUE self)
VALUE rb_check_array_type(VALUE ary)
static VALUE path_rename(VALUE self, VALUE to)
static VALUE path_open(int argc, VALUE *argv, VALUE self)
static VALUE path_expand_path(int argc, VALUE *argv, VALUE self)
static VALUE path_s_glob(int argc, VALUE *argv, VALUE klass)
static VALUE path_cmp(VALUE self, VALUE other)
static VALUE path_sysopen(int argc, VALUE *argv, VALUE self)
static VALUE path_sub_ext(VALUE self, VALUE repl)
VALUE rb_const_get_at(VALUE, ID)
static VALUE path_setuid_p(VALUE self)
static VALUE path_symlink_p(VALUE self)
const char * ruby_enc_find_extname(const char *name, long *len, rb_encoding *enc)
static VALUE path_stat(VALUE self)
static VALUE path_realpath(int argc, VALUE *argv, VALUE self)
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
VALUE rb_str_append(VALUE, VALUE)
static VALUE path_mtime(VALUE self)
static VALUE path_initialize(VALUE self, VALUE arg)
static VALUE path_chown(VALUE self, VALUE owner, VALUE group)
VALUE rb_obj_class(VALUE)