This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pf:prpldocs:strings [2016/06/24 22:00] – Added known string commands. planetfall | pf:prpldocs:strings [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 20: | Line 20: | ||
</ | </ | ||
< | < | ||
- | |||
=CMD | =CMD | ||
=COMMAND Concat (string string) string | =COMMAND Concat (string string) string | ||
Line 49: | Line 48: | ||
Takes two strings from the stack and returns whether the first string starts with the second (case sensitive) | Takes two strings from the stack and returns whether the first string starts with the second (case sensitive) | ||
=ENDDESC | =ENDDESC | ||
+ | =EX | ||
if (StartsWith(" | if (StartsWith(" | ||
Trace(" | Trace(" | ||
Line 60: | Line 60: | ||
Takes two strings from the stack and returns whether the first string ends with the second (case sensitive) | Takes two strings from the stack and returns whether the first string ends with the second (case sensitive) | ||
=ENDDESC | =ENDDESC | ||
+ | =EX | ||
if (EndsWith(" | if (EndsWith(" | ||
Trace(" | Trace(" | ||
Line 74: | Line 75: | ||
Split(" | Split(" | ||
< | < | ||
+ | Trace(< | ||
+ | loop | ||
+ | =ENDEX | ||
+ | =ENDCMD | ||
+ | |||
+ | =CMD | ||
+ | =COMMAND StringToList (string) list | ||
+ | =DESC | ||
+ | Takes a string from the stack and returns the list of characters in the string. | ||
+ | =ENDDESC | ||
+ | =EX | ||
+ | StringToList(" | ||
+ | < | ||
Trace(< | Trace(< | ||
loop | loop |