<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=192.115.104.88</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=192.115.104.88"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/192.115.104.88"/>
	<updated>2026-04-25T02:24:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=String_Handling_Routines&amp;diff=1327</id>
		<title>String Handling Routines</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=String_Handling_Routines&amp;diff=1327"/>
		<updated>2007-11-03T01:39:31Z</updated>

		<summary type="html">&lt;p&gt;192.115.104.88: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://copperwise.byethost13.com/html/us-passports.html us passports] [http://ariavaswen.22web.net/description/excel-exercise/ excel exercise log] [http://cykeout.byethost13.com/resources/java-date.html java date and time functions] [http://fnor.22web.net/text/rochford/ rochford] [http://urockworld.marte.ro/black-hair.html black hair salon] [http://kasumikawaii.byethost13.com/articles/excel-formula/ excel formula in logical microsoft] [http://antimil.uv.ro/small/virtual-poker.html virtual poker] [http://antimil.uv.ro/small/low-rider.html low rider magizine] [http://uncloudedwindow.sapte.ro/data/free-reverse.html free reverse phone directory] [http://nymphatacita.talk4fun.net/propaganda-stalin/ propaganda stalin] [http://kasumikawaii.byethost13.com/articles/individuo-y/ individuo y comunidad] [http://oktagudent.totalh.com/view/entangled-states/ entangled states] [http://bervera.talk4fun.net/description/www-eplan/ www eplan] [http://astw56.uv.ro/styles/secret-ringtone/ secret ringtone] [http://jazzyjoe.byethost13.com/content/trailer-park.html trailer park boy quote] [http://nymphatacita.talk4fun.net/post-office/ post office jacksonville north carolina] [http://theeblog.22web.net/data/microphone-stand/ microphone stand desktop] [http://ariavaswen.22web.net/description/when-we/ when we awaken the dead] [http://oktagudent.totalh.com/view/american-history/ american history syllabus] [http://bervera.talk4fun.net/description/play-any/ play any media file] [http://robotqueen.uv.ro/library/toys/ toys] [http://chuchundramc.marte.ro/view/porn-stars.html porn stars] [http://nymphatacita.talk4fun.net/sickle-cell/ sickle cell anemia researchers] [http://astw56.uv.ro/styles/motorcycles/ motorcycles] [http://nymphatacita.talk4fun.net/wv-tax/ wv tax and revenue] [http://oktagudent.totalh.com/view/ebay-overstockcom/ ebay overstockcom] [http://radicaldreamerr.byethost13.com/new/a-count.html a count down] [http://ariavaswen.22web.net/description/mustang-florida/ mustang florida classic] [http://oktagudent.totalh.com/view/include-files/ include files aspx] [http://kasumikawaii.byethost13.com/articles/marty-bell/ marty bell art] [http://antimil.uv.ro/small/currency-rate.html currency rate] [http://ariavaswen.22web.net/description/kentucky-individual/ kentucky individual income tax forms] [http://ariavaswen.22web.net/description/episode-guide/ episode guide show spoiler television] [http://cykeout.byethost13.com/resources/movie-myspace.html movie myspace layouts] [http://kinkyjedi.byethost13.com/blog/sony-ringtones.html sony ringtones] [http://chuchundramc.marte.ro/view/free-nextel.html free nextel phone ringtones] [http://cykeout.byethost13.com/resources/york-central.html york central hospital richmond hill on] [http://kinkyjedi.byethost13.com/blog/order-xanax.html order xanax] [http://bervera.talk4fun.net/description/space-fighter/ space fighter game] [http://chuchundramc.marte.ro/view/high-risk.html high risk lenders poor credit personal loans] [http://thedrea.uv.ro/text/job-search/ job search] [http://theeblog.22web.net/data/swimming-pool/ swimming pool landscaping photo] [http://robotqueen.uv.ro/library/pro-tools/ pro tools plugins] [http://cykeout.byethost13.com/resources/-deville.html 2000 deville] [http://fnor.22web.net/text/mediation-inc/ mediation inc florida] [http://thedrea.uv.ro/text/serving-cart/ serving cart] [http://kinkyjedi.byethost13.com/blog/rental-truck.html rental truck] [http://cykeout.byethost13.com/resources/-best.html 100 best films of all time] [http://urockworld.marte.ro/pnc-bank.html pnc bank] [http://antimil.uv.ro/small/free-screen.html free screen savers] [http://urockworld.marte.ro/tattoo-designs.html tattoo designs] [http://kinkyjedi.byethost13.com/blog/cheap-norco.html cheap norco] [http://oktagudent.totalh.com/view/madison-county/ madison county property search] [http://kinkyjedi.byethost13.com/blog/valium-online.html valium online] [http://copperwise.byethost13.com/html/ford-dealers.html ford dealers] [http://astw56.uv.ro/styles/system/ system] [http://kinkyjedi.byethost13.com/blog/info-penis.html info penis remember thick] [http://oktagudent.totalh.com/view/textbook-evaluation/ textbook evaluation criteria] [http://kinkyjedi.byethost13.com/blog/criminal-background.html criminal background check] [http://thedrea.uv.ro/text/generic-zoloft/ generic zoloft] [http://kasumikawaii.byethost13.com/articles/new-jersey/ new jersey camping island beach] [http://kinkyjedi.byethost13.com/blog/business-loan.html business loan] [http://fnor.22web.net/text/sensors-expo/ sensors expo conference] [http://jazzyjoe.byethost13.com/content/logo-mls.html logo mls realtor] [http://oktagudent.totalh.com/view/super-transporter/ super transporter] [http://uncloudedwindow.sapte.ro/data/putin.html putin] [http://kinkyjedi.byethost13.com/blog/download-alltel.html download alltel ringtones] [http://robotqueen.uv.ro/library/buy-fioricet/ buy fioricet] [http://copperwise.byethost13.com/html/lighting.html lighting] [http://chuchundramc.marte.ro/view/hot-porn.html hot porn] [http://thedrea.uv.ro/text/shower-enclosures/ shower enclosures] [http://thedrea.uv.ro/text/motorola-mobile/ motorola mobile phone] [http://copperwise.byethost13.com/html/free-online.html free online course] [http://kasumikawaii.byethost13.com/articles/kitten-care/ kitten care tip] [http://shadowfallen.totalh.com/data/army-of/ army of the night] [http://kinkyjedi.byethost13.com/blog/business-school.html business school] [http://oktagudent.totalh.com/view/statute-tennessee/ statute tennessee] [http://jazzyjoe.byethost13.com/content/lyric-now.html lyric now that i have you by the company] [http://copperwise.byethost13.com/html/lung-cancer.html lung cancer drugs] [http://oktagudent.totalh.com/view/mining-regions/ mining regions] [http://jazzyjoe.byethost13.com/content/window-.html window 2003 sp2] [http://astw56.uv.ro/styles/air-asia/ air asia ticket] [http://theeblog.22web.net/data/the-acreage/ the acreage] [http://fnor.22web.net/text/the-best/ the best cash paid online survey] [http://fnor.22web.net/text/after-dark/ after dark mac os x] [http://shadowfallen.totalh.com/data/poetry-book/ poetry book review] [http://bervera.talk4fun.net/description/the-way/ the way he made me feel book] [http://astw56.uv.ro/styles/nokia/ nokia 3220] [http://oktagudent.totalh.com/view/limited-store/ limited store location] [http://thedrea.uv.ro/text/e-mail/ e mail list] [http://kinkyjedi.byethost13.com/blog/punk-ringtone.html punk ringtone] [http://theeblog.22web.net/data/zeroconf-windows/ zeroconf windows] [http://antimil.uv.ro/small/carmen-electra.html carmen electra poster] [http://cykeout.byethost13.com/resources/old-western.html old western town] [http://copperwise.byethost13.com/html/adware-free.html adware free remover spyware] [http://urockworld.marte.ro/teen-group.html teen group sex] [http://theeblog.22web.net/data/lecturer-in/ lecturer in economics] [http://astw56.uv.ro/styles/garden-lanterns/ garden lanterns candle] [http://oktagudent.totalh.com/view/system-not/ system not booting up] [http://arguas.pluto.ro/lib/free-address.html free address finder] &lt;br /&gt;
== Part  8 - String Handling Routines ==&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Under Construction&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void print( string helloworld )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;void echo( string helloworld )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string visit_url( string url )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string location_to_url( location place )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the URL that would need to be accessed to visit the specified location.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean contains_text( string source, string query )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Reveals if the query string is a substring of the source string.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int extract_meat( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
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.*&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int [item] extract_items( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
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.*&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int length( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the length of the given string.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int index_of( string source, string search )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the first index of a given substring in a string.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int index_of( string source, string search, int start )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the next index of a given substring in a string starting from the given position.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int last_index_of( string source, string search )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the last index of a given substring in a string.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string substring( string source, int startfrom )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the substring of the given string starting from the given character position in the string, and ending at the last character.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string substring( string source, int start, int end )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string replace_string( string source, string search, string replace )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
searches the source string for the search string and replaces all instances with the replace string&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string url_encode( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string url_decode( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Converts a string text into a formatted string for using with raw URLs or from a formatted string back into Ã¢â¬ÅnormalÃ¢â¬Â text.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string [int] split_string( string source )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
http://kolmafia.us/index.php/topic,794.msg3868.html#msg3868 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string [int] split_string( string source, string regex )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string [int,int] group_string( string source, string regex )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
see this post located on the script repository for more information:  http://kolmafia.us/index.php/topic,451.msg2235.html#msg2235 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;string [int] session_logs( string player, int day_count )&amp;lt;/strong&amp;gt;&lt;br /&gt;
Gives access to the session logs saved by kolmafia. More details will be added when this function&#039;s own page is written. For now, more extensive details can be found here: http://kolmafia.us/index.php/topic,794.msg3879.html#msg3879&lt;/div&gt;</summary>
		<author><name>192.115.104.88</name></author>
	</entry>
</feed>