Commit 347dba85 authored by find's avatar find Committed by Wouter van Oortmerssen

delete zero width space characters <U+200B>'s to avoid MSVC warning C4819 (#5133)

parent fcacb46d
...@@ -272,7 +272,7 @@ inline void strtoval_impl(float *val, const char *str, char **endptr) { ...@@ -272,7 +272,7 @@ inline void strtoval_impl(float *val, const char *str, char **endptr) {
// //
// Return value (like strtoull and strtoll, but reject partial result): // Return value (like strtoull and strtoll, but reject partial result):
// - If successful, an integer value corresponding to the str is returned. // - If successful, an integer value corresponding to the str is returned.
// - If full string conversion can't be performed, ​0​ is returned. // - If full string conversion can't be performed, 0 is returned.
// - If the converted value falls out of range of corresponding return type, a // - If the converted value falls out of range of corresponding return type, a
// range error occurs. In this case value MAX(T)/MIN(T) is returned. // range error occurs. In this case value MAX(T)/MIN(T) is returned.
template<typename T> template<typename T>
...@@ -316,7 +316,7 @@ inline bool StringToFloatImpl(T *val, const char *const str) { ...@@ -316,7 +316,7 @@ inline bool StringToFloatImpl(T *val, const char *const str) {
// Convert a string to an instance of T. // Convert a string to an instance of T.
// Return value (matched with StringToInteger64Impl and strtod): // Return value (matched with StringToInteger64Impl and strtod):
// - If successful, a numeric value corresponding to the str is returned. // - If successful, a numeric value corresponding to the str is returned.
// - If full string conversion can't be performed, ​0​ is returned. // - If full string conversion can't be performed, 0 is returned.
// - If the converted value falls out of range of corresponding return type, a // - If the converted value falls out of range of corresponding return type, a
// range error occurs. In this case value MAX(T)/MIN(T) is returned. // range error occurs. In this case value MAX(T)/MIN(T) is returned.
template<typename T> inline bool StringToNumber(const char *s, T *val) { template<typename T> inline bool StringToNumber(const char *s, T *val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment