uri: rework struct uri to use a copy of the original splitted string.
In the future, it is planned to extend the URI structure to allow its passing with different options and in different formats (see next commit `uri: implement ability to parse URI query paramters` for example). For these purposes, it is planned to use functions that modify the source string, for example `strtok_r`, so we need to rework the URI structure to create copies of the string for each of the URI components. Part of #5928
Showing
- extra/exports 2 additions, 1 deletionextra/exports
- src/box/applier.cc 17 additions, 15 deletionssrc/box/applier.cc
- src/box/applier.h 16 additions, 2 deletionssrc/box/applier.h
- src/box/box.cc 3 additions, 1 deletionsrc/box/box.cc
- src/box/replication.cc 3 additions, 2 deletionssrc/box/replication.cc
- src/lib/core/evio.c 18 additions, 16 deletionssrc/lib/core/evio.c
- src/lib/core/sio.c 11 additions, 10 deletionssrc/lib/core/sio.c
- src/lib/uri/CMakeLists.txt 1 addition, 1 deletionsrc/lib/uri/CMakeLists.txt
- src/lib/uri/uri.c 77 additions, 0 deletionssrc/lib/uri/uri.c
- src/lib/uri/uri.h 51 additions, 1 deletionsrc/lib/uri/uri.h
- src/lib/uri/uri_parser.c 307 additions, 347 deletionssrc/lib/uri/uri_parser.c
- src/lib/uri/uri_parser.h 2 additions, 11 deletionssrc/lib/uri/uri_parser.h
- src/lib/uri/uri_parser.rl 2 additions, 42 deletionssrc/lib/uri/uri_parser.rl
- src/lua/uri.lua 14 additions, 19 deletionssrc/lua/uri.lua
- static-build/test/static-build/exports.test.lua 2 additions, 1 deletionstatic-build/test/static-build/exports.test.lua
- test/fuzz/uri_fuzzer.c 2 additions, 1 deletiontest/fuzz/uri_fuzzer.c
- test/unit/swim.c 3 additions, 2 deletionstest/unit/swim.c
- test/unit/uri_parser.c 9 additions, 8 deletionstest/unit/uri_parser.c
Loading
Please register or sign in to comment