String Handling Routines: Difference between revisions
imported>StDoodle |
imported>Heeheehee |
||
Line 20: | Line 20: | ||
{{Flink|string [int]|session_logs|{{opt|string}}|int|desc=Gives access to sessions logs. And stuff. [http://kolmafia.us/showthread.php?t=573]}} | {{Flink|string [int]|session_logs|{{opt|string}}|int|desc=Gives access to sessions logs. And stuff. [http://kolmafia.us/showthread.php?t=573]}} | ||
{{Flink|buffer|append|buffer|string|desc=Appends the string to the end of the buffer.}} | {{Flink|buffer|append|buffer|string|desc=Appends the string to the end of the buffer.}} | ||
{{Flink|buffer|delete|buffer|int|string|desc=Deletes the specified portion of the buffer.}} | |||
{{Flink|buffer|insert|buffer|int|int|desc=Inserts the string at the specified point in the buffer.}} | |||
==Regular Expressions== | ==Regular Expressions== |
Revision as of 04:59, 20 April 2010
Simple
string to_lower_case( string )
string to_upper_case( string )
string today_to_string()
string visit_url( 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 )
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 )
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)