File: operatorplusis.cc

package info (click to toggle)
flexc%2B%2B 2.17.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,180 kB
  • sloc: cpp: 6,467; makefile: 148; sh: 130; ansic: 18
file content (10 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
#include "block.ih"

void Block::operator+=(string const &text)
{
    if (text[0] == '\n')
        d_str += '\n';
    else
        d_str += text == " " ? text : String::trim(text);
}