From: Minje Ahn Date: Thu, 13 Mar 2025 08:04:24 +0000 (+0900) Subject: [ACR-1881] Add natural collate type X-Git-Tag: accepted/tizen/unified/20250317.142117^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19a2c5ea195c4c3f37b52c1fea06dd80137f497d;p=platform%2Fcore%2Fapi%2Fmedia-content.git [ACR-1881] Add natural collate type Change-Id: I43a08e52e51d36a963e14b39379e2443712954e2 Signed-off-by: Minje Ahn --- diff --git a/include/media_content_type.h b/include/media_content_type.h index 96cde11..9d851fc 100644 --- a/include/media_content_type.h +++ b/include/media_content_type.h @@ -116,6 +116,7 @@ typedef enum { MEDIA_CONTENT_COLLATE_NOCASE = 1, /**< Collation NOCASE, not case sensitive */ MEDIA_CONTENT_COLLATE_RTRIM = 2, /**< Collation RTRIM, trailing space characters are ignored */ MEDIA_CONTENT_COLLATE_LOCALIZED = 3, /**< Collation LOCALIZATION, NOCASE also applied */ + MEDIA_CONTENT_COLLATE_MIXED = 4, /**< Collation MIXED, natural sort order (Since 10.0) */ } media_content_collation_e; /** diff --git a/include_product/media_content_type.h b/include_product/media_content_type.h index cec64e1..443e702 100644 --- a/include_product/media_content_type.h +++ b/include_product/media_content_type.h @@ -121,6 +121,7 @@ typedef enum { MEDIA_CONTENT_COLLATE_NOCASE = 1, /**< Collation NOCASE, not case sensitive */ MEDIA_CONTENT_COLLATE_RTRIM = 2, /**< Collation RTRIM, trailing space characters are ignored */ MEDIA_CONTENT_COLLATE_LOCALIZED = 3, /**< Collation LOCALIZATION, NOCASE also applied */ + MEDIA_CONTENT_COLLATE_MIXED = 4, /**< Collation MIXED, natural sort order (Since 10.0) */ } media_content_collation_e; /** diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec index 667159f..634fbc9 100644 --- a/packaging/capi-content-media-content.spec +++ b/packaging/capi-content-media-content.spec @@ -1,7 +1,7 @@ Name: capi-content-media-content Summary: A Media content library in Tizen Native API -Version: 0.6.5 -Release: 1 +Version: 0.6.6 +Release: 0 Group: Multimedia/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/media_filter.c b/src/media_filter.c index fe6fee5..2b5f1ed 100644 --- a/src/media_filter.c +++ b/src/media_filter.c @@ -39,6 +39,8 @@ static const char *__get_collate_str(media_content_collation_e collate_type) return " COLLATE RTRIM "; case MEDIA_CONTENT_COLLATE_LOCALIZED: return " COLLATE localized "; + case MEDIA_CONTENT_COLLATE_MIXED: + return " COLLATE MIXED "; default: return " "; } @@ -51,6 +53,7 @@ static bool __check_collate_type(media_content_collation_e collate_type) case MEDIA_CONTENT_COLLATE_NOCASE: case MEDIA_CONTENT_COLLATE_RTRIM: case MEDIA_CONTENT_COLLATE_LOCALIZED: + case MEDIA_CONTENT_COLLATE_MIXED: return true; default: return false;