mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Replace switch towers with std::map
This commit is contained in:
@@ -65,38 +65,38 @@ const encoding_convert_entry RCT2ToUnicodeTable[] =
|
||||
{ 153, FORMAT_LIGHTPINK },
|
||||
{ 154, FORMAT_PEARLAQUA },
|
||||
{ 155, FORMAT_PALESILVER },
|
||||
{ RCT2_A_OGONEK_UC, UnicodeChar::a_ogonek_uc },
|
||||
{ 160, UnicodeChar::up },
|
||||
{ RCT2_C_ACUTE_UC, UnicodeChar::c_acute_uc },
|
||||
{ RCT2_E_OGONEK_UC, UnicodeChar::e_ogonek_uc },
|
||||
{ RCT2_L_STROKE_UC, UnicodeChar::l_stroke_uc },
|
||||
{ 170, UnicodeChar::down },
|
||||
{ 172, UnicodeChar::tick },
|
||||
{ 173, UnicodeChar::cross },
|
||||
{ 175, UnicodeChar::right },
|
||||
{ 177, UnicodeChar::railway },
|
||||
{ 180, UnicodeChar::quote_open },
|
||||
{ 181, UnicodeChar::euro },
|
||||
{ 182, UnicodeChar::road },
|
||||
{ 183, UnicodeChar::air },
|
||||
{ 184, UnicodeChar::water },
|
||||
{ 185, UnicodeChar::superscript_minus_one},
|
||||
{ 186, UnicodeChar::bullet },
|
||||
{ 188, UnicodeChar::small_up },
|
||||
{ 189, UnicodeChar::small_down },
|
||||
{ 190, UnicodeChar::left },
|
||||
{ RCT2_N_ACUTE_UC, UnicodeChar::n_acute_uc },
|
||||
{ RCT2_S_ACUTE_UC, UnicodeChar::s_acute_uc },
|
||||
{ RCT2_Z_ACUTE_UC, UnicodeChar::z_acute_uc },
|
||||
{ RCT2_Z_DOT_UC, UnicodeChar::z_dot_uc },
|
||||
{ RCT2_A_OGONEK, UnicodeChar::a_ogonek },
|
||||
{ RCT2_C_ACUTE, UnicodeChar::c_acute },
|
||||
{ RCT2_E_OGONEK, UnicodeChar::e_ogonek },
|
||||
{ RCT2_N_ACUTE, UnicodeChar::n_acute },
|
||||
{ RCT2_L_STROKE, UnicodeChar::l_stroke },
|
||||
{ RCT2_S_ACUTE, UnicodeChar::s_acute },
|
||||
{ RCT2_Z_DOT, UnicodeChar::z_dot },
|
||||
{ RCT2_Z_ACUTE, UnicodeChar::z_acute },
|
||||
{ CSChar::a_ogonek_uc, UnicodeChar::a_ogonek_uc },
|
||||
{ CSChar::up, UnicodeChar::up },
|
||||
{ CSChar::c_acute_uc, UnicodeChar::c_acute_uc },
|
||||
{ CSChar::e_ogonek_uc, UnicodeChar::e_ogonek_uc },
|
||||
{ CSChar::l_stroke_uc, UnicodeChar::l_stroke_uc },
|
||||
{ CSChar::down, UnicodeChar::down },
|
||||
{ CSChar::tick, UnicodeChar::tick },
|
||||
{ CSChar::cross, UnicodeChar::cross },
|
||||
{ CSChar::right, UnicodeChar::right },
|
||||
{ CSChar::railway, UnicodeChar::railway },
|
||||
{ CSChar::quote_open, UnicodeChar::quote_open },
|
||||
{ CSChar::euro, UnicodeChar::euro },
|
||||
{ CSChar::road, UnicodeChar::road },
|
||||
{ CSChar::air, UnicodeChar::air },
|
||||
{ CSChar::water, UnicodeChar::water },
|
||||
{ CSChar::superscript_minus_one, UnicodeChar::superscript_minus_one},
|
||||
{ CSChar::bullet, UnicodeChar::bullet },
|
||||
{ CSChar::small_up, UnicodeChar::small_up },
|
||||
{ CSChar::small_down, UnicodeChar::small_down },
|
||||
{ CSChar::left, UnicodeChar::left },
|
||||
{ CSChar::n_acute_uc, UnicodeChar::n_acute_uc },
|
||||
{ CSChar::s_acute_uc, UnicodeChar::s_acute_uc },
|
||||
{ CSChar::z_acute_uc, UnicodeChar::z_acute_uc },
|
||||
{ CSChar::z_dot_uc, UnicodeChar::z_dot_uc },
|
||||
{ CSChar::a_ogonek, UnicodeChar::a_ogonek },
|
||||
{ CSChar::c_acute, UnicodeChar::c_acute },
|
||||
{ CSChar::e_ogonek, UnicodeChar::e_ogonek },
|
||||
{ CSChar::n_acute, UnicodeChar::n_acute },
|
||||
{ CSChar::l_stroke, UnicodeChar::l_stroke },
|
||||
{ CSChar::s_acute, UnicodeChar::s_acute },
|
||||
{ CSChar::z_dot, UnicodeChar::z_dot },
|
||||
{ CSChar::z_acute, UnicodeChar::z_acute },
|
||||
};
|
||||
|
||||
static int32_t encoding_search_compare(const void *pKey, const void *pEntry)
|
||||
|
||||
Reference in New Issue
Block a user