Skip to content

Strings

AziasYur edited this page Feb 15, 2018 · 1 revision

This utility give you access to a couple of procedures that helps you with Strings in some cases.

Procedures

ExplodeStringToArray(Array a$(1), s$, delimiter$, cleanString.b=#True)

  How it works:
    Explodes a given String(s$) at every given delimiter(d$) and stores the String parts in a given pre-initialized Array(a$).

  Parameters:
    a$() - The array that will contain the splitted String.
    s$ - A String that will be splitted.
    delimiter$ - The string delimiter to use to separate the fields. It can be a multi-characters delimiter
    cleanString.b - [Removes delimiters that next to one another]

  Returns :
    The amount of entries in the array.


IsNullOrEmpty(a$)

  Parameters:
    a$ - A String that will be analysed.

  Returns :
    A nonzero value if a$ is equal to #Null$, has a length of 0 or is filled with spaces characters (0x20).


Format(text.s, *val1=0, ..., *val11=0) TEMP: This function isn't finished!

  How it works:
    ???

  Parameters:
    text.s - ???
    *val1 - ???
    *val11 - ???

  Formatting:
    ???

  Returns:
    The formatted String


Version History

1.3.0

  ● Added a placeholder function for Format(...).
  ● Added a string cleaner in ExplodeStringToArray(...).

1.1.0

  ● Added the IsNullOrEmpty(...) procedure.
  ● Added unit tests.

1.0.0 (Prior to using semantic versioning)

  ● Added the ExplodeStringToArray(...) procedure.

Clone this wiki locally