diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-03-30 11:21:43 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-03-30 11:21:43 +0000 |
commit | 8ff835b6060624dd4ccc7df1c1f83efb0ea7db5f (patch) | |
tree | def487f452302d792013a53a697e27114a58efbc /Build/source/libs/icu/icu-4.4/common/cwchar.c | |
parent | c47a9f27bd80d13919409536fd9ae63aacc4d25d (diff) |
build system: prepare for icu-4.4 + minor typos
git-svn-id: svn://tug.org/texlive/trunk@17626 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.4/common/cwchar.c')
-rw-r--r-- | Build/source/libs/icu/icu-4.4/common/cwchar.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-4.4/common/cwchar.c b/Build/source/libs/icu/icu-4.4/common/cwchar.c new file mode 100644 index 00000000000..78bb8c59dbb --- /dev/null +++ b/Build/source/libs/icu/icu-4.4/common/cwchar.c @@ -0,0 +1,53 @@ +/* +****************************************************************************** +* +* Copyright (C) 2001, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: cwchar.c +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2001may25 +* created by: Markus W. Scherer +*/ + +#include "unicode/utypes.h" + +#if !U_HAVE_WCSCPY + +#include "cwchar.h" + +U_CAPI wchar_t *uprv_wcscat(wchar_t *dst, const wchar_t *src) { + wchar_t *start=dst; + while(*dst!=0) { + ++dst; + } + while((*dst=*src)!=0) { + ++dst; + ++src; + } + return start; +} + +U_CAPI wchar_t *uprv_wcscpy(wchar_t *dst, const wchar_t *src) { + wchar_t *start=dst; + while((*dst=*src)!=0) { + ++dst; + ++src; + } + return start; +} + +U_CAPI size_t uprv_wcslen(const wchar_t *src) { + const wchar_t *start=src; + while(*src!=0) { + ++src; + } + return src-start; +} + +#endif + |