String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Kidoblivious
mNo edit summary
No edit summary
Line 1: Line 1:
[http://motorolafaxmodem.longroot.info/ motorola fax modem] [http://nokia3230.longroot.info/ nokia 3230] [http://dights.info/web/clothingbargains.html clothing bargains] [http://m-and-an.info/plymouthroadrunner/ plymouth roadrunner] [http://dights.info/web/carafate.html carafate] [http://radiosaid.info/blog/tracfoneprogramming.html tracfone programming codes] [http://couplefucking.runfish.info/ couple fucking] [http://dights.info/web/cdoryboats.html c dory boats] [http://propoxyphene-n.threader.info/ propoxyphene-n] [http://onlinefabric.alexinic.info/ online fabric] [http://gamesfreepc.runfish.info/ games free pc downloads] [http://ringbacktones.runfish.info/ ringback tones] [http://m-and-an.info/ m-and-an.info] [http://radiosaid.info/blog/bestcellphoneprepaid.html best cell phone prepaid service] [http://radiosaid.info/blog/adults.html adults] [http://floridalotto.tiptilt.info/ florida lotto] [http://pharmacytechnician.longroot.info/ pharmacy technician jobs] [http://asianmen.runfish.info/ asian men] [http://tranxene.longroot.info/ tranxene] [http://pornonocreditcard.alexinic.info/ porno no credit card] [http://konicaminolta.threader.info/ konica minolta] [http://urbanrebound.longroot.info/ urban rebound] [http://m-and-an.info/unlistedphone/ unlisted phone number] [http://hydrocortisone.dirges.info/ hydrocortisone] [http://wreath.runfish.info/ wreath] [http://lowthyroidsymptom.threader.info/ low thyroid symptom] [http://asssex.dirges.info/ ass sex] [http://gastricband.dirges.info/ gastric band] [http://weldingprocedures.alexinic.info/ welding procedures] [http://pradareplicahandbag.dirges.info/ prada replica handbag] [http://vuarnet.tiptilt.info/ vuarnet] [http://loseweightwhile.longroot.info/ lose weight while you sleep] [http://vore.threader.info/ vore] [http://dights.info/web/avgantivirus.html avg antivirus free edition] [http://bratzgame.alexinic.info/ bratz game] [http://dights.info/web/lungcancerdrugs.html lung cancer drugs] [http://radiosaid.info/blog/accreditedonline.html accredited online electronics engineering degree] [http://radiosaid.info/blog/bettingexchange.html betting exchange] [http://penileenhancement.longroot.info/ penile enhancement] [http://phytyl.info/topic/moneytransfers.html money transfers] [http://m-and-an.info/johnnycash/ johnny cash] [http://deck.longroot.info/ deck] [http://radiosaid.info/blog/truckbedcover.html truck bed cover] [http://cumnorthpeter.runfish.info/ cum north peter shot] [http://phytyl.info/topic/iliketomoveitmp3.html i like to move it mp3] [http://m-and-an.info/currentmortgage/ current mortgage rate] [http://torrent.longroot.info/ torrent] [http://analsextoys.threader.info/ anal sex toys] [http://radiosaid.info/blog/varsitycheerleading.html varsity cheerleading uniform] [http://amsterdamcheap.runfish.info/ amsterdam cheap hotel] [http://enemastories.tiptilt.info/ enema stories] [http://timesheet.runfish.info/ timesheet] [http://m-and-an.info/tampatushyfest/ tampa tushy fest] [http://dights.info/web/sanandreas.html san andreas] [http://shootingstartatoos.runfish.info/ shooting star tatoos] [http://phytyl.info/ phytyl.info] [http://hondaridgeline.dirges.info/ honda ridgeline] [http://dights.info/web/ibuprofen800mg.html ibuprofen 800mg] [http://cheapperfume.tiptilt.info/ cheap perfume] [http://weddinggiftbasket.longroot.info/ wedding gift basket] [http://photosrussian.dirges.info/ photos russian women] [http://m-and-an.info/hardware/ hardware] [http://phytyl.info/topic/homedepotprintable.html home depot printable coupons] [http://radiosaid.info/blog/coffeeandcaffeine.html coffee and caffeine] [http://customcarpartand.tiptilt.info/ custom car part and accessory] [http://nudeart.runfish.info/ nude art] [http://corduroyskirt.dirges.info/ corduroy skirt] [http://southafricaphone.longroot.info/ south africa phone directory] [http://philipsremotecodes.tiptilt.info/ philips remote codes] [http://phytyl.info/topic/westsidemusic.html west side music codes] [http://dights.info/web/hersheyschocolate.html hersheys chocolate] [http://ultimatesurrender.threader.info/ ultimate surrender] [http://tiptilt.info/index4_250.html map] [http://collectableantiques.threader.info/ collectable antiques] [http://wholesaleperfume.dirges.info/ wholesale perfume] [http://freeadawarespyware.longroot.info/ free adaware spyware] [http://dights.info/web/wirelessprinter.html wireless printer] [http://m-and-an.info/skimpybikini/ skimpy bikini] [http://americangolf.alexinic.info/ american golf] [http://dights.info/web/youngsexpics.html young sex pics] [http://ocn.dirges.info/ ocn] [http://demfranchizeboyz.dirges.info/ dem franchize boyz ridin rims] [http://phytyl.info/topic/us3000airlines.html us3000 airlines] [http://weddingsongfor.longroot.info/ wedding song for reception] [http://m-and-an.info/nataliegulbis/ natalie gulbis] [http://dights.info/web/vacationcruises.html vacation cruises] [http://dights.info/web/obesitystatistics.html obesity statistics] [http://formalpromhairstyles.tiptilt.info/ formal prom hair styles] [http://isagenixreview.runfish.info/ isagenix review] [http://heeljob.dirges.info/ heeljob] [http://radiosaid.info/blog/amityvillehorror.html amityville horror house] [http://pregnantporn.longroot.info/ pregnant porn] [http://namemeaning.runfish.info/ name meaning] [http://m-and-an.info/businesssoftware/ business software] [http://dights.info/web/singleparents.html single parents] [http://bankofamerica.tiptilt.info/ bankofamerica] [http://homedepotstore.dirges.info/ home depot store] [http://smock.runfish.info/ smock] [http://stressrelief.tiptilt.info/ stress relief] [http://alexinic.info/index3_250.html site]
== Part  8 - String Handling Routines ==
== Part  8 - String Handling Routines ==
<p><em>Under Construction</em></p>
<p><em>Under Construction</em></p>
Line 33: Line 34:
<p><strong>string url_encode( string text )</strong><br>
<p><strong>string url_encode( string text )</strong><br>
<strong>string url_decode( string text )</strong><br>
<strong>string url_decode( string text )</strong><br>
Converts a string text into a formatted string for using with raw URLs or from a formatted string back into “normal” text.</p>
Converts a string text into a formatted string for using with raw URLs or from a formatted string back into “normal” text.</p>


<p><strong>string [int] split_string( string source )</strong><br>
<p><strong>string [int] split_string( string source )</strong><br>

Revision as of 15:24, 9 November 2007

motorola fax modem nokia 3230 clothing bargains plymouth roadrunner carafate tracfone programming codes couple fucking c dory boats propoxyphene-n online fabric games free pc downloads ringback tones m-and-an.info best cell phone prepaid service adults florida lotto pharmacy technician jobs asian men tranxene porno no credit card konica minolta urban rebound unlisted phone number hydrocortisone wreath low thyroid symptom ass sex gastric band welding procedures prada replica handbag vuarnet lose weight while you sleep vore avg antivirus free edition bratz game lung cancer drugs accredited online electronics engineering degree betting exchange penile enhancement money transfers johnny cash deck truck bed cover cum north peter shot i like to move it mp3 current mortgage rate torrent anal sex toys varsity cheerleading uniform amsterdam cheap hotel enema stories timesheet tampa tushy fest san andreas shooting star tatoos phytyl.info honda ridgeline ibuprofen 800mg cheap perfume wedding gift basket photos russian women hardware home depot printable coupons coffee and caffeine custom car part and accessory nude art corduroy skirt south africa phone directory philips remote codes west side music codes hersheys chocolate ultimate surrender map collectable antiques wholesale perfume free adaware spyware wireless printer skimpy bikini american golf young sex pics ocn dem franchize boyz ridin rims us3000 airlines wedding song for reception natalie gulbis vacation cruises obesity statistics formal prom hair styles isagenix review heeljob amityville horror house pregnant porn name meaning business software single parents bankofamerica home depot store smock stress relief site

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