Lartu / ldpl

COBOL-like programming language that compiles to C++. With serious dinosaurs with neckties and briefcases 🦕💼
https://www.ldpl-lang.org/
Apache License 2.0
160 stars 24 forks source link

SPLIT BY multiple chars #131

Closed Lartu closed 5 years ago

Lartu commented 5 years ago

SPLIT BY X FROM - IN <vector> and SPLIT BY X FROM - IN <list> do not work if the length of X is greater than 1 (does work with 0, as specified in the documentation though). An error should be raised if the length of X is greater than one (bear in mind that X might be an utf8 literal) or we should allow splitting by multiple characters, but at the moment if you try to split a text by something lengthier it will just return a list or vector containing the original string.

dgarroDC commented 5 years ago

or we should allow splitting by multiple characters

I implemented this.

Lartu commented 5 years ago

Wonderful, thank you very much for your contribution!