textandlocutils/numbergrouping/src/StateMachine.cpp
changeset 44 601ab138ba0b
parent 37 6be019398652
equal deleted inserted replaced
37:6be019398652 44:601ab138ba0b
   137     // Check the type of aChar and return the relevant index or indicies
   137     // Check the type of aChar and return the relevant index or indicies
   138 	if(aChar.IsDigit())
   138 	if(aChar.IsDigit())
   139 	{
   139 	{
   140 		TInt nIndex = static_cast<TInt>(aChar.GetNumericValue());
   140 		TInt nIndex = static_cast<TInt>(aChar.GetNumericValue());
   141 		
   141 		
   142 		aIndices.Append(nIndex);
   142 		TInt ret = KErrNone;
   143 		aIndices.Append(KCharacterDot);
   143 		ret |= aIndices.Append(nIndex);
       
   144 		ret |= aIndices.Append(KCharacterDot);
       
   145 		__ASSERT_DEBUG(!ret, User::Panic(_L("RArray append failure"), ret));
       
   146 		if (KErrNone != ret) return ret;
   144 
   147 
   145 		return nIndex;
   148 		return nIndex;
   146 	}
   149 	}
   147 
   150 
   148 	if(aChar == '+')	return KCharacterPlus;
   151 	if(aChar == '+')	return KCharacterPlus;