Changeset 80 in dev for ProjectEditor/NonVolatile.cpp
- Timestamp:
- Mar 26, 2007, 6:33:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/NonVolatile.cpp
r24 r80 127 127 } 128 128 129 BOOL CSettingFile::GetDataLine( char *name,char *parms){129 BOOL CSettingFile::GetDataLine( const char *name,char *parms){ 130 130 int i,i2,length; 131 131 length=lstrlen(name); … … 150 150 } 151 151 152 BOOL CSettingFile::GetWholeValue( char *name,int *pi32data){152 BOOL CSettingFile::GetWholeValue( const char *name, int *pi32data ){ 153 153 char temporary[8192]; 154 154 if(!GetDataLine(name,temporary)) return 0; 155 155 *pi32data=atoi(temporary); 156 return 1; 157 } 158 bool CSettingFile::GetBoolean( const char *name,bool &b ){ 159 int i=0; 160 if( !GetWholeValue( name, &i ) ){ 161 return 0; 162 } 163 164 b = ( i != 0 ) ? true:false; 165 156 166 return 1; 157 167 } … … 402 412 if(!GetWholeValue("IsFindStrBigSmall",&bFindStrBigSmall)) bFindStrBigSmall=0; 403 413 414 // 単語単位で検索するか 415 if( !GetBoolean("isWordUnit",isWordUnit) ){ 416 isWordUnit = false; 417 } 418 404 419 //検索時に、正規表現を利用するかどうか 405 420 if(!GetWholeValue("IsRegExp",&bRegExp)) bRegExp=0; … … 612 627 } 613 628 614 void CSettingFile::SetWholeValue(c har *name,long i32data){629 void CSettingFile::SetWholeValue(const char *name,long i32data){ 615 630 sprintf(buffer+lstrlen(buffer),"%s=%d\r\n",name,i32data); 631 } 632 void CSettingFile::SetBoolean(const char *name,bool b){ 633 sprintf(buffer+lstrlen(buffer),"%s=%d\r\n",name,b?1:0); 616 634 } 617 635 void CSettingFile::Set3WholeValue(char *name,long d1,long d2,long d3){ … … 779 797 SetWholeValue("IsFindStrBigSmall",bFindStrBigSmall); 780 798 799 // 単語単位で検索するか 800 SetBoolean("isWordUnit",isWordUnit); 801 781 802 //検索時に、正規表現を利用するか 782 803 SetWholeValue("IsRegExp",bRegExp);
Note:
See TracChangeset
for help on using the changeset viewer.