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_general.h

    r802 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
     
    3535                do {
    3636                        count++;
    37                         if (start < genotype.len())
     37                        if (start < genotype.length())
    3838                                result = getNextGene(start, genotype, tmp, start);
    3939                        else
     
    5252                do {
    5353                        count++;
    54                         if (start < geno.len())
     54                        if (start < geno.length())
    5555                                getNextGene(start, geno, tmp, start);
    5656                        else
     
    8989                } while (quotecount % 2 != 0 && end != -1);
    9090
    91                 if (end == -1) end = genotype.len();
     91                if (end == -1) end = genotype.length();
    9292                else end += 2;
    9393                start -= 1;
     
    124124                } while (quotecount % 2 != 0 && end != -1);
    125125
    126                 if (end == -1) end = genotype.len();
     126                if (end == -1) end = genotype.length();
    127127                else end += 2;
    128128                start -= 1;
Note: See TracChangeset for help on using the changeset viewer.