Closed Taiki-San closed 6 years ago
Are those changes what you had in mind @kjbracey-arm ?
Hopefully, what was left should be fixed.
After the change, the counter was incremented before the exit test, meaning it would have left after the third component instead of the forth.
Sorry for missing that one. I squashed the various fixes in the first commit.
Thanks. Once this one is merged, I'll have a look at the util determining if a string is an IPv4 or an IPv6 literal.
We should be doing a subtree merge of libservice into mbed-os next week, to pick up this and #68 and #70
This PR is in response to https://github.com/ARMmbed/mbed-os/pull/6293#issuecomment-396533529 and introduce two utils, enabling :
stoip4
ip4tos
Was not sure about the convention regarding the headers, so went with the existing ones after updating the year. Do you have any comment?
If this PR go through, I'll follow with the second suggestion of @kjbracey-arm then change the original PR (https://github.com/ARMmbed/mbed-os/pull/6293) to use those new utils, if that's ok with everyone.