Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
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
lvzhengyang
yaml-cpp
Commits
8c33523b
Commit
8c33523b
authored
Aug 22, 2009
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the std::wstring conversion
parent
81c2e6b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
include/conversion.h
+0
-3
src/conversion.cpp
+0
-15
No files found.
include/conversion.h
View file @
8c33523b
...
@@ -40,9 +40,6 @@ namespace YAML
...
@@ -40,9 +40,6 @@ namespace YAML
template
<>
template
<>
bool
Converter
<
_Null
>::
Convert
(
const
std
::
string
&
input
,
_Null
&
output
);
bool
Converter
<
_Null
>::
Convert
(
const
std
::
string
&
input
,
_Null
&
output
);
template
<>
bool
Converter
<
std
::
wstring
>::
Convert
(
const
std
::
string
&
input
,
std
::
wstring
&
output
);
}
}
#endif // CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#endif // CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/conversion.cpp
View file @
8c33523b
#include "conversion.h"
#include "conversion.h"
#include <algorithm>
#include <algorithm>
#include <cstdlib>
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Specializations for converting a string to specific types
// Specializations for converting a string to specific types
...
@@ -88,19 +87,5 @@ namespace YAML
...
@@ -88,19 +87,5 @@ namespace YAML
{
{
return
input
.
empty
()
||
input
==
"~"
||
input
==
"null"
||
input
==
"Null"
||
input
==
"NULL"
;
return
input
.
empty
()
||
input
==
"~"
||
input
==
"null"
||
input
==
"Null"
||
input
==
"NULL"
;
}
}
template
<>
bool
Converter
<
std
::
wstring
>::
Convert
(
const
std
::
string
&
input
,
std
::
wstring
&
output
)
{
output
.
clear
();
output
.
resize
(
std
::
mbstowcs
(
NULL
,
input
.
data
(),
input
.
size
()));
std
::
mbstowcs
(
(
wchar_t
*
)
output
.
data
(),
input
.
data
(),
input
.
size
()
);
return
true
;
}
}
}
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