Guest User

Untitled

a guest
Apr 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. /* check each "word" (space separated) */
  2. while (1)
  3. {
  4. switch (po[0])
  5. {
  6. case 0:
  7. case ' ':
  8. wlen = po - start;
  9. if (wlen > 2)
  10. {
  11. if (url_check_word (start, wlen) == WORD_URL)
  12. {
  13. url_add (start, wlen);
  14. }
  15. }
  16. if (po[0] == 0)
  17. return;
  18. po++;
  19. start = po;
  20. break;
  21. // i added this
  22. case ' ':
  23. wlen = po - start;
  24. if (wlen > 2)
  25. {
  26. if (url_check_word (start, wlen) == WORD_URL)
  27. {
  28. url_add (start, wlen);
  29. }
  30. }
  31. if (po[0] == 0)
  32. return;
  33. po++;
  34. start = po;
  35. break;
  36.  
  37. default:
  38. po++;
  39. }
  40. }
Add Comment
Please, Sign In to add comment