Description

Extended functions for GM, such as;

  • string_explode
  • * Explode a string into an array ( "a;b;c" -> [a, b, c]
  • array_implode
  • * Paste together an array into a string ( [1, 2, 3] -> "1;2;3" )
  • string_reverse
  • * Reverse -> esreveR
  • string_mask
  • * Password -> ********
  • url_encode
  • * "test for # url?" -> "test%20for%20%23%20url%3F"
  • url_decode
  • * "test%20for%20%23%20url%3F" -> "test for # url?"
  • dectohex
  • * 123 -> "7B"
  • hextodec
  • * "7B" -> 123
  • string_ends_with
  • * string_ends_with("Testing", "ing") -> True
  • string_starts_with
  • * string_starts_with("##A Test", "#") -> True
  • string_prepend(string, prependchar, length) Prepend a string to a set length
  • * string_prepend('123', '0', 5) -> 00123
  • string_append(string, appendchar, length); Append a string to a set length
  • * string_append('123', 'ABC', 7) -> 123ABCA
  • round_whole(number, round); Round number on big numbers.
  • * round_whole(1234, 10) = 1230

Also includes a small unit-testing setup, which it uses itself to test the string functions -> test_assert_same(provided, expected)

And they are all unit tested in this repo.

End User Licence Agreement (EULA).

Version 1.3.5. Published November 30, 2014

Created with GameMaker: Studio v1.4.1474

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Gravatar

Herminio S 25 April 2015

WOW, super useful stuff here!

Lots of useful little bits of code here! Of special notice is string exploder which just makes storing information a lot easier!

What is the issue?

Back to Top