Ignore:
Timestamp:
06/25/20 00:34:29 (4 years ago)
Author:
Maciej Komosinski
Message:

Genetic format ID becomes a string (no longer limited to a single character)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/sstring-simple.cpp

    r897 r955  
    2222}
    2323
    24 SString::SString(int x)
    25 {
    26         initEmpty();
    27         if (x)
    28                 ensureSize(x + 1);
    29 }
    30 
    3124SString::SString(const char *t, int t_len)
    3225{
     
    4639        txt = from.txt; size = from.size; used = from.used;
    4740        from.txt = NULL; from.size = 0; from.used = 0;
     41}
     42
     43SString::SString(char in)
     44{
     45        initEmpty();
     46        append(&in, 1);
    4847}
    4948
     
    117116SString SString::operator+(const SString& s) const
    118117{
    119         SString ret(len() + s.len());
     118        SString ret;
     119        ret.reserve(len() + s.len());
    120120        ret = *this;
    121121        ret += s;
Note: See TracChangeset for help on using the changeset viewer.