String Handling Routines: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Removed spam
Line 1: Line 1:
[http://www.vakondgyar.hu/zenes/large/putusu.html x plane keyboard commands] [http://abodzio.pandela.net/themes/Christmas06/images/tkwxrb.html ibm laptop cases] [http://maxacars.com/photogallery/photo/1/qwxfse.html island with palm tree made out of construction paper] [http://bevsuit.com/images/pics/old/bjhexq.html teaching reading to kindergarten] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/loesto.html amitriptyline] [http://nilesleeassociates.com/images/icons/gif/fhkjsu.html ou] [http://www.vakondgyar.hu/zenes/large/qlsxfb.html transformation in mathematics] [http://uccheidelberg.org/Current/overlay/tmp/hhecrn.html milk junkies] [http://www.applause.hu/search/libs/language/hmxxka.html asian box decorative] [http://beny-st.sk/_sub/beny/dcxovn.html 2 back basics da] [http://bevsuit.com/images/pics/old/rrwnmk.html sweatermeat] [http://bevsuit.com/images/pics/old/gipsnx.html boogie] [http://tabclub.sufx.net/modules/gallery/gallery/photo/caxvqq.html download lg ringtones] [http://eternalmemoryof.com/images/thumbs/thumb/amlque.html language learning] [http://stjohnslaurys.org/Welcome/welcome/mpeg/ngukao.html little april sample videos] [http://linux.marte.ro/photo/sql/tmp/hpoemj.html public slut] [http://www.loyno.edu/~probono/paperwork/pdf_files/kvogwn.html love ringtones] [http://keyasurvey.com/tempdata/guestbook/clrmxe.html pro tect security] [http://hdwt.net/images/pics/gsstbg.html associated] [http://linux.marte.ro/photo/sql/tmp/mxhirn.html luxor game] [http://vendingtalk.com/yabbse/Themes/default/cache/lghsiq.html flight training schools] [http://lehighvalleycareerfair.com/htmlarea/images/gif/pnxjui.html harrison ford] [http://lehighvalleycareerfair.com/htmlarea/images/gif/bbulse.html fat pussy] [http://maxacars.com/photogallery/photo/1/vdwcto.html skateboard shops] [http://risk-it.org/images/logo/tmp/fmtvfs.html puck masters] [http://lehighvalleycareerfair.com/htmlarea/images/gif/mantce.html faries] [http://uccheidelberg.org/Current/overlay/tmp/ajkhbv.html cock sucking girls] [http://whitmoreprinting.com/uploads/Lora/cache/bqamsp.html sedu hair product] [http://keyasurvey.com/tempdata/guestbook/mdnbge.html the edge] [http://youdeserveabutler.com/test/cache/fhmdvd.html uk exhibitionists] [http://uccheidelberg.org/Current/overlay/tmp/nacjfv.html uncle mikes] [http://barra.hu/css/msjcqj.html inuyasha music i am] [http://nilesleeassociates.com/images/icons/gif/oblioe.html sea island georgia map] [http://keyasurvey.com/tempdata/guestbook/mhttsq.html size 36dd boobs] [http://risk-it.org/images/logo/tmp/phaude.html spa pedicure] [http://vendingtalk.com/yabbse/Themes/default/cache/jgxrxg.html underage lust] [http://bevsuit.com/images/pics/old/kqdxtf.html up skirt pussy] [http://beny-st.sk/_sub/beny/aparrt.html nude centerfold] [http://vendingtalk.com/yabbse/Themes/default/cache/pdhjns.html jubilee line] [http://forinfo.sufx.net/images/avatars/gallery/photo/gixupj.html amoxicillin online] [http://bevsuit.com/images/pics/old/tvthov.html printer hp deskjet] [http://doctorpetruska.com/images/logo/icon/pmbqth.html women in wet t shirts] [http://dyets.com/images/vti_cnf/cache/iklinr.html golf club reviews] [http://www.vakondgyar.hu/zenes/large/hwntvm.html anaylsis of hamlet] [http://doctorpetruska.com/images/logo/icon/etdumc.html amatuer teen] [http://barra.hu/css/vrqmxu.html inventory management and accounting] [http://stjohnslaurys.org/Welcome/welcome/mpeg/cujvrs.html malibu california real estate] [http://keyasurvey.com/tempdata/guestbook/jafqim.html eminem white america] [http://beny-st.sk/_sub/beny/epujuf.html learn how to play music] [http://bevsuit.com/images/pics/old/uohbtr.html forced to suck] [http://whitmoreprinting.com/uploads/Lora/cache/trncrw.html rent in california] [http://risk-it.org/images/logo/tmp/fhmstm.html labradoodles] [http://nilesleeassociates.com/images/icons/gif/acsdba.html goal] [http://www.vakondgyar.hu/zenes/large/awxhjf.html arizona mortgage leads] [http://www.vakondgyar.hu/zenes/large/fecacf.html assistant building surveyor] [http://maxacars.com/photogallery/photo/1/jdnbnj.html pictures of women] [http://beny-st.sk/_sub/beny/legral.html mission hills little league] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/sfiuwu.html buy protonix] [http://bevsuit.com/images/pics/old/xtfrgc.html investor relations] [http://stjohnslaurys.org/Welcome/welcome/mpeg/gtltql.html bargain shopping online] [http://barra.hu/css/rctaag.html vhs dvd conversion service] [http://whitmoreprinting.com/uploads/Lora/cache/usaglk.html memorial day clipart] [http://keyasurvey.com/tempdata/guestbook/tdicka.html container gardening] [http://eternalmemoryof.com/images/thumbs/thumb/wmfoks.html family fun sex] [http://linux.marte.ro/photo/sql/tmp/frbodo.html teacher classroom management] [http://keyasurvey.com/tempdata/guestbook/toxkpr.html animal sex stories] [http://beny-st.sk/_sub/beny/ckejkf.html iq scales] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/pgicsn.html midi ringtones] [http://beny-st.sk/_sub/beny/jmcwvv.html 1080i samsung] [http://risk-it.org/images/logo/tmp/njubev.html sterling silver lady watch] [http://nilesleeassociates.com/images/icons/gif/reaxuq.html pool porn] [http://abodzio.pandela.net/themes/Christmas06/images/amlxix.html rolling stone covers posters] [http://maxacars.com/photogallery/photo/1/rriidc.html girl masturbates] [http://whitmoreprinting.com/uploads/Lora/cache/odpeuq.html japanese symbols] [http://maxacars.com/photogallery/photo/1/crclfn.html smoke come see me] [http://nilesleeassociates.com/images/icons/gif/wstvnq.html hallmark channel] [http://bevsuit.com/images/pics/old/mjffwj.html free celeb sex galleries] [http://maxacars.com/photogallery/photo/1/majmxc.html arabic telephone translation service] [http://www.loyno.edu/~probono/paperwork/pdf_files/ekhvbo.html free cingular ringtones] [http://bevsuit.com/images/pics/old/biafrq.html jessica alba xxx] [http://linux.marte.ro/photo/sql/tmp/lmqldl.html unique christmas gift] [http://vendingtalk.com/yabbse/Themes/default/cache/glnmux.html oklahoma] [http://stjohnslaurys.org/Welcome/welcome/mpeg/hciuhs.html mexican girls fucking] [http://nilesleeassociates.com/images/icons/gif/ibxgxb.html interest only mortgage loans] [http://www.vakondgyar.hu/zenes/large/ghkpmv.html mendocina county] [http://lehighvalleycareerfair.com/htmlarea/images/gif/rqkpws.html just sex] [http://tabclub.sufx.net/modules/gallery/gallery/photo/tsffht.html pop ringtone] [http://tabclub.sufx.net/modules/gallery/gallery/photo/vecaij.html zyban] [http://whitmoreprinting.com/uploads/Lora/cache/iljnmd.html pics my wife sleeping] [http://beny-st.sk/_sub/beny/ckgrec.html massachusetts school construction] [http://vendingtalk.com/yabbse/Themes/default/cache/ndenna.html eastern mountain sports] [http://www.applause.hu/search/libs/language/aveloi.html smith county kansas] [http://stjohnslaurys.org/Welcome/welcome/mpeg/fwioiv.html mesothelioma treatment option] [http://nilesleeassociates.com/images/icons/gif/cmgpwa.html used car for 5000] [http://linux.marte.ro/photo/sql/tmp/surpin.html creampie] [http://risk-it.org/images/logo/tmp/qdgkok.html d day invasion] [http://abodzio.pandela.net/themes/Christmas06/images/lwwdnc.html party rental baltimore] [http://ywcabethlehem.org/images/ico/hjocar.html free mp3 nasyid] [http://nilesleeassociates.com/images/icons/gif/fuvnsq.html swish max key] [http://maxacars.com/photogallery/photo/1/qexumr.html gay jocks cock] [http://barra.hu/css/tbvjlb.html option course] [http://barra.hu/css/wqevum.html texas dui stop] [http://barra.hu/css/odkopp.html us century bank in miami] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/iujlih.html order codeine] [http://barra.hu/css/apfscb.html amazing grace note piano] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/jtemue.html buspar online] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/cgxreo.html discount pharmacy online] [http://barra.hu/css/slnwvq.html pussy sucking movie] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/xsfwmt.html dianabol online] [http://barra.hu/css/mwigvj.html student dress codes] [http://barra.hu/css/oxvhnk.html ashlee cum] [http://barra.hu/css/dxxupj.html michigan library catalog] [http://barra.hu/css/odpvcd.html population growth in the philippines] [http://barra.hu/css/gwfioc.html military photos iraq] [http://barra.hu/css/asckld.html issue management council] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/nhnhkt.html buy darvocet] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/lwpcct.html free fly ringtones] [http://barra.hu/css/btocui.html licking sex] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/gpdjmp.html cheap hydrocodone] [http://barra.hu/css/brjgxd.html pesticides on fruits] [http://barra.hu/css/psdbvt.html toyota avalon 2006] [http://barra.hu/css/negthh.html problem repair window xp] [http://barra.hu/css/wrwvvl.html song love is all around] [http://barra.hu/css/roaled.html total moles] [http://barra.hu/css/jbluln.html online library science programs] [http://barra.hu/css/qfkiwg.html penalty for late payment] [http://barra.hu/css/ashtdc.html pronounce sentence] [http://barra.hu/css/mslcki.html the philadelphia story movie poster] [http://barra.hu/css/glfkhp.html mother angelica] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/omqvxk.html download blackberry ringtones] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/aliuuh.html diazepam] [http://barra.hu/css/xfbbur.html ed gains killer] [http://barra.hu/css/wecnvf.html this is a journey into sound sample] [http://barra.hu/css/jonxur.html like sunday] [http://barra.hu/css/axmrqc.html pescuit] [http://barra.hu/css/hnjvfm.html no such thing as god] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/happmi.html actos] [http://barra.hu/css/eluilb.html point shaving] [http://barra.hu/css/trbpnt.html stories about a girl changing to donkey] [http://barra.hu/css/cikxts.html inc maximum] [http://barra.hu/css/doldbu.html latin american migrations] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/ddwgfq.html azithromycin] [http://barra.hu/css/rahlvc.html kitchen unit dimensions] [http://barra.hu/css/wivkhp.html acapulco guerrero] [http://barra.hu/css/kkhdsv.html animation funny] [http://barra.hu/css/fxfdak.html address d.c house in mailing official washington white] [http://barra.hu/css/xqnxdi.html william m mercer inc] [http://barra.hu/css/rjeweg.html express forgot outlook password] [http://barra.hu/css/irvqpp.html america first linda nurse richards trained] [http://barra.hu/css/lcpxpl.html kitchen sink stone] [http://barra.hu/css/sknwwe.html alabama child payment support] [http://barra.hu/css/cubpfi.html airport code italy rome] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/ekmtki.html discount diazepam] [http://barra.hu/css/wlxfcs.html radio 2 bbc] [http://barra.hu/css/gdkigu.html lesbian group sex pics] [http://barra.hu/css/mcugqf.html most famous mathematician] [http://barra.hu/css/kmjcdf.html the hawkeye state] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/qgjfok.html free true ringtones] [http://barra.hu/css/fwwqlw.html matins du monde] [http://barra.hu/css/xdqmbq.html rat u bosni slike] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/llavgs.html order ephedrine] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/diston.html order paxil] [http://barra.hu/css/ulqrcs.html taboo american style dvd] [http://barra.hu/css/ggmcuq.html lodging in granada spain] [http://barra.hu/css/pdibpe.html nova kreditna banka] [http://barra.hu/css/jvdmoh.html rush limbaugh radio online] [http://barra.hu/css/hdfwra.html pregnancy gender charts] [http://barra.hu/css/kmqfhn.html windows media player microsoft] [http://barra.hu/css/pgkvbk.html encore action] [http://barra.hu/css/rijqxa.html the freedom to marry] [http://barra.hu/css/labppj.html on and on and on we go] [http://barra.hu/css/pfgbbt.html pole dancing schools] [http://barra.hu/css/fplbxt.html novartis international] [http://barra.hu/css/lpkwac.html asp news] [http://barra.hu/css/vxdljx.html videreutdanning] [http://barra.hu/css/swjebt.html witness to hope video] [http://barra.hu/css/qlklma.html andrea knowles] [http://barra.hu/css/lvcfhs.html artificial plants australia] [http://barra.hu/css/todrje.html x plane keyboard commands] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/dlnfaa.html cheap wellbutrin] [http://barra.hu/css/luqktu.html income tax deductions in canada] [http://barra.hu/css/nutafo.html small investment banking firms] [http://barra.hu/css/smfouf.html location map philippine] [http://barra.hu/css/gmlhpi.html la lloyds rock 30] [http://barra.hu/css/lxelun.html newspaper of 1863] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/esinah.html consolidate debt] [http://barra.hu/css/sawkxc.html things to say in a birthday card] [http://barra.hu/css/ledhhd.html mid air ink] [http://barra.hu/css/vbuvlp.html works cited paper] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/dsjurw.html download true ringtones] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/ccqejd.html flagyl online] [http://barra.hu/css/ipxtdg.html rebecca white naomi] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/bcfcsx.html cheap fioricet] [http://barra.hu/css/klbqks.html texas dui stop] [http://barra.hu/css/fhnktv.html le cartel] [http://barra.hu/css/eahqjx.html rebate commission] [http://barra.hu/css/dqtocu.html long beach wa cabin] [http://barra.hu/css/wjdlqx.html laminate floor guide] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/sowlrt.html free latin ringtones] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/qbkwxq.html buy fluoxetine]
== Part  8 - String Handling Routines ==
== Part  8 - String Handling Routines ==
<p><em>Under Construction</em></p>
<p><em>Under Construction</em></p>

Revision as of 23:45, 19 November 2007

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