4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-21 05:49:19 +08:00
Corinna Vinschen ce5aa09807 Cygwin: glob: implement collating symbol support
Allow the [.<sym>.] expression

This requires a string comparision rather than a character
comparison.  Introduce and use __wscollate_range_cmp.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-02-20 22:50:17 +01:00

28 lines
608 B
C

/* collate.h: Internal BSD libc header, used in glob and regcomp, for instance.
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#ifdef __cplusplus
extern "C" {
#endif
extern const int __collate_load_error;
extern int __wcollate_range_cmp (wint_t, wint_t);
extern int __wscollate_range_cmp (wint_t *, wint_t *, size_t, size_t);
int is_unicode_equiv (wint_t, wint_t);
int is_unicode_coll_elem (const wint_t *);
size_t next_unicode_char (wint_t *);
#ifdef __cplusplus
};
#endif