Over time and multiple projects I have found myself importing and extending the same functions which I find myself needing again and again.
Here are a bunch of string functions which I find I cannot do without and are sorely missing from the SC2 functions library:
including but not limited to:
trim whitespace from start/end
split strings using delimiter
extract first section from string (using delimiter)
remove first section from string (using delimiter)
string comparisson (alphabetically)
debugging function (with switches to turn on/off, pause between outputs, output to file)
assert - usefull debugging technique to ensure values are reasonable and alert when things go wrong
various "x to string" conversions which make debugging using the gui easier for example: debug_s(str_unit_pairs("looking at the unit", u, str_point_pairs("at location", p, str_real_pairs("with energy", e, ""))) prints the othput "looking at unit = marine, at location = (120, 45), with energy = 31." This is a quick way to chan strings together using the gui for quicker debugging.
Just open the file in the map editor, select the whole lot and copy/paste into your own project for access.
Some of the functions are in GUI some in galaxy (unfortunately I could not figure out how to access galaxy at first. Otherwise they would ALL be in galaxy) but if you are still using the GUI you can access the galaxy scripts by using the "custom code" action and calling the function that way (remembering that the editor appends variables with "lv_")