esp32-audio-player 0.1.0
Audio player engine for ESP32
Loading...
Searching...
No Matches
collate.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
6#pragma once
7
8#include "audio_player/base.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct {
17
18int collate_cmp(const char *a, const char *b, const collate_opts_t *opts);
19
21uint32_t collate_fold(uint32_t cp);
22
25uint32_t collate_index_letter(const char *s, const collate_opts_t *opts);
26
27#ifdef __cplusplus
28}
29#endif
Base definitions shared by every core module: error codes, memory, logging, locks.
uint32_t collate_fold(uint32_t cp)
Primary sort key of one code point (folded, lowercased). 0 for ignorable chars.
uint32_t collate_index_letter(const char *s, const collate_opts_t *opts)
Uppercase first letter used for the "jump to letter" overlay: 'A'..'Z', 'А'..'Я', '#' for digits and ...
int collate_cmp(const char *a, const char *b, const collate_opts_t *opts)
Definition collate.h:14
bool ignore_articles
"The Beatles" sorts as "Beatles"
Definition collate.h:15