Ignore:
Timestamp:
07/03/20 00:37:13 (4 years ago)
Author:
Maciej Komosinski
Message:

Increased SString and std::string compatibility: introduced length(), size(), and capacity(), and removed legacy methods that have std::string equivalents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/paramtree_stdin_test.cpp

    r744 r973  
    4545        while (group_names.getNextToken(pos, line, '\n'))
    4646        {
    47                 if ((line.len() > 0) && (line[line.len() - 1] == '\r')) //support for reading \r\n files...
    48                         line = line.substr(0, line.len() - 1);
    49                 if (line.len() > 0 && line[0] != '#') //skip empty lines and #commment lines
     47                if ((line.length() > 0) && (line[line.length() - 1] == '\r')) //support for reading \r\n files...
     48                        line = line.substr(0, line.length() - 1);
     49                if (line.length() > 0 && line[0] != '#') //skip empty lines and #commment lines
    5050                        param.addGroup(line.c_str());
    5151        }
Note: See TracChangeset for help on using the changeset viewer.