| 450 | // Converts a float value to a string via a FloatProxy. |
| 451 | template <typename T> |
| 452 | std::string EncodeViaFloatProxy(const T& value) { |
| 453 | std::stringstream ss; |
| 454 | ss << value; |
| 455 | return ss.str(); |
| 456 | } |
| 457 | |
| 458 | // Converts a floating point string so that the exponent prefix |
| 459 | // is 'e', and the exponent value does not have leading zeros. |