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

Function regprop

v2/engine/regexp.c:1214–1296  ·  view source on GitHub ↗

- regprop - printable representation of opcode */

Source from the content-addressed store, hash-verified

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

Callers 2

regmatchFunction · 0.85
regdumpFunction · 0.85

Calls 1

regerrorFunction · 0.85

Tested by

no test coverage detected