中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁(yè) > 汽車電子 > 設(shè)計(jì)應(yīng)用 > SyncML在藍(lán)牙車載信息娛樂(lè)設(shè)備上的設(shè)計(jì)與實(shí)現(xiàn)

        SyncML在藍(lán)牙車載信息娛樂(lè)設(shè)備上的設(shè)計(jì)與實(shí)現(xiàn)

        作者:馬建輝 山東省科學(xué)院自動(dòng)化研究所 汽車電子重點(diǎn)實(shí)驗(yàn)室 呂夢(mèng)興 南京工業(yè)大學(xué)土木工程學(xué)院交通工程系 時(shí)間:2009-12-11 來(lái)源:電子產(chǎn)品世界 收藏

        unsigned int vcard_parse(void)
         {   
          unsigned int cnt,end,i,phone_index;
          char* p;
          end=vcard_length; 
          value_initia();
          /*begin to parse vcard*/
          for (cnt=13; cnt      after"BEGIN:VCARD"*/
          {
                   if((0xd==an_complete_vcard[cnt])&&(0xa==an_
                                             complete_vcard[cnt+1]))
                  {  
                /*extract a property,another property parameter or vcard end*/
                            cnt=cnt+2;/*skip rn*/
               /*if vcard end*/ 
                p=&an_complete_vcard[cnt];
                             if(0==uCompareASCIIName(p,"END:VCARD",9))
                                {
                        if(vcard_cmd==ADD)
                          { 
                                                         phonebook_insert();
                                }//the vcard cmd ADD
            else if(vcard_cmd==REPLACE)
            {   
            }// the vcard cmd REPLACE 
             return 0;
          }else if(0==uCompareASCIIName(p,"TEL;",4))
          {    
                 cnt=cnt+4;/* TEL property ,first skip "TEL;"*/           …
                   p=&an_complete_vcard[cnt];
                   if(0==uCompareASCIIName(p,"PREF",4))/*mobile
                    phonenumber*/
               {     
            cnt=cnt+4;/*skip the "PREF"*/
              ...
                                         cnt=cnt-2;/*check next rn,in the "for",cnt++,so -2,not -1*/
          }else if(0==uCompareASCIIName(p,"VOICE",5))
          {
          }else if(0==uCompareASCIIName(p,"CELL",4))
          { 
          }else if(0==uCompareASCIIName(p,"HOME",4))
          {
          }else if(0==uCompareASCIIName(p,"WORK",4))
          {
          } else if(0==uCompareASCIIName(p,"CAR",3))
          {  
          }
          } else if(0==uCompareASCIIName(p,"TEL:",4))
          { //some phone’s telephone have no parameter,
                   for example TEL:10086  
          }else if(0==uCompareASCIIName(p,"N",1))
          { //name property
          }
               }
         }
        return 0;
        }
          其中,uCompareASCIIName是比較字符串函數(shù),對(duì)輸入的兩個(gè)字符串不分大小寫(xiě)按字節(jié)進(jìn)行比較,具體代碼略。

        本文引用地址:http://www.antipu.com.cn/article/101084.htm


        評(píng)論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉