Table of Contents
- Monkey
- Arrays
- Map
- Strings
Strings
string str_slice( string str , int start [, int end] )
str | string | The string to be sliced. |
start | int | The starting position of the slice. |
end | int | The end position of the slice. |
string str_substr( string str , int start [, int length] )
str | string | The string to be sliced. |
start | int | The starting position of the slice. |
length | int | The length of the slice. |
int str_length( string str )
str | string | The string thats length will be returned. |
bool str_compare( string strA , string strB )
strA | string | The string that's going to be compared to strB. |
strB | string | The string that's going to be compared to strA. |
int str_find( string str , string subStr [, int start = 0] )
str | string | The string to be searched. |
subStr | string | The substring of the string to be searched inside the string. |
start | int | The starting index for which subStr will be searched inside the string. |
int str_find_last( string str , string subStr [, int start = 0] )
str | string | The string to be searched. |
subStr | string | The substring to be searched inside the string. |
start | int | The starting index for which subStr will be searched inside the string. |
bool str_contains( string str , string subStr )
str | string | The string to be searched. |
subStr | string | The substring to be searched inside the string. |
bool str_starts_with( string str , string subStr )
str | string | The string to be searched. |
subStr | string | The substring to be searched inside the string. |
bool str_ends_with( string str , string subStr )
str | string | The string to be searched. |
subStr | string | The substring to be searched inside the string. |
string str_to_upper( string str )
str | string | The string to be uppercased. |
string str_to_lower( string str )
str | string | The string to be lowercased. |
string str_trim( string str )
str | string | The string to be trimmed. |
array str_split( string str [, string separator] )
str | string | The string to be split. |
separator | string | The substring that the string is split by. |
array str_to_char( string str [, int index = 0] )
str | string | The char to be converted. |
index | int | The index of the char to be returned inside str. |
array str_to_chars( string str )
str | string | The string to be converted. |
string str_join( string delimiter , array pieces )
delimiter | string | The string that separates each of the elements in the array |
pieces | array | An array containing the pieces to be joined |
string str_from_char( int char )
char | int | The character code to be converted. |
string str_from_chars( array chars )
chars | array | The array containing the character codes to be converted. |