-
-
Notifications
You must be signed in to change notification settings - Fork 137
/
bit_string.gleam
43 lines (35 loc) 路 1.19 KB
/
bit_string.gleam
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
//// This module has been deprecated. Please use the `gleam/bit_array` module
//// instead.
import gleam/bit_array
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn from_string(x: String) -> BitArray {
bit_array.from_string(x)
}
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn byte_size(x: BitArray) -> Int {
bit_array.byte_size(x)
}
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn append(to first: BitArray, suffix second: BitArray) -> BitArray {
bit_array.append(first, second)
}
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn slice(
from string: BitArray,
at position: Int,
take length: Int,
) -> Result(BitArray, Nil) {
bit_array.slice(string, position, length)
}
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn is_utf8(bits: BitArray) -> Bool {
bit_array.is_utf8(bits)
}
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn to_string(bits: BitArray) -> Result(String, Nil) {
bit_array.to_string(bits)
}
@deprecated("Please use the `gleam/bit_array` module instead.")
pub fn concat(bit_strings: List(BitArray)) -> BitArray {
bit_array.concat(bit_strings)
}