else if ( -1 != colType.Find("carphone") )
else if ( kNotFound != colType.Find("carphone") )
void AddressBookParser::AddLdifColToDatabase(nsIMdbRow* newRow, char* typeSlot, char* valueSlot, PRBool bIsList){    nsCAutoString colType(typeSlot);    nsCAutoString column(valueSlot);	mdb_u1 firstByte = (mdb_u1)(colType.get())[0];	switch ( firstByte )	{	case 'b':	  if ( -1 != colType.Find("birthyear") )		mDatabase->AddBirthYear(newRow, column.get());	  break; // 'b'	case 'c':	  if ( -1 != colType.Find("cn") || -1 != colType.Find("commonname") )	  {		if (bIsList)		  mDatabase->AddListName(newRow, column.get());		else		  mDatabase->AddDisplayName(newRow, column.get());	  }	  else if ( -1 != colType.Find("countryname") ) 	  {      if (mStoreLocAsHome )        mDatabase->AddHomeCountry(newRow, column.get());      else	    mDatabase->AddWorkCountry(newRow, column.get());      }	  // else if ( -1 != colType.Find("charset") )	  //   ioRow->AddColumn(ev, this->ColCharset(), yarn);	  else if ( -1 != colType.Find("cellphone") )		mDatabase->AddCellularNumber(newRow, column.get());//		  else if ( -1 != colType.Find("calendar") )//			ioRow->AddColumn(ev, this->ColCalendar(), yarn);//		  else if ( -1 != colType.Find("car") )//			ioRow->AddColumn(ev, this->ColCar(), yarn);	  else if ( -1 != colType.Find("carphone") )		mDatabase->AddCellularNumber(newRow, column.get());//			ioRow->AddColumn(ev, this->ColCarPhone(), yarn);//		  else if ( -1 != colType.Find("carlicense") )//			ioRow->AddColumn(ev, this->ColCarLicense(), yarn);        	  else if ( -1 != colType.Find("custom1") )		mDatabase->AddCustom1(newRow, column.get());        	  else if ( -1 != colType.Find("custom2") )		mDatabase->AddCustom2(newRow, column.get());        	  else if ( -1 != colType.Find("custom3") )		mDatabase->AddCustom3(newRow, column.get());        	  else if ( -1 != colType.Find("custom4") )		mDatabase->AddCustom4(newRow, column.get());        	  else if ( -1 != colType.Find("company") )		mDatabase->AddCompany(newRow, column.get());	  break; // 'c'	case 'd':	  if ( -1 != colType.Find("description") )	  {		if (bIsList)		  mDatabase->AddListDescription(newRow, column.get());		else		  mDatabase->AddNotes(newRow, column.get());	  }//		  else if ( -1 != colType.Find("dn") ) // distinuished name//			ioRow->AddColumn(ev, this->ColDistName(), yarn);	  else if ( -1 != colType.Find("department") )		mDatabase->AddDepartment(newRow, column.get());//		  else if ( -1 != colType.Find("departmentnumber") )//			ioRow->AddColumn(ev, this->ColDepartmentNumber(), yarn);//		  else if ( -1 != colType.Find("date") )//			ioRow->AddColumn(ev, this->ColDate(), yarn);	  break; // 'd'	case 'e'://		  if ( -1 != colType.Find("employeeid") )//			ioRow->AddColumn(ev, this->ColEmployeeId(), yarn);//		  else if ( -1 != colType.Find("employeetype") )//			ioRow->AddColumn(ev, this->ColEmployeeType(), yarn);	  break; // 'e'	case 'f':	  if ( -1 != colType.Find("fax") ||		-1 != colType.Find("facsimiletelephonenumber") )		mDatabase->AddFaxNumber(newRow, column.get());	  break; // 'f'	case 'g':	  if ( -1 != colType.Find("givenname") )		mDatabase->AddFirstName(newRow, column.get());//		  else if ( -1 != colType.Find("gif") )//			ioRow->AddColumn(ev, this->ColGif(), yarn);//		  else if ( -1 != colType.Find("geo") )//			ioRow->AddColumn(ev, this->ColGeo(), yarn);	  break; // 'g'	case 'h':	  if ( -1 != colType.Find("homephone") )		mDatabase->AddHomePhone(newRow, column.get());	  else if ( -1 != colType.Find("homeurl") )		mDatabase->AddWebPage1(newRow, column.get());	  break; // 'h'	case 'i'://		  if ( -1 != colType.Find("imapurl") )//			ioRow->AddColumn(ev, this->ColImapUrl(), yarn);	  break; // 'i'	case 'j'://		  if ( -1 != colType.Find("jpeg") || -1 != colType.Find("jpegfile") )//			ioRow->AddColumn(ev, this->ColJpegFile(), yarn);	  break; // 'j'	case 'k'://		  if ( -1 != colType.Find("key") )//			ioRow->AddColumn(ev, this->ColKey(), yarn);//		  else if ( -1 != colType.Find("keywords") )//			ioRow->AddColumn(ev, this->ColKeywords(), yarn);	  break; // 'k'	case 'l':	  if ( -1 != colType.Find("l") || -1 != colType.Find("locality") ) 	  {      if (mStoreLocAsHome )          mDatabase->AddHomeCity(newRow, column.get());      else	      mDatabase->AddWorkCity(newRow, column.get());      }//		  else if ( -1 != colType.Find("language") )//			ioRow->AddColumn(ev, this->ColLanguage(), yarn);//		  else if ( -1 != colType.Find("logo") )//			ioRow->AddColumn(ev, this->ColLogo(), yarn);//		  else if ( -1 != colType.Find("location") )//			ioRow->AddColumn(ev, this->ColLocation(), yarn);	  break; // 'l'	case 'm':	  if ( -1 != colType.Find("mail") )		mDatabase->AddPrimaryEmail(newRow, column.get());	  else if ( -1 != colType.Find("member") && bIsList )		mDatabase->AddLdifListMember(newRow, column.get());//		  else if ( -1 != colType.Find("manager") )//			ioRow->AddColumn(ev, this->ColManager(), yarn);//		  else if ( -1 != colType.Find("modem") )//			ioRow->AddColumn(ev, this->ColModem(), yarn);//		  else if ( -1 != colType.Find("msgphone") )//			ioRow->AddColumn(ev, this->ColMessagePhone(), yarn);	  break; // 'm'	case 'n'://		  if ( -1 != colType.Find("note") )//			ioRow->AddColumn(ev, this->ColNote(), yarn);	  if ( -1 != colType.Find("notes") )		mDatabase->AddNotes(newRow, column.get());//		  else if ( -1 != colType.Find("n") )//			ioRow->AddColumn(ev, this->ColN(), yarn);//		  else if ( -1 != colType.Find("notifyurl") )//			ioRow->AddColumn(ev, this->ColNotifyUrl(), yarn);	  break; // 'n'	case 'o':	  if ( -1 != colType.Find("objectclass"))		break;	  else if ( -1 != colType.Find("ou") || -1 != colType.Find("orgunit") )		mDatabase->AddDepartment(newRow, column.get());	  else if ( -1 != colType.Find("o") ) // organization		mDatabase->AddCompany(newRow, column.get());	  break; // 'o'	case 'p':	  if ( -1 != colType.Find("postalcode") )	  {      if (mStoreLocAsHome )          mDatabase->AddHomeZipCode(newRow, column.get());      else	      mDatabase->AddWorkZipCode(newRow, column.get());      }	  else if ( -1 != colType.Find("postOfficeBox") )		mDatabase->AddWorkAddress(newRow, column.get());	  else if ( -1 != colType.Find("pager") ||		-1 != colType.Find("pagerphone") )		mDatabase->AddPagerNumber(newRow, column.get());                    //		  else if ( -1 != colType.Find("photo") )//			ioRow->AddColumn(ev, this->ColPhoto(), yarn);//		  else if ( -1 != colType.Find("parentphone") )//			ioRow->AddColumn(ev, this->ColParentPhone(), yarn);//		  else if ( -1 != colType.Find("pageremail") )//			ioRow->AddColumn(ev, this->ColPagerEmail(), yarn);//		  else if ( -1 != colType.Find("prefurl") )//			ioRow->AddColumn(ev, this->ColPrefUrl(), yarn);//		  else if ( -1 != colType.Find("priority") )//			ioRow->AddColumn(ev, this->ColPriority(), yarn);	  break; // 'p'	case 'r':	  if ( -1 != colType.Find("region") ) 	  {      if (mStoreLocAsHome )        mDatabase->AddHomeZipCode(newRow, column.get());      else	    mDatabase->AddWorkState(newRow, column.get());      }//		  else if ( -1 != colType.Find("rfc822mailbox") )//			ioRow->AddColumn(ev, this->ColPrimaryEmail(), yarn);//		  else if ( -1 != colType.Find("rev") )//			ioRow->AddColumn(ev, this->ColRev(), yarn);//		  else if ( -1 != colType.Find("role") )//			ioRow->AddColumn(ev, this->ColRole(), yarn);	  break; // 'r'	case 's':	  if ( -1 != colType.Find("sn") || -1 != colType.Find("surname") )		mDatabase->AddLastName(newRow, column.get());	  else if ( -1 != colType.Find("streetaddress") ) 	  {      if (mStoreLocAsHome )          mDatabase->AddHomeAddress(newRow, column.get());      else	      mDatabase->AddWorkAddress(newRow, column.get());      }	  else if ( -1 != colType.Find("st") )	  {      if (mStoreLocAsHome )        mDatabase->AddHomeState(newRow, column.get());      else	    mDatabase->AddWorkState(newRow, column.get());      }//		  else if ( -1 != colType.Find("secretary") )//			ioRow->AddColumn(ev, this->ColSecretary(), yarn);//		  else if ( -1 != colType.Find("sound") )//			ioRow->AddColumn(ev, this->ColSound(), yarn);//		  else if ( -1 != colType.Find("sortstring") )//			ioRow->AddColumn(ev, this->ColSortString(), yarn);        	  break; // 's'	case 't':	  if ( -1 != colType.Find("title") )		mDatabase->AddJobTitle(newRow, column.get());	  else if ( -1 != colType.Find("telephonenumber") )      {		mDatabase->AddWorkPhone(newRow, column.get());      }//		  else if ( -1 != colType.Find("tiff") )//			ioRow->AddColumn(ev, this->ColTiff(), yarn);//		  else if ( -1 != colType.Find("tz") )//			ioRow->AddColumn(ev, this->ColTz(), yarn);	  break; // 't'	case 'u':		if ( -1 != colType.Find("uniquemember") && bIsList )			mDatabase->AddLdifListMember(newRow, column.get());//		  else if ( -1 != colType.Find("uid") )//			ioRow->AddColumn(ev, this->ColUid(), yarn);	  break; // 'u'	case 'v'://		  if ( -1 != colType.Find("version") )//			ioRow->AddColumn(ev, this->ColVersion(), yarn);//		  else if ( -1 != colType.Find("voice") )//			ioRow->AddColumn(ev, this->ColVoice(), yarn);	  break; // 'v'	case 'w':	  if ( -1 != colType.Find("workurl") )		mDatabase->AddWebPage2(newRow, column.get());	  break; // 'w'	case 'x':	  if ( -1 != colType.Find("xmozillanickname") )	  {		if (bIsList)		  mDatabase->AddListNickName(newRow, column.get());		else		  mDatabase->AddNickName(newRow, column.get());	  }	  else if ( -1 != colType.Find("xmozillausehtmlmail") )	  {		ToLowerCase(column);		if (-1 != column.Find("true"))			mDatabase->AddPreferMailFormat(newRow, nsIAbPreferMailFormat::html);		else			mDatabase->AddPreferMailFormat(newRow, nsIAbPreferMailFormat::unknown);	  }	  break; // 'x'	case 'z':	  if ( -1 != colType.Find("zip") ) // alias for postalcode 	  {      if (mStoreLocAsHome )        mDatabase->AddHomeZipCode(newRow, column.get());      else	    mDatabase->AddWorkZipCode(newRow, column.get());      }	  break; // 'z'	default:	  break; // default	}}