| 291 | } |
| 292 | |
| 293 | static inline int GetNumDigits(int64_t val) { |
| 294 | if (val == 0) return 1; |
| 295 | if (val < 0) val = -val; |
| 296 | int num_digits = 0; |
| 297 | while (val != 0) { |
| 298 | num_digits++; |
| 299 | val /= 10; |
| 300 | } |
| 301 | return num_digits; |
| 302 | } |
| 303 | |
| 304 | /// Mask the numeric value by replacing the digits with 'masked_number'. The first |
| 305 | /// 'un_mask_char_count' digits will be kept unchanged. Ported from |
no outgoing calls
no test coverage detected