7 : callback(
std::move(callback_))
23 state = (c ==
'<') ? O1 : O0;
break;
25 state = (c ==
'c') ? O2 : O0;
break;
27 state = (c ==
'o') ? O3 : O0;
break;
29 state = (c ==
'm') ? O4 : O0;
break;
31 state = (c ==
'm') ? O5 : O0;
break;
33 state = (c ==
'a') ? O6 : O0;
break;
35 state = (c ==
'n') ? O7 : O0;
break;
37 state = (c ==
'd') ? O8 : O0;
break;
47 if (c ==
'<') state = C1;
48 else if (c ==
'&') state = A1;
52 state = (c ==
'/') ? C2 : O0;
break;
54 state = (c ==
'c') ? C3 : O0;
break;
56 state = (c ==
'o') ? C4 : O0;
break;
58 state = (c ==
'm') ? C5 : O0;
break;
60 state = (c ==
'm') ? C6 : O0;
break;
62 state = (c ==
'a') ? C7 : O0;
break;
64 state = (c ==
'n') ? C8 : O0;
break;
66 state = (c ==
'd') ? C9 : O0;
break;
68 if (c ==
'>') callback(command);
72 if (c ==
'l') state = L2;
73 else if (c ==
'a') state = A2;
74 else if (c ==
'g') state = G2;
75 else if (c ==
'q') state = Q2;
76 else if (c ==
'#') { state = H2; unicode = 0; }
80 if (c ==
'm') state = A3;
81 else if (c ==
'p') state = P3;
85 state = (c ==
'p') ? A4 : O0;
break;
95 state = (c ==
'o') ? P4 : O0;
break;
97 state = (c ==
's') ? P5 : O0;
break;
107 state = (c ==
'u') ? Q3 : O0;
break;
109 state = (c ==
'o') ? Q4 : O0;
break;
111 state = (c ==
't') ? Q5 : O0;
break;
121 state = (c ==
't') ? G3 : O0;
break;
131 state = (c ==
't') ? L3 : O0;
break;
146 }
else if (c ==
'x') {
150 if ((
'0' <= c) && (c <=
'9')) unicode += c -
'0';
160 if ((
'0' <= c) && (c <=
'9')) unicode += c -
'0';
161 else if ((
'a' <= c) && (c <=
'f')) unicode += c -
'a' + 10;
162 else if ((
'A' <= c) && (c <=
'F')) unicode += c -
'A' + 10;
void parse(std::span< const char > buf)
AdhocCliCommParser(std::function< void(const std::string &)> callback)
octet_iterator append(uint32_t cp, octet_iterator result)