strdel
Description:
Function strdel delete part of a string.
This function name starts with a lowercase letter. |
Parameters:
(string[], start, end)
string | string | The string to delete part of. |
int | start | The position of the first character to delete. |
int | end | The position of the last character to delete. |
Return Values:
This function does not return any specific values.
Examples:
new string[42] = "We will delete everything apart from this"; strdel(string, 0, 37); // string is now "this"
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- strlen: Get the length of a string.
- strpack: Pack a string. Packed strings use 75% less memory.
- strunpack: Unpack a string.
- strcat: Concatenates (joins together) two strings into the destination string.
- strmid: Extract a range of characters from a string.
- strins: Insert a string into another string.
- strcmp: Compares two strings to see if they are the same.
- strfind: Search for a sub string in a string.
- strval: Convert a string to an integer.
- valstr: Convert an integer into a string.
- ispacked: Checks if the given string is packed.
- uudecode: Decode an UU-encoded string.
- uuencode: Encode a string to an UU-decoded string.
- memcpy: Copy bytes from one location to another.