GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
DesignLab
toml_serialize_macro.cpp
[詳解]
1
3
4
// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5
// Released under the MIT license
6
// https://opensource.org/licenses/mit-license.php
7
8
#include "
toml_serialize_macro.h
"
9
10
namespace
designlab::toml_func
11
{
12
13
const
char
Toml11Description::kNoTable
[] =
"no_table_value"
;
14
15
std::vector<std::string>
sjis_to_utf8_vec
(
const
std::vector<std::string>& str_vec)
16
{
17
std::vector<std::string> ret_vec;
18
19
for
(
const
auto
& str : str_vec)
20
{
21
ret_vec.push_back(sjis_to_utf8(str));
22
// ret_vec.push_back(str);
23
}
24
25
return
ret_vec;
26
}
27
28
29
}
// namespace designlab::toml_func
designlab::toml_func
tomlファイルのシリアライズ/デシリアライズを行うための関数群.
Definition
toml_serialize_macro.cpp:11
designlab::toml_func::sjis_to_utf8_vec
std::vector< std::string > sjis_to_utf8_vec(const std::vector< std::string > &str_vec)
文字列のベクターをShift-jisからUTF-8に変換する.
Definition
toml_serialize_macro.cpp:15
designlab::toml_func::Toml11Description::kNoTable
static const char kNoTable[]
テーブルがない場合に指定する文字列.
Definition
toml_serialize_macro.h:46
toml_serialize_macro.h
構築:
1.9.8