Safir SDK Core
Loading...
Searching...
No Matches
Convenience.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright Saab AB, 2025 (http://safirsdkcore.com)
4*
5* Created by: Lars Hagström / lars@foldspace.nu
6*
7*******************************************************************************
8*
9* This file is part of Safir SDK Core.
10*
11* Safir SDK Core is free software: you can redistribute it and/or modify
12* it under the terms of version 3 of the GNU General Public License as
13* published by the Free Software Foundation.
14*
15* Safir SDK Core is distributed in the hope that it will be useful,
16* but WITHOUT ANY WARRANTY; without even the implied warranty of
17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18* GNU General Public License for more details.
19*
20* You should have received a copy of the GNU General Public License
21* along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22*
23******************************************************************************/
24
25#pragma once
26
28
38inline auto Str(const std::wstring& wstr)
39{
41}
42
52inline auto Wstr(const std::string& str)
53{
55}
auto Str(const std::wstring &wstr)
Convenience function for calling Safir::Dob::Typesystem::Utilities::ToUtf8 but without all the long n...
Definition Convenience.h:38
auto Wstr(const std::string &str)
Convenience function for calling Safir::Dob::Typesystem::Utilities::ToWstring but without all the lon...
Definition Convenience.h:52
DOTS_CPP_API const std::string ToUtf8(const std::wstring &wstr)
Convert a std::wstring to UTF8-encoded std::string.
DOTS_CPP_API const std::wstring ToWstring(const std::string &str)
Convert a UTF8-encoded std::string to std::wstring.