Insert a string at a specified position.
- Parameters
-
[in] | pos | the insertion position |
[in] | rval | the inserted text |
- Returns
- *this
- Exceptions
-
Definition at line 575 of file string.cpp.
References append(), likely, m_data, m_length, memalign(), and unlikely.
Referenced by csdbg::style::apply(), and insert().
587 while (
likely(tail-- >= 0) )
590 strncpy(
m_data + pos, rval.m_data, rval.m_length);
virtual string & append(const string &)
Append a string.
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
virtual string & memalign(u32, bool=false)
Allocate aligned memory, mandate a minimum buffer size.
unsigned int u32
32-bit unsigned integer
int i32
32-bit signed integer
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
u32 m_length
Character count.