Changeset 929 for cpp/frams/vm/classes


Ignore:
Timestamp:
05/25/20 15:23:43 (5 years ago)
Author:
Maciej Komosinski
Message:

Introduced strSplit() - a function that splits an SString and stores results in any class that implements push_back(const SString&), e.g. std::vector<SString>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.h

    r868 r929  
    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
     
    2020        ExtValue *get(int i) { return (ExtValue*)data.get(i); }
    2121        void set_or_insert(int i, const ExtValue& val, bool insert);
     22        void push_back(const SString& s) { data += new ExtValue(s); } //for strSplit()
    2223
    2324        static Param par;
Note: See TracChangeset for help on using the changeset viewer.