StringExt - 01010111/zerolib GitHub Wiki

Added functionality for Strings!

This is an Extension! Learn about using Extensions here!

Examples:

'0,1,2,3\n4,5,6,7'.csv_to_int_array(); // [0,1,2,3,4,5,6,7]
'0,1,2,3\n4,5,6,7'.csv_to_2d_int_array(); // [0,1,2,3],[4,5,6,7](/01010111/zerolib/wiki/0,1,2,3],[4,5,6,7)
'Zerolib is a really cool library!'.contains('cool'); // true
'hi'.get_random(4, 'random text: ', ' cool, huh?'); // 'random text: Na9D cool, huh?'