diff options
author | Max Kellermann <max@duempel.org> | 2009-01-24 15:56:34 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-24 15:56:34 +0100 |
commit | e6cb939a82d8559c338ce4cc824c55f4d58499e1 (patch) | |
tree | e5f794457752a791bfea3eb7aac301d9eba179d6 /src/dbUtils.c | |
parent | 6a2118d04c7b73450edfffb6fdc40de1a05bfe94 (diff) | |
download | mpd-e6cb939a82d8559c338ce4cc824c55f4d58499e1.tar.gz mpd-e6cb939a82d8559c338ce4cc824c55f4d58499e1.tar.xz mpd-e6cb939a82d8559c338ce4cc824c55f4d58499e1.zip |
locate: added locate_item_list_casefold()
Merged casefolding code from two locations into this one library
function.
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 00df5b606..b33ec58df 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -84,14 +84,10 @@ searchForSongsIn(struct client *client, const char *name, const struct locate_item_list *criteria) { int ret; - struct locate_item_list *new_list; + struct locate_item_list *new_list + = locate_item_list_casefold(criteria); struct search_data data; - new_list = locate_item_list_new(criteria->length); - for (unsigned i = 0; i < criteria->length; i++) - new_list->items[i].needle = - g_utf8_casefold(criteria->items[i].needle, -1); - data.client = client; data.criteria = new_list; |