]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/errorcode.cpp
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
6 * Copyright (C) 2009-2011, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 *******************************************************************************
10 * file name: errorcode.cpp
12 * tab size: 8 (not used)
15 * created on: 2009mar10
16 * created by: Markus W. Scherer
19 #include "unicode/utypes.h"
20 #include "unicode/errorcode.h"
24 ErrorCode::~ErrorCode() {}
26 UErrorCode
ErrorCode::reset() {
27 UErrorCode code
= errorCode
;
28 errorCode
= U_ZERO_ERROR
;
32 void ErrorCode::assertSuccess() const {
38 const char* ErrorCode::errorName() const {
39 return u_errorName(errorCode
);