|
@ -17,17 +17,19 @@ int main() { |
|
|
// std::cout << temp.size() << std::endl;
|
|
|
// std::cout << temp.size() << std::endl;
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
|
|
|
auto s = ShortCode(); |
|
|
// auto s = ShortCode();
|
|
|
|
|
|
// auto s = ShortCode(ShortCode::Mode::NORMAL);
|
|
|
|
|
|
auto s = ShortCode(ShortCode::Mode::FAST); |
|
|
|
|
|
|
|
|
// s.speed_up(ShortCode::Mode::FAST);
|
|
|
// s.speed_up(ShortCode::Mode::FAST);
|
|
|
// std::cout << s.all_cases_list.size() << std::endl;
|
|
|
std::cout << s.all_cases_list.size() << std::endl; |
|
|
// std::cout << s.all_cases_dict.size() << std::endl;
|
|
|
std::cout << s.all_cases_dict.size() << std::endl; |
|
|
|
|
|
|
|
|
// printf("%d\n", s.fast_encode(0x6EC0F8800));
|
|
|
// printf("%d\n", s.fast_encode(0x6EC0F8800));
|
|
|
// printf("%09lX\n", s.fast_decode(14323231));
|
|
|
// printf("%09lX\n", s.fast_decode(14323231));
|
|
|
|
|
|
|
|
|
s.speed_up(ShortCode::Mode::NORMAL); |
|
|
// s.speed_up(ShortCode::Mode::NORMAL);
|
|
|
std::cout << s.basic_ranges.size() << std::endl; |
|
|
// std::cout << s.basic_ranges.size() << std::endl;
|
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|