GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
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
9
11{
12
13const char Toml11Description::kNoTable[] = "no_table_value";
14
15std::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
tomlファイルのシリアライズ/デシリアライズを行うための関数群.
std::vector< std::string > sjis_to_utf8_vec(const std::vector< std::string > &str_vec)
文字列のベクターをShift-jisからUTF-8に変換する.
static const char kNoTable[]
テーブルがない場合に指定する文字列.