String Handling Routines: Difference between revisions
imported>Bale RFI goes away |
imported>Bale cat |
||
Line 40: | Line 40: | ||
{{Flink|buffer|append_replacement|matcher|buffer|string}} | {{Flink|buffer|append_replacement|matcher|buffer|string}} | ||
{{Flink|buffer|append_tail|matcher|buffer|desc=Appends the text returned by a matcher to the end of the buffer.}} | {{Flink|buffer|append_tail|matcher|buffer|desc=Appends the text returned by a matcher to the end of the buffer.}} | ||
[[Category:ASH Scripting]] |
Revision as of 05:02, 21 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, int )
buffer insert( buffer, int, string )
Regular Expressions
It is advised that anyone desiring to use these functions should first understand the basics of Regular Expressions and how these functions implement that language.
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 )