ICU-329 The private function stoi() no longer needs a UErrorCode
X-SVN-Rev: 5508
This commit is contained in:
parent
db93af919d
commit
2edb18e9b7
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user