Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
347dba85
Commit
347dba85
authored
Jan 24, 2019
by
find
Committed by
Wouter van Oortmerssen
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete zero width space characters <U+200B>'s to avoid MSVC warning C4819 (#5133)
parent
fcacb46d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.h
include/flatbuffers/util.h
+2
-2
No files found.
include/flatbuffers/util.h
View file @
347dba85
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment