You must be logged in to do that.

strovr

strovr
string strovr(int offset, string rep, string source)

Documentation

Ding.

Example Usage

string strovr(int offset, string rep, string source)
// Pass: The offset in the source to overwrite from, the string to overwrite with, the source string
// Return: The string after overwrite
// Assmes: Offset is less than source length
{
	int length = len(source);
	if (length < len(rep) + offset) return left(source, offset) + rep;
	return left(source, offset) + rep + right(source, length - offset - len(rep));
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Doc Nav

Your docs
View All Docs

If you log in, you can edit the documentation, or create your own documents and tutorials!

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.