<blocksapp="Snap! 7, https://snap.berkeley.edu"version="2"><block-definitions="multiline %'text'"type="reporter"category="operators"><header></header><code></code><translations>pt:o texto multilinha _
ca:multilínia _
</translations><inputs><inputtype="%mlt"></input></inputs><script><blocks="doReport"><blockvar="text"/></block></script></block-definition><block-definitions="substring of %'string' before %'marker'"type="reporter"category="operators"><commentw="175.33333333333334"collapsed="false">Reports the part of the first string up to the first instance of the second string inside it. If the second string isn't found, reports the entire first string.</comment><header></header><code></code><translations>pt:o texto de _ antes de _
ca:part del text _ anterior a _
</translations><inputs><inputtype="%txt"></input><inputtype="%txt"></input></inputs><script><blocks="doDeclareVariables"><list><l>index</l></list></block><blocks="doSetVar"><l>index</l><custom-blocks="position of %s in %txt"><blockvar="marker"/><blockvar="string"/></custom-block></block><blocks="doReport"><blocks="reportIfElse"><blocks="reportEquals"><blockvar="index"/><l>0</l></block><blockvar="string"/><blocks="reportIfElse"><blocks="reportEquals"><blockvar="index"/><l>1</l></block><l></l><custom-blocks="substring of %txt from position %n to position %n inclusive"><blockvar="string"/><l>1</l><blocks="reportDifference"><blockvar="index"/><l>1</l></block></custom-block></block></block></block></script></block-definition><block-definitions="substring of %'string' after %'marker'"type="reporter"category="operators"><commentw="203.33333333333334"collapsed="false">Reports the portion of the first input string starting after the first occurrence of the second string. If the second string isn't found in the first string, reports an empty string.</comment><header></header><code></code><translations>pt:o texto de _ depois de _
ca:part del text _ posterior a _
</translations><inputs><inputtype="%txt"></input><inputtype="%txt"></input></inputs><script><blocks="doDeclareVariables"><list><l>index</l><l>end</l></list></block><blocks="doSetVar"><l>index</l><custom-blocks="position of %s in %txt"><blockvar="marker"/><blockvar="string"/></custom-block></block><blocks="doSetVar"><l>end</l><blocks="reportSum"><blockvar="index"/><blocks="reportStringSize"><blockvar="marker"/></block></block></block><blocks="doReport"><blocks="reportIfElse"><blocks="reportEquals"><blockvar="index"/><l>0</l></block><l></l><blocks="reportIfElse"><blocks="reportGreaterThan"><blockvar="end"/><blocks="reportStringSize"><blockvar="string"/></block></block><l></l><custom-blocks="substring of %txt from position %n to position %n inclusive"><blockvar="string"/><blockvar="end"/><l></l></custom-block></block></block></block></script></block-definition><block-definitions="position of %'small' in %'large'"type="reporter"category="operators"><commentx="0"y="0"w="294"collapsed="false">Reports the character position (starting from 1) of the beginning of the first input string inside the second input string.
If it's not found, reports 0.</comment><header></header><code></code><translations>pt:a posição de _ em _
ca:posició de _ en _
</translations><inputs><inputtype="%s"></input><inputtype="%txt"></input></inputs><script><blocks="doReport"><blocks="reportIfElse"><custom-blocks="use case-independent comparison"></custom-block><blocks="reportApplyExtension"><l>txt_indexof(sub, txt)</l><list><custom-blocks="to lower case %txt"><blockvar="small"/></custom-block><custom-blocks="to lower case %txt"><blockvar="large"/></custom-block></list></block><blocks="reportApplyExtension"><l>txt_indexof(sub, txt)</l><list><blockvar="small"/><blockvar="large"/></list></block></block></block></script></block-definition><block-definitions="use case-independent comparisons %'tf'"type="command"category="operators"><comme