Changeset 973 for cpp/frams/genetics/f4


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/f4/f4_general.cpp

    r955 r973  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2019  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    12931293        if (2 == childCount())
    12941294                if (0 == out[0]) out += ">"; else
    1295                         if ('>' != out[out.len() - 1]) out += ">";
     1295                        if ('>' != out[out.length() - 1]) out += ">";
    12961296        if (NULL != child2)    child2->sprint(out);
    12971297        // make sure last char is a '>'
    12981298        if (0 == out[0]) out += ">"; else
    1299                 if ('>' != out[out.len() - 1]) out += ">";
     1299                if ('>' != out[out.length() - 1]) out += ">";
    13001300}
    13011301
     
    13101310
    13111311        // very last '>' can be omitted
    1312         len = out.len();
     1312        len = out.length();
    13131313        if (len > 1)
    13141314                if ('>' == out[len - 1]) { (out.directWrite())[len - 1] = 0; out.endWrite(); };
Note: See TracChangeset for help on using the changeset viewer.