<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="string.index" module="max" category="String">
	<digest>
		Output the character at an index in a string object (0-based).
	</digest>
	<description>
		Extract a character from an incoming string object, based on the index specified (0-based). Indices can be negative to refer to characters starting from the end of the string (-1 refers to the last character, -2 the next to last character, etc.).
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			string
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				string in
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				position in string to extract (0-based)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				nth element of the string
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				string with nth element removed
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="index" type="int" optional="1">
			<digest>
				Index
			</digest>
			<description>
				This index to look up for incoming strings. By default, this is 0 (the first character).
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Trigger output
			</digest>
			<description>
				Reprocess previously received string and trigger output.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="ARG_NAME_0" type="int" optional="0" />
			</arglist>
			<digest>
				Convert an integer to a string.
			</digest>
			<description>
				Convert an incoming integer to a string, then process as described for the <m>string</m> message.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="ARG_NAME_0" type="float" optional="0" />
			</arglist>
			<digest>
				Convert a floating-point number to a string.
			</digest>
			<description>
				Convert an incoming floating-point number to a string, then process as described for the <m>string</m> message.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Convert a list to a string.
			</digest>
			<description>
				Convert an incoming list to a string, then process as described for the <m>string</m> message.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Convert a list to a string.
			</digest>
			<description>
				Convert an incoming list to a string, then process as described for the <m>string</m> message.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="ARG_NAME_0" type="int" optional="0" />
			</arglist>
			<digest>
				Set index
			</digest>
			<description>
				Set the index used to extract a chacter from an incoming string object. Indices begin at 0 for the first character, or can be negative to count from the end of the string.
			</description>
		</method>
		<method name="string">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Extract indexed character
			</digest>
			<description>
				Output the character of the string at the provided index.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example caption="" img="" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="string" />
		<seealso name="zl.nth" />
		<seealso name="zl.mth" />
	</seealsolist>
</c74object>
