[url] move url to library (#5233)

This commit moves the URL parser to src/lib.

Also includes the following changes:
- Split URL on initialization.
- Make a GetValue() const method.
- Check aLastValue.
- Add some negative tests.
This commit is contained in:
Yakun Xu
2020-07-15 23:39:02 -07:00
committed by GitHub
parent 4e8836cbec
commit 89cd4b59f8
23 changed files with 477 additions and 227 deletions
+1
View File
@@ -277,6 +277,7 @@ LOCAL_SRC_FILES := \
src/lib/spinel/spinel.c \
src/lib/spinel/spinel_decoder.cpp \
src/lib/spinel/spinel_encoder.cpp \
src/lib/url/url.cpp \
src/posix/platform/alarm.cpp \
src/posix/platform/entropy.cpp \
src/posix/platform/hdlc_interface.cpp \