Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: icu46/source/common/cwchar.c

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu46/source/common/cwchar.h ('k') | icu46/source/common/dictbe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 ******************************************************************************
3 *
4 * Copyright (C) 2001, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 ******************************************************************************
8 * file name: cwchar.c
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2001may25
14 * created by: Markus W. Scherer
15 */
16
17 #include "unicode/utypes.h"
18
19 #if !U_HAVE_WCSCPY
20
21 #include "cwchar.h"
22
23 U_CAPI wchar_t *uprv_wcscat(wchar_t *dst, const wchar_t *src) {
24 wchar_t *start=dst;
25 while(*dst!=0) {
26 ++dst;
27 }
28 while((*dst=*src)!=0) {
29 ++dst;
30 ++src;
31 }
32 return start;
33 }
34
35 U_CAPI wchar_t *uprv_wcscpy(wchar_t *dst, const wchar_t *src) {
36 wchar_t *start=dst;
37 while((*dst=*src)!=0) {
38 ++dst;
39 ++src;
40 }
41 return start;
42 }
43
44 U_CAPI size_t uprv_wcslen(const wchar_t *src) {
45 const wchar_t *start=src;
46 while(*src!=0) {
47 ++src;
48 }
49 return src-start;
50 }
51
52 #endif
53
OLDNEW
« no previous file with comments | « icu46/source/common/cwchar.h ('k') | icu46/source/common/dictbe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698