liblcf
rpg_terms.cpp
Go to the documentation of this file.
1/*
2 * This file is part of liblcf. Copyright (c) 2021 liblcf authors.
3 * https://github.com/EasyRPG/liblcf - https://easyrpg.org
4 *
5 * liblcf is Free/Libre Open Source Software, released under the MIT License.
6 * For the full copyright and license information, please view the COPYING
7 * file that was distributed with this source code.
8 */
9
10#include "lcf/rpg/terms.h"
11
12namespace lcf {
13
14std::string rpg::Terms::TermOrDefault(const DBString& db_term, StringView default_term) {
15 if (db_term == kDefaultTerm) {
16 return ToString(default_term);
17 }
18 return ToString(db_term);
19}
20
21} // namespace lcf
Definition: dbarray.cpp:13