Welcome to mirror list, hosted at ThFree Co, Russian Federation.

towlower_l.c « ctype « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 46e024d44ebbe896140345584475c0aaf7efac39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
#include <_ansi.h>
#include <newlib.h>
#include <wctype.h>
#include "local.h"

wint_t
towlower_l (wint_t c, struct __locale_t *locale)
{
#ifdef _MB_CAPABLE
  return towctrans_l (c, WCT_TOLOWER, locale);
#else
  return towlower (c);
#endif /* _MB_CAPABLE */
}