mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:23:04 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
29
sdk/lib/crt/wstring/wcscoll.c
Normal file
29
sdk/lib/crt/wstring/wcscoll.c
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcscoll.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
int CDECL _wcsncoll (const wchar_t *s1, const wchar_t *s2, size_t c)
|
||||
{
|
||||
/* FIXME: handle collates */
|
||||
return wcsncmp(s1,s2,c);
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
int CDECL _wcsnicoll (const wchar_t *s1, const wchar_t *s2, size_t c)
|
||||
{
|
||||
/* FIXME: handle collates */
|
||||
return _wcsnicmp(s1,s2,c);
|
||||
}
|
33
sdk/lib/crt/wstring/wcscspn.c
Normal file
33
sdk/lib/crt/wstring/wcscspn.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcscspn.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
size_t CDECL wcscspn(const wchar_t *str,const wchar_t *reject)
|
||||
{
|
||||
wchar_t *s;
|
||||
wchar_t *t;
|
||||
s=(wchar_t *)str;
|
||||
while (*s) {
|
||||
t=(wchar_t *)reject;
|
||||
while (*t) {
|
||||
if (*t==*s)
|
||||
break;
|
||||
t++;
|
||||
}
|
||||
if (*t)
|
||||
break;
|
||||
s++;
|
||||
}
|
||||
return s-str; /* nr of wchars */
|
||||
}
|
18
sdk/lib/crt/wstring/wcsicmp.c
Normal file
18
sdk/lib/crt/wstring/wcsicmp.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int CDECL _wcsicmp(const wchar_t* cs,const wchar_t * ct)
|
||||
{
|
||||
while (towlower(*cs) == towlower(*ct))
|
||||
{
|
||||
if (*cs == 0)
|
||||
return 0;
|
||||
cs++;
|
||||
ct++;
|
||||
}
|
||||
return towlower(*cs) - towlower(*ct);
|
||||
}
|
25
sdk/lib/crt/wstring/wcslwr.c
Normal file
25
sdk/lib/crt/wstring/wcslwr.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* The C RunTime DLL
|
||||
*
|
||||
* Implements C run-time functionality as known from UNIX.
|
||||
*
|
||||
* Copyright 1996,1998 Marcus Meissner
|
||||
* Copyright 1996 Jukka Iivonen
|
||||
* Copyright 1997 Uwe Bonnes
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
wchar_t * CDECL _wcslwr(wchar_t *x)
|
||||
{
|
||||
wchar_t *y=x;
|
||||
|
||||
while (*y) {
|
||||
*y=towlower(*y);
|
||||
y++;
|
||||
}
|
||||
return x;
|
||||
}
|
27
sdk/lib/crt/wstring/wcsnicmp.c
Normal file
27
sdk/lib/crt/wstring/wcsnicmp.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcsnicmp.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int CDECL _wcsnicmp (const wchar_t *cs, const wchar_t *ct, size_t count)
|
||||
{
|
||||
if (count == 0)
|
||||
return 0;
|
||||
do {
|
||||
if (towupper(*cs) != towupper(*ct++))
|
||||
return towupper(*cs) - towupper(*--ct);
|
||||
if (*cs++ == 0)
|
||||
break;
|
||||
} while (--count != 0);
|
||||
return 0;
|
||||
}
|
33
sdk/lib/crt/wstring/wcsspn.c
Normal file
33
sdk/lib/crt/wstring/wcsspn.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcsspn.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
size_t CDECL wcsspn(const wchar_t *str,const wchar_t *accept)
|
||||
{
|
||||
wchar_t *s;
|
||||
wchar_t *t;
|
||||
s=(wchar_t *)str;
|
||||
do {
|
||||
t=(wchar_t *)accept;
|
||||
while (*t) {
|
||||
if (*t==*s)
|
||||
break;
|
||||
t++;
|
||||
}
|
||||
if (!*t)
|
||||
break;
|
||||
s++;
|
||||
} while (*s);
|
||||
return s-str; /* nr of wchars */
|
||||
}
|
36
sdk/lib/crt/wstring/wcsstr.c
Normal file
36
sdk/lib/crt/wstring/wcsstr.c
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcsstr.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
wchar_t * CDECL wcsstr(const wchar_t *s,const wchar_t *b)
|
||||
{
|
||||
wchar_t *x;
|
||||
wchar_t *y;
|
||||
wchar_t *c;
|
||||
x=(wchar_t *)s;
|
||||
while (*x) {
|
||||
if (*x==*b) {
|
||||
y=x;
|
||||
c=(wchar_t *)b;
|
||||
while (*y && *c && *y==*c) {
|
||||
c++;
|
||||
y++;
|
||||
}
|
||||
if (!*c)
|
||||
return x;
|
||||
}
|
||||
x++;
|
||||
}
|
||||
return NULL;
|
||||
}
|
36
sdk/lib/crt/wstring/wcstok.c
Normal file
36
sdk/lib/crt/wstring/wcstok.c
Normal file
|
@ -0,0 +1,36 @@
|
|||
/* taken from wine wcs.c */
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*********************************************************************
|
||||
* wcstok_s (MSVCRT.@)
|
||||
*/
|
||||
wchar_t * CDECL wcstok_s( wchar_t *str, const wchar_t *delim,
|
||||
wchar_t **next_token )
|
||||
{
|
||||
wchar_t *ret;
|
||||
|
||||
if (!MSVCRT_CHECK_PMT(delim != NULL) || !MSVCRT_CHECK_PMT(next_token != NULL) ||
|
||||
!MSVCRT_CHECK_PMT(str != NULL || *next_token != NULL))
|
||||
{
|
||||
_set_errno(EINVAL);
|
||||
return NULL;
|
||||
}
|
||||
if (!str) str = *next_token;
|
||||
|
||||
while (*str && strchrW( delim, *str )) str++;
|
||||
if (!*str) return NULL;
|
||||
ret = str++;
|
||||
while (*str && !strchrW( delim, *str )) str++;
|
||||
if (*str) *str++ = 0;
|
||||
*next_token = str;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* wcstok (MSVCRT.@)
|
||||
*/
|
||||
wchar_t * CDECL wcstok( wchar_t *str, const wchar_t *delim )
|
||||
{
|
||||
return wcstok_s(str, delim, &msvcrt_get_thread_data()->wcstok_next);
|
||||
}
|
25
sdk/lib/crt/wstring/wcsupr.c
Normal file
25
sdk/lib/crt/wstring/wcsupr.c
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcsupr.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
wchar_t * CDECL _wcsupr(wchar_t *x)
|
||||
{
|
||||
wchar_t *y = x;
|
||||
|
||||
while (*y) {
|
||||
*y = towupper(*y);
|
||||
y++;
|
||||
}
|
||||
return x;
|
||||
}
|
36
sdk/lib/crt/wstring/wcsxfrm.c
Normal file
36
sdk/lib/crt/wstring/wcsxfrm.c
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/wstring/wcsxfrm.c
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
size_t CDECL wcsxfrm(wchar_t *dst,const wchar_t *src, size_t n)
|
||||
{
|
||||
size_t r = 0;
|
||||
int c;
|
||||
|
||||
if (n != 0) {
|
||||
while ((c = *src++) != 0)
|
||||
{
|
||||
r++;
|
||||
if (--n == 0)
|
||||
{
|
||||
while (*src++ != 0)
|
||||
r++;
|
||||
break;
|
||||
}
|
||||
*dst++ = c;
|
||||
}
|
||||
*dst = 0;
|
||||
}
|
||||
return r;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue