Changeset 1748


Ignore:
Timestamp:
Dec 21, 2004, 2:33:03 AM (21 years ago)
Author:
bird
Message:

Some wide string functions.

Location:
trunk/src/emx/src/lib
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/bsd/string/wcscat.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940wchar_t *
    40 wcscat(s1, s2)
     41_STD(wcscat)(s1, s2)
    4142        wchar_t * __restrict s1;
    4243        const wchar_t * __restrict s2;
  • trunk/src/emx/src/lib/bsd/string/wcschr.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2525 */
    2626
     27#include "namespace.h"
    2728#include <sys/cdefs.h>
    2829__FBSDID("$FreeBSD: src/lib/libc/string/wcschr.c,v 1.7 2002/10/23 10:47:47 tjr Exp $");
     
    3132
    3233wchar_t *
    33 wcschr(const wchar_t *s, wchar_t c)
     34_STD(wcschr)(const wchar_t *s, wchar_t c)
    3435{
    3536
  • trunk/src/emx/src/lib/bsd/string/wcscmp.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    3535 */
    3636
     37#include "namespace.h"
    3738#include <sys/cdefs.h>
    3839#if defined(LIBC_SCCS) && !defined(lint)
     
    5051 */
    5152int
    52 wcscmp(s1, s2)
     53_STD(wcscmp)(s1, s2)
    5354        const wchar_t *s1, *s2;
    5455{
  • trunk/src/emx/src/lib/bsd/string/wcscoll.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2525 */
    2626
     27#include "namespace.h"
    2728#include <sys/cdefs.h>
    2829__FBSDID("$FreeBSD: src/lib/libc/string/wcscoll.c,v 1.3 2004/04/07 09:47:56 tjr Exp $");
     
    3233#include <string.h>
    3334#include <wchar.h>
    34 #include "collate.h"
     35/*#include "collate.h"*/
    3536
    3637static char *__mbsdup(const wchar_t *);
     
    4243 */
    4344int
    44 wcscoll(const wchar_t *ws1, const wchar_t *ws2)
     45_STD(wcscoll)(const wchar_t *ws1, const wchar_t *ws2)
    4546{
    4647        char *mbs1, *mbs2;
    4748        int diff, sverrno;
    4849
    49         if (__collate_load_error || MB_CUR_MAX > 1)
     50        if (/*__collate_load_error || */MB_CUR_MAX > 1)
    5051                /*
    5152                 * Locale has no special collating order, could not be
  • trunk/src/emx/src/lib/bsd/string/wcscpy.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940wchar_t *
    40 wcscpy(s1, s2)
     41_STD(wcscpy)(s1, s2)
    4142        wchar_t * __restrict s1;
    4243        const wchar_t * __restrict s2;
  • trunk/src/emx/src/lib/bsd/string/wcscspn.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940size_t
    40 wcscspn(s, set)
     41_STD(wcscspn)(s, set)
    4142        const wchar_t *s;
    4243        const wchar_t *set;
  • trunk/src/emx/src/lib/bsd/string/wcslcat.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2828 */
    2929
     30#include "namespace.h"
    3031#include <sys/cdefs.h>
    3132#if 0
     
    4748 */
    4849size_t
    49 wcslcat(dst, src, siz)
     50_STD(wcslcat)(dst, src, siz)
    5051        wchar_t *dst;
    5152        const wchar_t *src;
  • trunk/src/emx/src/lib/bsd/string/wcslcpy.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2828 */
    2929
     30#include "namespace.h"
    3031#include <sys/cdefs.h>
    3132#if 0
     
    4546 */
    4647size_t
    47 wcslcpy(dst, src, siz)
     48_STD(wcslcpy)(dst, src, siz)
    4849        wchar_t *dst;
    4950        const wchar_t *src;
  • trunk/src/emx/src/lib/bsd/string/wcslen.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940size_t
    40 wcslen(s)
     41_STD(wcslen)(s)
    4142        const wchar_t *s;
    4243{
  • trunk/src/emx/src/lib/bsd/string/wcsncat.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940wchar_t *
    40 wcsncat(s1, s2, n)
     41_STD(wcsncat)(s1, s2, n)
    4142        wchar_t * __restrict s1;
    4243        const wchar_t * __restrict s2;
  • trunk/src/emx/src/lib/bsd/string/wcsncmp.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    3232 */
    3333
     34#include "namespace.h"
    3435#include <sys/cdefs.h>
    3536#if 0
     
    4445
    4546int
    46 wcsncmp(s1, s2, n)
     47_STD(wcsncmp)(s1, s2, n)
    4748        const wchar_t *s1, *s2;
    4849        size_t n;
  • trunk/src/emx/src/lib/bsd/string/wcsncpy.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    3535 */
    3636
     37#include "namespace.h"
    3738#if 0
    3839#if defined(LIBC_SCCS) && !defined(lint)
     
    5051 */
    5152wchar_t *
    52 wcsncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n)
     53_STD(wcsncpy)(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n)
    5354{
    5455        if (n != 0) {
  • trunk/src/emx/src/lib/bsd/string/wcspbrk.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940wchar_t *
    40 wcspbrk(s, set)
     41_STD(wcspbrk)(s, set)
    4142        const wchar_t *s;
    4243        const wchar_t *set;
  • trunk/src/emx/src/lib/bsd/string/wcsrchr.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2525 */
    2626
     27#include "namespace.h"
    2728#include <sys/cdefs.h>
    2829__FBSDID("$FreeBSD: src/lib/libc/string/wcsrchr.c,v 1.7 2002/10/23 10:52:04 tjr Exp $");
     
    3132
    3233wchar_t *
    33 wcsrchr(const wchar_t *s, wchar_t c)
     34_STD(wcsrchr)(const wchar_t *s, wchar_t c)
    3435{
    3536        const wchar_t *last;
  • trunk/src/emx/src/lib/bsd/string/wcsspn.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    2727 */
    2828
     29#include "namespace.h"
    2930#include <sys/cdefs.h>
    3031#if 0
     
    3839
    3940size_t
    40 wcsspn(s, set)
     41_STD(wcsspn)(s, set)
    4142        const wchar_t *s;
    4243        const wchar_t *set;
  • trunk/src/emx/src/lib/bsd/string/wcsstr.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    3535 */
    3636
     37#include "namespace.h"
    3738#if 0
    3839#if defined(LIBC_SCCS) && !defined(lint)
     
    4950 */
    5051wchar_t *
    51 wcsstr(const wchar_t * __restrict s, const wchar_t * __restrict find)
     52_STD(wcsstr)(const wchar_t * __restrict s, const wchar_t * __restrict find)
    5253{
    5354        wchar_t c, sc;
  • trunk/src/emx/src/lib/bsd/string/wcstok.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    3737 */
    3838
     39#include "namespace.h"
    3940#include <sys/cdefs.h>
    4041__FBSDID("$FreeBSD: src/lib/libc/string/wcstok.c,v 1.2 2003/03/12 06:41:49 tjr Exp $");
     
    4344
    4445wchar_t *
    45 wcstok(wchar_t * __restrict s, const wchar_t * __restrict delim,
     46_STD(wcstok)(wchar_t * __restrict s, const wchar_t * __restrict delim,
    4647    wchar_t ** __restrict last)
    4748{
  • trunk/src/emx/src/lib/bsd/string/wcswidth.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1747 r1748  
    4040 */
    4141
     42#include "namespace.h"
    4243#include <sys/cdefs.h>
    4344__FBSDID("$FreeBSD: src/lib/libc/string/wcswidth.c,v 1.6 2002/08/20 02:06:28 ache Exp $");
     
    4647
    4748int
    48 wcswidth(const wchar_t *pwcs, size_t n)
     49_STD(wcswidth)(const wchar_t *pwcs, size_t n)
    4950{
    5051        wchar_t wc;
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.90 to 1.91
    r1747 r1748  
    13541354    "___libc_GLocaleWCtype" @1369
    13551355
     1356    "__std_wcscat" @1370
     1357    "__std_wcschr" @1371
     1358    "__std_wcscmp" @1372
     1359    "__std_wcscoll" @1373
     1360    "__std_wcscpy" @1374
     1361    "__std_wcscspn" @1375
     1362    "__std_wcslcat" @1376
     1363    "__std_wcslcpy" @1377
     1364    "__std_wcslen" @1378
     1365    "__std_wcsncat" @1379
     1366    "__std_wcsncmp" @1380
     1367    "__std_wcsncpy" @1381
     1368    "__std_wcspbrk" @1382
     1369    "__std_wcsrchr" @1383
     1370    "__std_wcsspn" @1384
     1371    "__std_wcsstr" @1385
     1372    "__std_wcstok" @1386
     1373    "__std_wcswidth" @1387
Note: See TracChangeset for help on using the changeset viewer.