20 #include <string_view> 28 }
else if (str ==
"epsilon") {
30 }
else if (str ==
"iepsilon") {
32 }
else if (str ==
"oepsilon") {
41 if (str ==
"ilabel") {
43 }
else if (str ==
"olabel") {
54 }
else if (str ==
"plus") {
63 if (str ==
"alt_sequence") {
65 }
else if (str ==
"auto") {
67 }
else if (str ==
"match") {
69 }
else if (str ==
"no_match") {
71 }
else if (str ==
"null") {
73 }
else if (str ==
"sequence") {
75 }
else if (str ==
"trivial") {
84 if (str ==
"functional") {
86 }
else if (str ==
"nonfunctional") {
88 }
else if (str ==
"disambiguate") {
100 }
else if (str ==
"output") {
109 if (str ==
"arc_sum") {
111 }
else if (str ==
"arc_unique") {
113 }
else if (str ==
"identity") {
115 }
else if (str ==
"input_epsilon") {
117 }
else if (str ==
"invert") {
119 }
else if (str ==
"output_epsilon") {
121 }
else if (str ==
"plus") {
123 }
else if (str ==
"power") {
125 }
else if (str ==
"quantize") {
127 }
else if (str ==
"rmweight") {
129 }
else if (str ==
"superfinal") {
131 }
else if (str ==
"times") {
133 }
else if (str ==
"to_log") {
135 }
else if (str ==
"to_log64") {
137 }
else if (str ==
"to_std" || str ==
"to_standard") {
146 if (str ==
"input") {
148 }
else if (str ==
"output") {
157 if (str ==
"uniform") {
159 }
else if (str ==
"log_prob") {
161 }
else if (str ==
"fast_log_prob") {
172 }
else if (str ==
"fifo") {
174 }
else if (str ==
"lifo") {
176 }
else if (str ==
"shortest") {
178 }
else if (str ==
"state") {
180 }
else if (str ==
"top") {
190 if (epsilon_on_replace || str ==
"neither") {
192 }
else if (str ==
"input") {
194 }
else if (str ==
"output") {
196 }
else if (str ==
"both") {
205 if (str ==
"to_initial") {
207 }
else if (str ==
"to_final") {
218 }
else if (str ==
"utf8") {
220 }
else if (str ==
"symbol") {
bool GetTokenType(std::string_view str, TokenType *token_type)
bool GetMapType(std::string_view str, MapType *map_type)
bool GetArcSortType(std::string_view str, ArcSortType *sort_type)
bool GetRandArcSelection(std::string_view str, RandArcSelection *ras)
bool GetDeterminizeType(std::string_view str, DeterminizeType *det_type)
bool GetReplaceLabelType(std::string_view str, bool epsilon_on_replace, ReplaceLabelType *rlt)
bool GetComposeFilter(std::string_view str, ComposeFilter *compose_filter)
bool GetClosureType(std::string_view str, ClosureType *closure_type)
bool GetQueueType(std::string_view str, QueueType *queue_type)
bool GetEpsNormalizeType(std::string_view str, EpsNormalizeType *eps_norm_type)
bool GetReweightType(std::string_view str, ReweightType *reweight_type)
bool GetArcFilterType(std::string_view str, ArcFilterType *arc_filter_type)
bool GetProjectType(std::string_view str, ProjectType *project_type)