String Handling Routines: Difference between revisions
imported>StDoodle mNo edit summary |
imported>Bale move time functions to miscellaneous page |
||
Line 3: | Line 3: | ||
{{Flink|string|to_lower_case|string|desc=Converts all upper-case alphabetic characters to lower-case.}} | {{Flink|string|to_lower_case|string|desc=Converts all upper-case alphabetic characters to lower-case.}} | ||
{{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|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 09:33, 26 January 2011
Simple
string to_lower_case( string )
string to_upper_case( string )
string to_url( location )
boolean contains_text( string, string )
int [item] extract_items()
int length( string )
string char_at( string, index )
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] 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] )
string [int,int] group_string( string, 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 )