1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/// Converts string to vec of strings, splitting on the given delimiter.
/// # Example
///
/// ```
/// use cfd::helpers::split_to_string_vec;
/// let vec = split_to_string_vec(String::from("hello,world"), ",");
/// assert_eq!(vec, vec!["hello", "world"]);
/// ```
///
/// Converts string to a binary string.
/// # Example
///
/// ```
/// use cfd::helpers::string_to_binary;
/// let bin_str = string_to_binary("hello");
/// assert_eq!(bin_str, "0110100001100101011011000110110001101111");
/// ```
///
/// Converts bool to string value.
/// # Example
///
/// ```
/// use cfd::helpers::bool_to_str;
/// let bool_str = bool_to_str(true);
/// assert_eq!(bool_str, "true");
/// ```
///