ICU-329 The private function stoi() no longer needs a UErrorCode

X-SVN-Rev: 5508
This commit is contained in:
George Rhoten 2001-08-17 03:08:36 +00:00
parent db93af919d
commit 2edb18e9b7
2 changed files with 3 additions and 5 deletions

View File

@ -1069,8 +1069,7 @@ MessageFormat::releaseNumberFormat(NumberFormat *adopt)
* a call to wtoi().
*/
int32_t
MessageFormat::stoi(const UnicodeString& string,
UErrorCode& status)
MessageFormat::stoi(const UnicodeString& string)
{
/*
NumberFormat *myFormat = getNumberFormat(status);
@ -1156,7 +1155,7 @@ MessageFormat::makeFormat(/*int32_t position, */
// get the number
int32_t argumentNumber;
int32_t oldMaxOffset = fMaxOffset;
argumentNumber = stoi(segments[1], success); // always unlocalized!
argumentNumber = stoi(segments[1]); // always unlocalized!
if (argumentNumber < 0 || argumentNumber > 9) {
success = U_INVALID_FORMAT_ERROR;
return;

View File

@ -606,10 +606,9 @@ private:
* which is static (shared by all MessageFormat instances). This replaces
* a call to wtoi().
* @param string the source string to convert with
* @param status the error code.
* @return the converted number.
*/
static int32_t stoi(const UnicodeString& string, UErrorCode& status);
static int32_t stoi(const UnicodeString& string);
/**
* Converts an integer value to a string using a default NumberFormat object