| 668 | // Get string with fixed width. Extra '0' are added at the begining to fit size. |
| 669 | template <typename T, typename = std::enable_if_t<std::is_integral<T>::value>> |
| 670 | std::string to_string_width(T l, int width) |
| 671 | { |
| 672 | std::ostringstream ss; |
| 673 | if (l < 0) |
| 674 | ss << '-'; |
| 675 | ss << std::setfill('0') << std::setw(width) << std::abs(l); |
| 676 | return ss.str(); |
| 677 | } |
| 678 | |
| 679 | template <typename IterT1, typename IterT2> |
| 680 | bool StartsWith(IterT1 beg, IterT1 end, IterT2 begPrefix, IterT2 endPrefix) |
no outgoing calls