| 368 | } |
| 369 | |
| 370 | inline int |
| 371 | ink_fast_ltoa(int64_t val, char *buf, int buf_len) |
| 372 | { |
| 373 | if ((val < 0) || (val > 99999)) { |
| 374 | int ret = snprintf(buf, buf_len, "%" PRId64 "", val); |
| 375 | |
| 376 | return (ret >= 0 ? ret : 0); |
| 377 | } |
| 378 | |
| 379 | return ink_small_itoa(static_cast<int>(val), buf, buf_len); |
| 380 | } |
| 381 | |
| 382 | /// Check for prefix. |
| 383 | /// @return @c true if @a lhs is a prefix (ignoring case) of @a rhs. |
no test coverage detected