mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add strcoll_l(3).
This commit is contained in:
parent
e6a23c5365
commit
5bda12c8fc
3 changed files with 32 additions and 1 deletions
|
@ -111,6 +111,7 @@ string/strcat.o \
|
|||
string/strchrnul.o \
|
||||
string/strchr.o \
|
||||
string/strcmp.o \
|
||||
string/strcoll_l.o \
|
||||
string/strcoll.o \
|
||||
string/strcpy.o \
|
||||
string/strcspn.o \
|
||||
|
|
|
@ -46,6 +46,7 @@ char* strcat(char* __restrict, const char* __restrict);
|
|||
char* strchr(const char*, int);
|
||||
int strcmp(const char*, const char*);
|
||||
int strcoll(const char*, const char*);
|
||||
int strcoll_l(const char*, const char*, locale_t);
|
||||
size_t strcspn(const char*, const char*);
|
||||
char* strcpy(char* __restrict, const char* __restrict);
|
||||
char* strdup(const char*);
|
||||
|
@ -66,7 +67,6 @@ size_t strxfrm(char* __restrict, const char* __restrict, size_t);
|
|||
|
||||
/* TODO: These are not implemented in sortix libc yet. */
|
||||
#if defined(__SORTIX_SHOW_UNIMPLEMENTED)
|
||||
int strcoll_l(const char*, const char*, locale_t);
|
||||
char* strerror_l(int, locale_t);
|
||||
int strerror_r(int, char*, size_t);
|
||||
size_t strxfrm_l(char* __restrict, const char* __restrict, size_t, locale_t);
|
||||
|
|
30
libc/string/strcoll_l.cpp
Normal file
30
libc/string/strcoll_l.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
The Sortix C Library is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The Sortix C Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
string/strcoll_l.cpp
|
||||
Compare two strings using the given locale.
|
||||
|
||||
*******************************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
extern "C" int strcoll_l(const char* s1, const char* s2, locale_t /*locale*/)
|
||||
{
|
||||
return strcoll(s1, s2);
|
||||
}
|
Loading…
Add table
Reference in a new issue