Commit a3be5b6
refactor(common/number): use ranges algorithm and string_view
Use ranges::all_of to check all characters in a string in place of manual iteration.
Use modern string_view in place of old-fashioned const char*.
New code is more compact, modernized, cleaner and easier to read and understand.
Signed-off-by: Leonard Ossa <leonard.ossa@openvpn.com>1 parent 2d6981b commit a3be5b6
1 file changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
124 | 125 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 126 | + | |
| 127 | + | |
135 | 128 | | |
136 | 129 | | |
137 | 130 | | |
| |||
0 commit comments