1 /*
2    mkvmerge -- utility for splicing together matroska files
3    from component media subtypes
4 
5    Distributed under the GPL v2
6    see the file COPYING for details
7    or visit https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
8 
9    ISO 15924 script codes
10 
11    Written by Moritz Bunkus <moritz@bunkus.org>.
12 */
13 
14 #pragma once
15 
16 #include "common/common_pch.h"
17 
18 namespace mtx::iso15924 {
19 
20 struct script_t {
21   std::string const code;
22   unsigned int number;
23   std::string const english_name;
24 
script_tscript_t25   script_t(std::string &&p_code, unsigned int p_number, std::string &&p_english_name)
26     : code{std::move(p_code)}
27     , number{p_number}
28     , english_name{std::move(p_english_name)}
29   {
30   }
31 };
32 
33 extern std::vector<script_t> g_scripts;
34 
35 void init();
36 std::optional<script_t> look_up(std::string const &s);
37 
38 } // namespace mtx::iso15924
39