Changeset 2269
- Timestamp:
- Jun 14, 2010, 5:16:06 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/utility.cc
r2208 r2269 44 44 ss >> s2; // to trim surrounding whitespaces 45 45 to_lower(s2); 46 if (s2!=other) 47 return false; 46 48 // Check that nothing is left on stream 47 49 std::string s3; 48 50 ss >> s3; 49 if(s3.size()) 50 return false; 51 return (other==s2); 51 return s3.empty(); 52 52 } 53 53
Note: See TracChangeset
for help on using the changeset viewer.