26 return sort_data->
inverted ? -val : val;
131static int compare_name(
void *user_data,
const void *a1,
const void *a2)
145static int compare_date(
void *user_data,
const void *a1,
const void *a2)
169static int compare_size(
void *user_data,
const void *a1,
const void *a2)
181 size1 = entry1->
st.st_size;
182 size2 = entry2->
st.st_size;
225 const char *sufix1, *sufix2;
227 if (!(sufix1 = strstr(entry1->
relpath,
".blend.gz"))) {
228 sufix1 = strrchr(entry1->
relpath,
'.');
230 if (!(sufix2 = strstr(entry2->
relpath,
".blend.gz"))) {
231 sufix2 = strrchr(entry2->
relpath,
'.');
259 if (asset1 && !asset2) {
262 if (!asset1 && asset2) {
265 if (!asset1 && !asset2) {
284 if (catalog1 && !catalog2) {
287 else if (!catalog1 && catalog2) {
290 else if (catalog1 && catalog2) {
309 int (*sort_cb)(
void *,
const void *,
const void *) =
nullptr;
311 switch (filelist->
sort) {
346 if ((filelist->
sort !=
sort) || (was_invert_sort != invert_sort)) {
Main runtime representation of an asset.
void void void BLI_listbase_sort_r(ListBase *listbase, int(*cmp)(void *, const void *, const void *), void *thunk) ATTR_NONNULL(1
#define FILENAME_IS_CURRENT(_n)
#define FILENAME_IS_PARENT(_n)
int char char int BLI_strcasecmp(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char int int int BLI_strcasecmp_natural(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
@ FILE_SORT_ASSET_CATALOG
@ FILE_TYPE_BLENDER_BACKUP
unsigned long long int uint64_t
static DBVT_INLINE btDbvtNode * sort(btDbvtNode *n, btDbvtNode *&r)
constexpr const char * c_str() const
const char * c_str() const
AssetCatalog * find_catalog(CatalogID catalog_id) const
AssetCatalogService & catalog_service() const
StringRefNull name() const
AssetLibrary & owner_asset_library() const
AssetMetaData & get_metadata() const
void filelist_tag_needs_filtering(FileList *filelist)
static int compare_apply_inverted(int val, const FileSortData *sort_data)
static int compare_tiebreaker(const FileListInternEntry *entry1, const FileListInternEntry *entry2)
static int compare_asset_catalog(void *user_data, const void *a1, const void *a2)
static int compare_extension(void *user_data, const void *a1, const void *a2)
static int compare_size(void *user_data, const void *a1, const void *a2)
void filelist_setsorting(FileList *filelist, const short sort, bool invert_sort)
static int compare_name(void *user_data, const void *a1, const void *a2)
static int compare_direntry_generic(const FileListInternEntry *entry1, const FileListInternEntry *entry2)
static int compare_date(void *user_data, const void *a1, const void *a2)
void filelist_sort(FileList *filelist)
struct FileListInternEntry::@364374371172256277004264162343271025307331240316 local_data
eFileSel_File_Types typeflag
blender::asset_system::AssetRepresentation * get_asset() const
FileListIntern filelist_intern