esp32-audio-player 0.1.0
Audio player engine for ESP32
Loading...
Searching...
No Matches
collate.h File Reference

Compact collation for Russian + English (+ Latin with diacritics folded): case-insensitive, "ё" == "е", digits before letters, Latin before Cyrillic, optional skipping of leading articles ("The ", "A "). More...

Include dependency graph for collate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  collate_opts_t
 

Functions

int collate_cmp (const char *a, const char *b, const collate_opts_t *opts)
 
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 symbols.
 

Detailed Description

Compact collation for Russian + English (+ Latin with diacritics folded): case-insensitive, "ё" == "е", digits before letters, Latin before Cyrillic, optional skipping of leading articles ("The ", "A ").

Function Documentation

◆ collate_cmp()

int collate_cmp ( const char *  a,
const char *  b,
const collate_opts_t *  opts 
)

◆ collate_fold()

uint32_t collate_fold ( uint32_t  cp)

Primary sort key of one code point (folded, lowercased). 0 for ignorable chars.

◆ collate_index_letter()

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 symbols.

Returns a code point.