|
16 | 16 | */ |
17 | 17 | namespace computerscience { |
18 | 18 |
|
19 | | -/** |
20 | | - * @brief convert decimal to binary |
21 | | - * |
22 | | - * @param[in] decimal The decimal |
23 | | - * |
24 | | - * @return binary number string |
25 | | - */ |
26 | | -auto convert_decimal_to_binary(int decimal) -> std::string; |
| 19 | + /** |
| 20 | + * @brief convert decimal to binary |
| 21 | + * |
| 22 | + * @param[in] decimal The decimal |
| 23 | + * |
| 24 | + * @return binary number string |
| 25 | + */ |
| 26 | + auto convert_decimal_to_binary(int decimal) -> std::string; |
27 | 27 |
|
28 | | -/** |
29 | | - * @brief convert binary to decimal |
30 | | - * |
31 | | - * @param binary The binary |
32 | | - * |
33 | | - * @return decimal integer |
34 | | - */ |
35 | | -auto convert_binary_to_decimal(std::string &binary) -> int; |
| 28 | + /** |
| 29 | + * @brief convert binary to decimal |
| 30 | + * |
| 31 | + * @param binary The binary |
| 32 | + * |
| 33 | + * @return decimal integer |
| 34 | + */ |
| 35 | + auto convert_binary_to_decimal(std::string &binary) -> int; |
36 | 36 |
|
37 | | -/** |
38 | | - * @brief convert decimal to hexadecimal |
39 | | - * |
40 | | - * @param[in] decimal The decimal |
41 | | - * |
42 | | - * @return hexadecimal number string |
43 | | - */ |
44 | | -auto convert_decimal_to_hexadecimal(int decimal) -> std::string; |
| 37 | + /** |
| 38 | + * @brief convert decimal to hexadecimal |
| 39 | + * |
| 40 | + * @param[in] decimal The decimal |
| 41 | + * |
| 42 | + * @return hexadecimal number string |
| 43 | + */ |
| 44 | + auto convert_decimal_to_hexadecimal(int decimal) -> std::string; |
45 | 45 |
|
46 | | -/** |
47 | | - * @brief convert hexadecimal to decimal |
48 | | - * |
49 | | - * @param hexadecimal The hexadecimal |
50 | | - * |
51 | | - * @return decimal integer |
52 | | - */ |
53 | | -auto convert_hexadecimal_to_decimal(std::string &hexadecimal) -> int; |
| 46 | + /** |
| 47 | + * @brief convert hexadecimal to decimal |
| 48 | + * |
| 49 | + * @param hexadecimal The hexadecimal |
| 50 | + * |
| 51 | + * @return decimal integer |
| 52 | + */ |
| 53 | + auto convert_hexadecimal_to_decimal(std::string &hexadecimal) -> int; |
54 | 54 |
|
55 | | -/** |
56 | | - * @brief convert binary to hexadecimal |
57 | | - * |
58 | | - * @param binary The binary |
59 | | - * |
60 | | - * @return hexadecimal number string |
61 | | - */ |
62 | | -auto convert_binary_to_hexadecimal(std::string &binary) -> std::string; |
| 55 | + /** |
| 56 | + * @brief convert binary to hexadecimal |
| 57 | + * |
| 58 | + * @param binary The binary |
| 59 | + * |
| 60 | + * @return hexadecimal number string |
| 61 | + */ |
| 62 | + auto convert_binary_to_hexadecimal(std::string &binary) -> std::string; |
63 | 63 |
|
64 | | -/** |
65 | | - * @brief convert hexadecimal to binary |
66 | | - * |
67 | | - * @param[in] hexadecimal The hexadecimal |
68 | | - * |
69 | | - * @return binary number string |
70 | | - */ |
71 | | -auto convert_hexadecimal_to_binary(std::string hexadecimal) -> std::string; |
| 64 | + /** |
| 65 | + * @brief convert hexadecimal to binary |
| 66 | + * |
| 67 | + * @param[in] hexadecimal The hexadecimal |
| 68 | + * |
| 69 | + * @return binary number string |
| 70 | + */ |
| 71 | + auto convert_hexadecimal_to_binary(std::string hexadecimal) -> std::string; |
72 | 72 |
|
73 | | -/** |
74 | | - * @brief Scale bytes to its proper format |
75 | | - * |
76 | | - * @param[in] bytes The bytes |
77 | | - * @param[in] suffix The suffix |
78 | | - * |
79 | | - * @return humanized size |
80 | | - */ |
81 | | -auto humanize_bytes_size(long long bytes, const std::string &suffix = "B") -> std::string; |
| 73 | + /** |
| 74 | + * @brief Scale bytes to its proper format |
| 75 | + * |
| 76 | + * @param[in] bytes The bytes |
| 77 | + * @param[in] suffix The suffix |
| 78 | + * |
| 79 | + * @return humanized size |
| 80 | + */ |
| 81 | + auto humanize_bytes_size(long long bytes, const std::string &suffix = "B") -> std::string; |
82 | 82 | } // namespace computerscience |
83 | 83 |
|
84 | 84 | #endif // LIBNUMERIXPP_COMPUTERSCIENCE_CORE_HPP |
0 commit comments