Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
8c33523b
Commit
8c33523b
authored
Aug 22, 2009
by
Jesse Beder
Browse files
Removed the std::wstring conversion
parent
81c2e6b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
include/conversion.h
include/conversion.h
+0
-3
src/conversion.cpp
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