Develop and Download Open Source Software

Browse Subversion Repository

Diff of /Conograph/trunk/src/utility_func/zstring.cc

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

revision 32 by rtomiyasu, Wed Mar 11 01:09:25 2015 UTC revision 33 by rtomiyasu, Wed Sep 7 04:38:51 2016 UTC
# Line 120  ZErrorMessage getdelim(istream& ifs, str Line 120  ZErrorMessage getdelim(istream& ifs, str
120          ans.clear();          ans.clear();
121          if( delim.empty() ) return ZErrorMessage(ZErrorArgument, "Delimiter is empty", __FILE__, __LINE__, __FUNCTION__);          if( delim.empty() ) return ZErrorMessage(ZErrorArgument, "Delimiter is empty", __FILE__, __LINE__, __FUNCTION__);
122                    
123          const UInt4 ilength = delim.length();          const int ilength = delim.length();
124          UInt4 count = 0;          int count = 0;
125          char c;          char c;
126          while( ifs.get(c) )          while( ifs.get(c) )
127          {          {
# Line 135  ZErrorMessage getdelim(istream& ifs, str Line 135  ZErrorMessage getdelim(istream& ifs, str
135                  }                  }
136                  else                  else
137                  {                  {
138                          Int4 i;                          int i;
139                          for(i=count-1; i>=0; i--)                          for(i=count-1; i>=0; i--)
140                          {                          {
141                                  if( delim.at(i) == c )                                  if( delim.at(i) == c )

Legend:
Removed from v.32  
changed lines
  Added in v.33

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