Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
b6fdad9a
Commit
b6fdad9a
authored
Oct 03, 2018
by
Antonio Borondo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove anonymous namespace
parent
7c385a48
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
182 deletions
+176
-182
include/nlohmann/detail/input/input_adapters.hpp
include/nlohmann/detail/input/input_adapters.hpp
+88
-91
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+88
-91
No files found.
include/nlohmann/detail/input/input_adapters.hpp
View file @
b6fdad9a
...
...
@@ -115,11 +115,9 @@ class input_buffer_adapter : public input_adapter_protocol
const
char
*
const
limit
;
};
namespace
template
<
typename
WideStringType
,
size_t
T
>
struct
wide_string_input_helper
{
template
<
typename
WideStringType
,
size_t
T
>
struct
wide_string_input_helper
{
// UTF-32
static
void
fill_buffer
(
const
WideStringType
&
str
,
size_t
&
current_wchar
,
std
::
array
<
std
::
char_traits
<
char
>::
int_type
,
4
>&
utf8_bytes
,
size_t
&
utf8_bytes_index
,
size_t
&
utf8_bytes_filled
)
{
...
...
@@ -170,11 +168,11 @@ namespace
}
}
}
};
};
template
<
typename
WideStringType
>
struct
wide_string_input_helper
<
WideStringType
,
2
>
{
template
<
typename
WideStringType
>
struct
wide_string_input_helper
<
WideStringType
,
2
>
{
// UTF-16
static
void
fill_buffer
(
const
WideStringType
&
str
,
size_t
&
current_wchar
,
std
::
array
<
std
::
char_traits
<
char
>::
int_type
,
4
>&
utf8_bytes
,
size_t
&
utf8_bytes_index
,
size_t
&
utf8_bytes_filled
)
{
...
...
@@ -231,8 +229,7 @@ namespace
}
}
}
};
}
};
template
<
typename
WideStringType
>
class
wide_string_input_adapter
:
public
input_adapter_protocol
...
...
single_include/nlohmann/json.hpp
View file @
b6fdad9a
...
...
@@ -1993,11 +1993,9 @@ class input_buffer_adapter : public input_adapter_protocol
const
char
*
const
limit
;
};
namespace
template
<
typename
WideStringType
,
size_t
T
>
struct
wide_string_input_helper
{
template
<
typename
WideStringType
,
size_t
T
>
struct
wide_string_input_helper
{
// UTF-32
static
void
fill_buffer
(
const
WideStringType
&
str
,
size_t
&
current_wchar
,
std
::
array
<
std
::
char_traits
<
char
>::
int_type
,
4
>&
utf8_bytes
,
size_t
&
utf8_bytes_index
,
size_t
&
utf8_bytes_filled
)
{
...
...
@@ -2048,11 +2046,11 @@ namespace
}
}
}
};
};
template
<
typename
WideStringType
>
struct
wide_string_input_helper
<
WideStringType
,
2
>
{
template
<
typename
WideStringType
>
struct
wide_string_input_helper
<
WideStringType
,
2
>
{
// UTF-16
static
void
fill_buffer
(
const
WideStringType
&
str
,
size_t
&
current_wchar
,
std
::
array
<
std
::
char_traits
<
char
>::
int_type
,
4
>&
utf8_bytes
,
size_t
&
utf8_bytes_index
,
size_t
&
utf8_bytes_filled
)
{
...
...
@@ -2109,8 +2107,7 @@ namespace
}
}
}
};
}
};
template
<
typename
WideStringType
>
class
wide_string_input_adapter
:
public
input_adapter_protocol
...
...
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