walletList += NS_ConvertUTF8toUCS2(mapElementPtr->item1); walletList.AppendWithConversion(BREAK); if (!WALLET_NULL(mapElementPtr->item2)) { walletList += NS_ConvertUTF8toUCS2(mapElementPtr->item2); walletList.AppendWithConversion(BREAK);
walletList += mapElementPtr->item1; walletList.AppendWithConversion(BREAK); if (!mapElementPtr->item2.IsEmpty()) { walletList += mapElementPtr->item2; walletList.AppendWithConversion(BREAK);
WLLT_PreEdit(nsString& walletList){  wallet_Initialize();  walletList.AssignWithConversion(BREAK);  wallet_MapElement * mapElementPtr;  PRInt32 count = LIST_COUNT(wallet_SchemaToValue_list);  for (PRInt32 i=0; i<count; i++) {    mapElementPtr = NS_STATIC_CAST(wallet_MapElement*, wallet_SchemaToValue_list->ElementAt(i));    walletList += NS_ConvertUTF8toUCS2(mapElementPtr->item1);    walletList.AppendWithConversion(BREAK);    if (!WALLET_NULL(mapElementPtr->item2)) {      walletList += NS_ConvertUTF8toUCS2(mapElementPtr->item2);      walletList.AppendWithConversion(BREAK);    } else {      wallet_Sublist * sublistPtr;      PRInt32 count2 = LIST_COUNT(mapElementPtr->itemList);      for (PRInt32 i2=0; i2<count2; i2++) {        sublistPtr = NS_STATIC_CAST(wallet_Sublist*, mapElementPtr->itemList->ElementAt(i2));        walletList += NS_ConvertUTF8toUCS2(sublistPtr->item);        walletList.AppendWithConversion(BREAK);      }    }    walletList.AppendWithConversion(BREAK);  }}