String Handling Routines
pilot insurance company toronto acetic acid and calcium carbonate supreme court justice vote mozilla firefox mac os x download video camera for inside car rear view mirror erotic info latin remember woman you are my lucky star midi powerpoint presentation on diabetes setting up a small business canada today hit music where can i listen to classical music machinist employment virtual pinball machine performance bond definition teresas restaurant ashley bond umax scanners make me blind when your eyes close popular names for baby girls made in usa jacket erik the midget wood stapler motorola radios los angeles your mercy goes much deeper naked russian kidney stones pain download love ringtones sage medical products target pharmacy ablation plasma humour ringtone no salt cooking software access point wireless discount codeine 3 manual mazda service free kyocera ringtones tiger woods wife pic used motorcycle for sale in ma online adventure games for kids in nature pattern vikings history pictures ms pac man arcade erotic audio and free download kid programming medal of honor videogame spanish school of riding discount ionamin arthur a levine books nutrition kids apartment northwest las vegas eucation required for a crime scene investigator placebo 20 years second life last names new york state public record buy norvasc teens licking feet six security services 2 rpg stick super sweet blue days mp3 pat oscars restaurants order meridia buy ritalin rock river valley blood center american association of architect anal gallery interracial arts and culture st johns 2006 7 election march texas ol football nyu masters finance add power url will rocket modeler 2 la freeways international freight forwarding uk research paper ideas in psychology tax accountant financial planner san diego precipitation forecast technique vehicle search atp i tennis tour minnesota real estate closers buy effexor download verizon wireless ringtones i soci love your enemies jesus attorney in denver co porsche 911 turbo a 1 auto glass ortho kitchen cabinet door manufacturers articulated office max printer lean lyric rock looking to price things after a fire mbk tuning western blvd regional railroads jenna bush hot pics war destruction pictures mass transit magazines download alltel ringtones les droits des animaux tow ropes arkansas department human resource wood pistol case organ trail 2 runway pics paragraph symbol microsoft word andamans and nicobar islands rome free academy marketing product mix steel bands uk auto new car line restroom superbowl celebrations was bedeutet das network monitors linux the zone diet reviews microsoft anti virus free downloads elder estate real kornakova photos long term car hire usa airway us visa auto gps review system intensity rainfall lol lol lol lol early head start program metro card holders pressure switch square d picture moulding aborigines government saudi family visa register for data protection act matt chapman video potter s wheel johnson central high school infant rash after fever safe gay sex infant coughing list of exits problem repair window xp mouse pad material tv television troubleshooting excel privacy recovery mexico people pictures rn associate degree programs preoperative care mp3 to car adapter mortgage lending companies medical manager sales poster motivation the simpson episode guide madrid centro alemania pregnant woman photos portable air conditioner electronic yugoslavia constitution symptom of autism in adult lyrics love me shooting star video wrestling jared campbell music speed pro performance parts recent sales real estate as facilitator teacher al gulf shore accessory cell dimension pda phone time poems le musique de films de charlie night club in pakistan tradeshows for medical imaging llama por favor trailer park boy quote tank less water heater extravaganza holiday end mortgage open adobe premiere plugins urbana schools im singing in the rain movie oliver twist ibuprophen liver damage animal transportation zoo print shop 8 masters of science in management off road chevy truck photo make a dry erase board suck him dry refinancing auto loans bad credit traduire francais anglais music playing sites asian room designs mobile ultrasound business register tape coupons missouri college basketball schedule pressure switch square d louisiana program recovery 2006 by draft nfl team window spider solitaire free download az corporation form nintendo game boy advance sp cheat optical laser disk lp field escrow agent software
Part 8 - String Handling Routines
Under Construction
void print( string helloworld )
void echo( string helloworld )
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window.
string visit_url( string url )
Accesses the specified URL, manages any applicable redirects (including if the page offered a choice adventure), and returns the HTML of the final response page.
string location_to_url( location place )
Returns the URL that would need to be accessed to visit the specified location.
boolean contains_text( string source, string query )
Reveals if the query string is a substring of the source string.
int extract_meat( string text )
Returns the amount of meat contained in a string passed to it in integer format. For use in k-mail parsing. *Not for use on pending trades.*
int [item] extract_items( string text )
takes the text you have provided and parses it for any items that KoLmafia would have found normally. This means you have access to the built-in pluralization handler as well as the ability to NOT have to lookup description IDs or whatever other loops you had to use to access that information. For use in k-mail parsing. *Not for use on pending trades.*
int length( string text )
Returns the length of the given string.
int index_of( string source, string search )
Returns the first index of a given substring in a string.
int index_of( string source, string search, int start )
Returns the next index of a given substring in a string starting from the given position.
int last_index_of( string source, string search )
Returns the last index of a given substring in a string.
string substring( string source, int startfrom )
Returns the substring of the given string starting from the given character position in the string, and ending at the last character.
string substring( string source, int start, int end )
Returns the substring of the given string starting from the character position indicated by start in the string, and ending at the character position indicated by end.
string replace_string( string source, string search, string replace )
searches the source string for the search string and replaces all instances with the replace string
string url_encode( string text )
string url_decode( string text )
Converts a string text into a formatted string for using with raw URLs or from a formatted string back into âÂÂnormalâ text.
string [int] split_string( string source )
Returns a map of strings which is the passed string split into individual lines. Originally implemented for use when parsing session logs, but may see more uses in the future.
http://kolmafia.us/index.php/topic,794.msg3868.html#msg3868
string [int] split_string( string source, string regex )
string [int,int] group_string( string source, string regex )
see this post located on the script repository for more information: http://kolmafia.us/index.php/topic,451.msg2235.html#msg2235
string [int] session_logs( string player, int day_count ) Gives access to the session logs saved by kolmafia. More details will be added when this function's own page is written. For now, more extensive details can be found here: http://kolmafia.us/index.php/topic,794.msg3879.html#msg3879