bbmod_string_split_on_first

A function defined in __bbmod_string.gml

bbmod_string_split_on_first(_string, _delimiter[, _dest])

Description

Splits the string in two at the first occurrence of the delimiter.

Arguments

Name Type Description
_string String The string to split.
_delimiter String The delimiter.
_dest Array The destination array. A new one is created if not specified.

Returns

Array An array containing [firstHalf, secondHalf]. If the delimiter is not found in the string, then secondHalf equals an empty string and firstHalf is the original string.

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.