Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnModel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.20 by maloninc, Tue Sep 13 11:17:03 2005 UTC revision 1.22 by maloninc, Thu Sep 15 03:02:37 2005 UTC
# Line 171  void mnModel::group() Line 171  void mnModel::group()
171                                          iconv(codeSet, (ICONV_CONST char**)&inbufPtr, (size_t*)&inbufSize, &outbufPtr, (size_t*)&outbufSize);                                          iconv(codeSet, (ICONV_CONST char**)&inbufPtr, (size_t*)&inbufSize, &outbufPtr, (size_t*)&outbufSize);
172    
173                                          typeToken = new wxString(outbuf, conv);                                          typeToken = new wxString(outbuf, conv);
                                         //wxLogMessage(wxT("[%s]"), typeToken->c_str());  
174                                          addSearchStr(typeToken);                                          addSearchStr(typeToken);
175                                          delete typeToken;                                          delete typeToken;
176                                          ptr = NULL;                                          ptr = NULL;
# Line 235  bool mnModel::typeSearch(char* typeStr, Line 234  bool mnModel::typeSearch(char* typeStr,
234                  if(strstr((const char*)buf, TYPE_TAG)){  /* search TYPE line */                  if(strstr((const char*)buf, TYPE_TAG)){  /* search TYPE line */
235                          typeToken = strtok(typeStrCopy, ":");                          typeToken = strtok(typeStrCopy, ":");
236                          typeToken = strtok(NULL, ":");    /* second field separated by colon(:) */                          typeToken = strtok(NULL, ":");    /* second field separated by colon(:) */
237                            if(typeToken == NULL) return false;
238                          toLower(typeToken);                          toLower(typeToken);
239                          toLower(buf);                          toLower(buf);
240                          if(strstr(buf, typeToken)) return true;                          if(strstr(buf, typeToken)) return true;
# Line 249  void mnModel::addSearchStr(wxString* sea Line 249  void mnModel::addSearchStr(wxString* sea
249    
250          if(searchStrList->Index(searchStr->c_str()) == wxNOT_FOUND){          if(searchStrList->Index(searchStr->c_str()) == wxNOT_FOUND){
251                  string = new wxString(searchStr->c_str());                  string = new wxString(searchStr->c_str());
252                  //searchStrList->Add(*string, 1);                  searchStrList->Add(*string, 1);
253                  searchStrList->Insert(*string, 0);                  //searchStrList->Insert(*string, 0);
254          }          }
255  }  }
256    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.22

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26