| 352 | return runInt(ctx); |
| 353 | } |
| 354 | int runInt(CppiaCtx *ctx) HXCPP_OVERRIDE |
| 355 | { |
| 356 | String val = strVal->runString(ctx); |
| 357 | BCR_CHECK; |
| 358 | String s = sought->runString(ctx); |
| 359 | BCR_CHECK; |
| 360 | hx::Object *first = start->runObject(ctx); |
| 361 | BCR_CHECK; |
| 362 | if (LAST) |
| 363 | return val.lastIndexOf(s,first); |
| 364 | else |
| 365 | return val.indexOf(s,first); |
| 366 | } |
| 367 | hx::Object *runObject(CppiaCtx *ctx) HXCPP_OVERRIDE { return Dynamic(runInt(ctx)).mPtr; } |
| 368 | |
| 369 |
nothing calls this directly
no test coverage detected