String Handling Routines: Difference between revisions
imported>Bale Add 1 more missing function. |
imported>Bale visit_url is for adventuring, not string handling! Moving it. |
||
Line 3: | Line 3: | ||
{{Flink|string|to_upper_case|string|desc=Converts all lower-case alphabetic characters to upper-case.}} | {{Flink|string|to_upper_case|string|desc=Converts all lower-case alphabetic characters to upper-case.}} | ||
{{Flink|string|today_to_string|desc=Returns the current day in ISO format (based on your computer's settings).}} | {{Flink|string|today_to_string|desc=Returns the current day in ISO format (based on your computer's settings).}} | ||
{{Flink|string|to_url|location|desc=Returns the url which is accessed to visit the specified location.}} | {{Flink|string|to_url|location|desc=Returns the url which is accessed to visit the specified location.}} | ||
{{Flink|boolean|contains_text|string|string|desc=Returns true if the second string is found as a substring of the first.}} | {{Flink|boolean|contains_text|string|string|desc=Returns true if the second string is found as a substring of the first.}} |
Revision as of 07:24, 5 May 2010
Simple
string to_lower_case( string )
string to_upper_case( string )
string today_to_string()
string to_url( location )
boolean contains_text( string, string )
int [item] extract_items()
int length( string )
int index_of( string, string, [int] )
int last_index_of( string, string )
string substring( string, int, [int] )
buffer replace_string( buffer, string, string )
buffer replace_string( string, string, string )
buffer replace( buffer, int, int, string )
string url_encode( string )
string url_decode( string )
string [int] split_string( string, [string] )
string [int,int] group_string( string, string )
string [int] session_logs( [string], int )
buffer append( buffer, string )
void set_length( buffer, int )
buffer delete( buffer, int, string )
buffer insert( buffer, int, int )
Regular Expressions
matcher create_matcher( string, string )
matcher reset( matcher, [string] )
boolean find( matcher )
string group( matcher, [int] )
string replace_all( matcher, string )
string replace_first( matcher, string )
buffer append_replacement( matcher, buffer, string )
buffer append_tail( matcher, buffer )
Attention KoLmafia Experts!
We need your help; some details of this function's operation are unknown or unclear.
The following specific questions have been raised:
- Argh, anyone comfortable with regex who wants to fill in the blanks?
- Please? (Feel free to ignore formatting and just describe what happens)