|
| 1 | +<?xml version="1.0"?> |
| 2 | +<flowgorithm fileversion="3.0"> |
| 3 | + <attributes> |
| 4 | + <attribute name="name" value=""/> |
| 5 | + <attribute name="authors" value="Zeryuu Hz"/> |
| 6 | + <attribute name="about" value=""/> |
| 7 | + <attribute name="saved" value="2023-01-22 08:44:47 PM"/> |
| 8 | + <attribute name="created" value="WmVyeXV1IEh6O0xBUFRPUC0yMlNBSUVWOTsyMDIzLTAxLTIyOzA4OjQzOjE4IFBNOzMyMDg="/> |
| 9 | + <attribute name="edited" value="WmVyeXV1IEh6O0xBUFRPUC0yMlNBSUVWOTsyMDIzLTAxLTIyOzA4OjQzOjU1IFBNOzI7VXNlcjtERVNLVE9QLU85QUlMNUU7MjAyMi0xMi0yNzswNy40NC4yMCBQTTtVQVMgRERQIEpVQUwgQkVMSSBLRUJVVFVIQU4gT05MSU5FLmZwcmc7ODk2Mw=="/> |
| 10 | + <attribute name="edited" value="WmVyeXV1IEh6O0xBUFRPUC0yMlNBSUVWOTsyMDIzLTAxLTIyOzA4OjQ0OjQ3IFBNOzE7MzMxOQ=="/> |
| 11 | + </attributes> |
| 12 | + <function name="Main" type="None" variable=""> |
| 13 | + <parameters/> |
| 14 | + <body/> |
| 15 | + </function> |
| 16 | + <function name="in" type="None" variable=""> |
| 17 | + <parameters> |
| 18 | + <parameter name="text" type="String" array="False"/> |
| 19 | + <parameter name="target" type="String" array="False"/> |
| 20 | + </parameters> |
| 21 | + <body> |
| 22 | + <declare name="i, j, stop" type="Integer" array="False" size=""/> |
| 23 | + <declare name="ada" type="Boolean" array="False" size=""/> |
| 24 | + <assign variable="stop" expression="0"/> |
| 25 | + <assign variable="ada" expression="false"/> |
| 26 | + <assign variable="j" expression="0"/> |
| 27 | + <for variable="i" start="0" end="len(text) - 1" direction="inc" step="1"> |
| 28 | + <if expression="stop == 1"> |
| 29 | + <then/> |
| 30 | + <else> |
| 31 | + <if expression="j == len(target)"> |
| 32 | + <then> |
| 33 | + <assign variable="stop" expression="1"/> |
| 34 | + </then> |
| 35 | + <else> |
| 36 | + <if expression="char(text, i) == char(target, j)"> |
| 37 | + <then> |
| 38 | + <assign variable="j" expression="j + 1"/> |
| 39 | + </then> |
| 40 | + <else> |
| 41 | + <assign variable="j" expression="0"/> |
| 42 | + </else> |
| 43 | + </if> |
| 44 | + </else> |
| 45 | + </if> |
| 46 | + </else> |
| 47 | + </if> |
| 48 | + </for> |
| 49 | + <if expression="j < len(target)"> |
| 50 | + <then> |
| 51 | + <assign variable="ada" expression="false"/> |
| 52 | + </then> |
| 53 | + <else> |
| 54 | + <assign variable="ada" expression="true"/> |
| 55 | + </else> |
| 56 | + </if> |
| 57 | + </body> |
| 58 | + </function> |
| 59 | +</flowgorithm> |
0 commit comments