Guest User

Untitled

a guest
Feb 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. NSString* str = it->first;
  2. if([str isEqualToString:[NSString stringWithFormat:@"%d", [str intValue]]])
  3. {
  4. res->insert(std::make_pair([str intValue], rule));
  5. }
  6. else if(ptrn)
  7. {
  8. int* list = NULL;
  9. int len = ptrn->indices_for_group([str UTF8String], &list);
  10. for(int i = 0; i < len; i++)
  11. res->insert(std::make_pair(list[i], rule));
  12. }
  13. else
  14. {
  15. // FIXME we need to resoolve this when the pattern is known
  16. }
Add Comment
Please, Sign In to add comment