_str = String.InternalAllocateStr ((length > capacity) ? length : capacity);
if (length > 0)
- String.InternalStrcpy(_str, 0, value, startIndex, length);
+ String.CharCopy (_str, 0, value, startIndex, length);
_length = length;
}
// Copy everything after the 'removed' part to the start
// of the removed part and truncate the sLength
if (_length - (startIndex + length) > 0)
- String.InternalStrcpy (_str, startIndex, _str, startIndex + length, _length - (startIndex + length));
+ String.CharCopy (_str, startIndex, _str, startIndex + length, _length - (startIndex + length));
_length -= length;
string end = _str.Substring (startIndex + count, _length - startIndex - count );
- String.InternalStrcpy (_str, startIndex, replace);
- String.InternalStrcpy (_str, startIndex + replace.Length, end);
+ String.CharCopy (_str, startIndex, replace, 0, replace.Length);
+ String.CharCopy (_str, startIndex + replace.Length, end, 0, end.Length);
_length = replace.Length + (_length - count);
if (null != _cached_str || _str.Length < needed_cap)
InternalEnsureCapacity (needed_cap);
- String.InternalStrcpy (_str, _length, value);
+ String.CharCopy (_str, _length, value, 0, value.Length);
_length = needed_cap;
return this;
if (null != _cached_str || _str.Length < needed_cap)
InternalEnsureCapacity (needed_cap);
- String.InternalStrcpy (_str, _length, value);
+ String.CharCopy (_str, _length, value, 0, value.Length);
_length = needed_cap;
return this;
}
int needed_cap = _length + charCount;
InternalEnsureCapacity (needed_cap);
- String.InternalStrcpy (_str, _length, value, startIndex, charCount);
+ String.CharCopy (_str, _length, value, startIndex, charCount);
_length = needed_cap;
return this;
if (null != _cached_str || _str.Length < needed_cap)
InternalEnsureCapacity (needed_cap);
- String.InternalStrcpy (_str, _length, value, startIndex, count);
+ String.CharCopy (_str, _length, value, startIndex, count);
_length = needed_cap;
InternalEnsureCapacity (_length + value.Length);
// Move everything to the right of the insert point across
- String.InternalStrcpy (_str, index + value.Length, _str, index, _length - index);
+ String.CharCopyReverse (_str, index + value.Length, _str, index, _length - index);
// Copy in stuff from the insert buffer
- String.InternalStrcpy (_str, index, value);
+ String.CharCopy (_str, index, value, 0, value.Length);
_length += value.Length;
InternalEnsureCapacity (_length + 1);
// Move everything to the right of the insert point across
- String.InternalStrcpy (_str, index + 1, _str, index, _length - index);
+ String.CharCopyReverse (_str, index + 1, _str, index, _length - index);
_str.InternalSetChar (index, value);
_length++;
string tmp = String.InternalAllocateStr (capacity);
if (_length > 0)
- String.InternalStrcpy (tmp, 0, _str, 0, _length);
+ String.CharCopy (tmp, 0, _str, 0, _length);
_str = tmp;
}