feat: made digit vectors constexpr

This commit is contained in:
moonleay 2024-11-20 19:00:06 +01:00
parent 47e91aea8b
commit a331c81620
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -1,10 +1,10 @@
#include "std_lib_inc.h"
const vector<string> first_digit_strings = {
constexpr vector<string> first_digit_strings = {
"", "ein", "zwei", "drei", "vier", "fuenf", "sechs", "sieben", "acht", "neun"
};
const vector<string> middle_digit_strings = {
constexpr vector<string> middle_digit_strings = {
"", "zehn", "zwanzig", "dreissig", "vierzig", "fuenfzig", "sechzig", "siebzig", "achzig", "neunzig"
};