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

Side by Side Diff: icu46/source/common/errorcode.cpp

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/dtintrv.cpp ('k') | icu46/source/common/filterednormalizer2.cpp » ('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) 2009, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 * file name: errorcode.cpp
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2009mar10
14 * created by: Markus W. Scherer
15 */
16
17 #include "unicode/utypes.h"
18 #include "unicode/errorcode.h"
19
20 U_NAMESPACE_BEGIN
21
22 UErrorCode ErrorCode::reset() {
23 UErrorCode code = errorCode;
24 errorCode = U_ZERO_ERROR;
25 return code;
26 }
27
28 void ErrorCode::assertSuccess() const {
29 if(isFailure()) {
30 handleFailure();
31 }
32 }
33
34 const char* ErrorCode::errorName() const {
35 return u_errorName(errorCode);
36 }
37
38 U_NAMESPACE_END
OLDNEW
« no previous file with comments | « icu46/source/common/dtintrv.cpp ('k') | icu46/source/common/filterednormalizer2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698