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/util/sstringutils.h

    r929 r973  
    4040        int i, next = 0;
    4141        bool first = true;
    42         if (!separator.len()) { result.push_back(text); return; }
     42        if (!separator.length()) { result.push_back(text); return; }
    4343        while (1)
    4444        {
     
    4646                if (i < 0)
    4747                {
    48                         if ((next <= text.len()) || first)
     48                        if ((next <= text.length()) || first)
    4949                                result.push_back(text.substr(next));
    5050                        return;
     
    5555                        first = false;
    5656                }
    57                 next = i + separator.len();
     57                next = i + separator.length();
    5858        }
    5959}
Note: See TracChangeset for help on using the changeset viewer.