MCPcopy Create free account
hub / github.com/boostorg/build / regprop

Function regprop

src/engine/regexp.cpp:1215–1297  ·  view source on GitHub ↗

- regprop - printable representation of opcode */

Source from the content-addressed store, hash-verified

1213 - regprop - printable representation of opcode
1214 */
1215static char *
1216regprop( char *op )
1217{
1218 char *p;
1219 static char buf[50];
1220
1221 (void) strcpy(buf, ":");
1222
1223 switch (OP(op)) {
1224 case BOL:
1225 p = "BOL";
1226 break;
1227 case EOL:
1228 p = "EOL";
1229 break;
1230 case ANY:
1231 p = "ANY";
1232 break;
1233 case ANYOF:
1234 p = "ANYOF";
1235 break;
1236 case ANYBUT:
1237 p = "ANYBUT";
1238 break;
1239 case BRANCH:
1240 p = "BRANCH";
1241 break;
1242 case EXACTLY:
1243 p = "EXACTLY";
1244 break;
1245 case NOTHING:
1246 p = "NOTHING";
1247 break;
1248 case BACK:
1249 p = "BACK";
1250 break;
1251 case END:
1252 p = "END";
1253 break;
1254 case OPEN+1:
1255 case OPEN+2:
1256 case OPEN+3:
1257 case OPEN+4:
1258 case OPEN+5:
1259 case OPEN+6:
1260 case OPEN+7:
1261 case OPEN+8:
1262 case OPEN+9:
1263 sprintf(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
1264 p = NULL;
1265 break;
1266 case CLOSE+1:
1267 case CLOSE+2:
1268 case CLOSE+3:
1269 case CLOSE+4:
1270 case CLOSE+5:
1271 case CLOSE+6:
1272 case CLOSE+7:

Callers 2

regmatchFunction · 0.85
regdumpFunction · 0.85

Calls 1

regerrorFunction · 0.85

Tested by

no test coverage detected