Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
521da753
Commit
521da753
authored
Feb 10, 2020
by
Pedro J. Estébanez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VariantParser::StreamString EOF determination
parent
47f19cc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
variant_parser.cpp
core/variant_parser.cpp
+8
-2
No files found.
core/variant_parser.cpp
View file @
521da753
...
...
@@ -51,10 +51,16 @@ bool VariantParser::StreamFile::is_eof() const {
CharType
VariantParser
::
StreamString
::
get_char
()
{
if
(
pos
>
=
s
.
length
())
if
(
pos
>
s
.
length
())
{
return
0
;
else
}
else
if
(
pos
==
s
.
length
())
{
// You need to try to read again when you have reached the end for EOF to be reported,
// so this works the same as files (like StreamFile does)
pos
++
;
return
0
;
}
else
{
return
s
[
pos
++
];
}
}
bool
VariantParser
::
StreamString
::
is_utf8
()
const
{
...
...
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