Skip to content

Instantly share code, notes, and snippets.

@charlie5
Created November 2, 2013 02:21
Show Gist options
  • Save charlie5/7274770 to your computer and use it in GitHub Desktop.
Save charlie5/7274770 to your computer and use it in GitHub Desktop.
declare
First : Integer := your_String'First;
Last : Integer;
begin
loop
Last := Index (your_String, " ", from => First);
if Last = 0 -- Space not found
then
put_Line ("Final Token: " & your_String (First, your_String'Last));
exit;
end if;
put_Line ("Token: " & your_String (First, Last - 1);
First := Last + 1;
end loop;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment