m
→String Functions: Added CountChars and alphabatized printMSG
m (→String Functions: Added CountChars and alphabatized printMSG) |
|||
| Line 31: | Line 31: | ||
== String Functions == | == String Functions == | ||
:[[ChunkSplit]](string [, length [, endChars]]) - Split a string into groups of "length" each ending with "endChars" (identical to the [http://php.net/chunk-split PHP function] of the same name). | |||
:[[CountChars]](haystack, needle) - Return how many times ''needle'' is contained in ''haystack''. | |||
:[[GetWords]]("string") - Split words on space boundary, return table | :[[GetWords]]("string") - Split words on space boundary, return table | ||
:[[printMSG]]("string") - Displays a custom message to the default chat frame, for the user to see (time, code and size saver). | |||
:[[strfindt]](tabCaptures, ...) - Wrapper for [[API strfind|strfind]]() that returns captures in a table - can be used in if() clauses! | :[[strfindt]](tabCaptures, ...) - Wrapper for [[API strfind|strfind]]() that returns captures in a table - can be used in if() clauses! | ||
:[[StringHash]]("string") - Create a fair-quality 32-bit hash of a string | :[[StringHash]]("string") - Create a fair-quality 32-bit hash of a string | ||
:[[ | :[[substr]]("string", start [, length]) - Imp [[API_strsub|strsub]]. Returns a string starting from ''start'' to ''length'' characters from ''start'' (identical to the [http://php.net/substr PHP function] of the same name). | ||
== Table Functions == | == Table Functions == | ||