Ignore:
Timestamp:
Jan 16, 2024, 5:30:58 PM (6 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
06280ad
Parents:
739495a
Message:

Add missing test for string *= and refactor */*= to follow +/+= pattern with string_res.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/collections/string_res.cfa

    r739495a r38951c31  
    642642
    643643
     644///////////////////////////////////////////////////////////////////
     645// Repetition
     646
     647void ?*=?(string_res & s, size_t factor) {
     648    string_res s2 = { s, COPY_VALUE, 0, size(s) };
     649    s = "";
     650    for (factor) s += s2;
     651}
     652
    644653//////////////////////////////////////////////////////////
    645654// Comparisons
Note: See TracChangeset for help on using the changeset viewer.