Lines Matching refs:d_name

249 			name_len = strlen(intern->u.dir.entry.d_name);  in spl_filesystem_object_get_file_name()
251 intern->file_name = zend_string_init(intern->u.dir.entry.d_name, name_len, 0); in spl_filesystem_object_get_file_name()
257 ZSTR_VAL(path), ZSTR_LEN(path), &slash, 1, intern->u.dir.entry.d_name, name_len); in spl_filesystem_object_get_file_name()
274 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_read()
284 static inline bool spl_filesystem_is_dot(const char * d_name) /* {{{ */ in spl_filesystem_is_dot() argument
286 return !strcmp(d_name, ".") || !strcmp(d_name, ".."); in spl_filesystem_is_dot()
308 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_open()
317 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in spl_filesystem_dir_open()
421 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in spl_filesystem_object_clone()
510 if (!source->u.dir.entry.d_name[0]) { in spl_filesystem_object_create_type()
587 static bool spl_filesystem_is_invalid_or_dot(const char * d_name) /* {{{ */ in spl_filesystem_is_invalid_or_dot() argument
589 return d_name[0] == '\0' || spl_filesystem_is_dot(d_name); in spl_filesystem_is_invalid_or_dot()
599 if (intern->u.dir.entry.d_name[0]) { in spl_filesystem_object_get_pathname()
802 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in PHP_METHOD()
850 RETURN_BOOL(intern->u.dir.entry.d_name[0] != '\0'); in PHP_METHOD()
913 RETURN_STRING(intern->u.dir.entry.d_name); in PHP_METHOD()
978 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), NULL, 0); in PHP_METHOD()
1041 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in PHP_METHOD()
1075 RETURN_STRING(intern->u.dir.entry.d_name); in PHP_METHOD()
1120 RETURN_BOOL(spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in PHP_METHOD()
1281 if (intern->type == SPL_FS_DIR && !intern->file_name && intern->u.dir.entry.d_name[0]) { in PHP_METHOD()
1427 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in PHP_METHOD()
1468 if (spl_filesystem_is_invalid_or_dot(intern->u.dir.entry.d_name)) { in PHP_METHOD()
1522 size_t name_len = strlen(intern->u.dir.entry.d_name); in PHP_METHOD()
1527 …memcpy(ZSTR_VAL(sub_path) + ZSTR_LEN(intern->u.dir.sub_path) + 1, intern->u.dir.entry.d_name, name… in PHP_METHOD()
1531 subdir->u.dir.sub_path = zend_string_init(intern->u.dir.entry.d_name, name_len, 0); in PHP_METHOD()
1568 …_STR(strpprintf(0, "%s%c%s", ZSTR_VAL(intern->u.dir.sub_path), slash, intern->u.dir.entry.d_name)); in PHP_METHOD()
1570 RETURN_STRING(intern->u.dir.entry.d_name); in PHP_METHOD()
1666 return object->u.dir.entry.d_name[0] != '\0' ? SUCCESS : FAILURE; in spl_filesystem_dir_it_valid()
1758 ZVAL_STRING(key, object->u.dir.entry.d_name); in spl_filesystem_tree_it_current_key()
1778 } while (skip_dots && spl_filesystem_is_dot(object->u.dir.entry.d_name)); in spl_filesystem_tree_it_move_forward()
1803 } while (skip_dots && spl_filesystem_is_dot(object->u.dir.entry.d_name)); in spl_filesystem_tree_it_rewind()