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/genetics/fB/fB_conv.cpp

    r954 r973  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    8080                int endoffset = 0;
    8181                if (gene.indexOf("zz", 0) != -1) endoffset = 2;
    82                 if (gene.len() - endoffset < 3)
     82                if (gene.length() - endoffset < 3)
    8383                {
    8484                        fH_StickHandle *handle = new fH_StickHandle(dims, start, end);
     
    124124                if (gene.indexOf("zz", 0) != -1) endoffset = 2;
    125125                int nclassdefcount = 1;
    126                 while (z < gene.len() - endoffset)
     126                while (z < gene.length() - endoffset)
    127127                {
    128128                        if (processNextLetter(creature, handle, par, gene, propindex, z, ranges, nclassdefcount) == -1)
     
    185185                        }
    186186                        nextid++;
    187                 }
    188                 while (genotype[nextid] == '"');
     187                } while (genotype[nextid] == '"');
    189188                i = nextid;
    190189        }
Note: See TracChangeset for help on using the changeset viewer.