reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
425 _M_check_length(__len1, __len2, "basic_string::_M_replace"); 428 const size_type __new_size = __old_size + __len2 - __len1; 434 const size_type __how_much = __old_size - __pos - __len1; 437 if (__how_much && __len1 != __len2) 438 this->_S_move(__p + __len2, __p + __len1, __how_much); 445 if (__len2 && __len2 <= __len1) 447 if (__how_much && __len1 != __len2) 448 this->_S_move(__p + __len2, __p + __len1, __how_much); 449 if (__len2 > __len1) 451 if (__s + __len2 <= __p + __len1) 453 else if (__s >= __p + __len1) 454 this->_S_copy(__p, __s + __len2 - __len1, __len2); 457 const size_type __nleft = (__p + __len1) - __s; 466 this->_M_mutate(__pos, __len1, __s, __len2);