Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
01f6d5e4
Commit
01f6d5e4
authored
Feb 20, 2017
by
Kenton Varda
Committed by
GitHub
Feb 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #417 from dwrensha/non-ascii-constants
fix bug in parsing of non-ascii constants
parents
1b1407c0
bc5a21bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
test.capnp
c++/src/capnp/test.capnp
+2
-0
char.h
c++/src/kj/parse/char.h
+1
-1
No files found.
c++/src/capnp/test.capnp
View file @
01f6d5e4
...
...
@@ -748,6 +748,8 @@ const embeddedData :Data = embed "testdata/packed";
const embeddedText :Text = embed "testdata/short.txt";
const embeddedStruct :TestAllTypes = embed "testdata/binary";
const nonAsciiText :Text = "♫ é ✓";
struct TestAnyPointerConstants {
anyKindAsStruct @0 :AnyPointer;
anyStructAsStruct @1 :AnyStruct;
...
...
c++/src/kj/parse/char.h
View file @
01f6d5e4
...
...
@@ -107,7 +107,7 @@ public:
return
CharGroup_
(
~
bits
[
0
],
~
bits
[
1
],
~
bits
[
2
],
~
bits
[
3
]);
}
constexpr
inline
bool
contains
(
char
c
)
const
{
constexpr
inline
bool
contains
(
unsigned
char
c
)
const
{
return
(
bits
[
c
/
64
]
&
(
1ll
<<
(
c
%
64
)))
!=
0
;
}
...
...
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