| 191 | } |
| 192 | |
| 193 | void std::Printable2Number(string src, BigUint &ed, BigUint &N) { |
| 194 | size_t idx = src.find(':'); |
| 195 | if (idx == std::string::npos) { |
| 196 | return; |
| 197 | } |
| 198 | size_t srclen = src.length(); |
| 199 | ed = 0, N = 0; |
| 200 | for (size_t i = 0; i < idx; i++) { |
| 201 | ed = ed * PrintableSize + PrintableInvertTable[src[i]]; |
| 202 | } |
| 203 | for (size_t i = idx + 1; i < srclen; i++) { |
| 204 | N = N * PrintableSize + PrintableInvertTable[src[i]]; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void std::Number2Printable(string &dst, BigUint ed, BigUint N) { |
| 209 | stack<uint8_t> num; |
nothing calls this directly
no outgoing calls
no test coverage detected