Changeset b7fd2a0 in mainline for uspace/lib/uri
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/lib/uri
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/uri/uri.c
r36f0738 rb7fd2a0 143 143 * @return EOK on success 144 144 */ 145 int uri_scheme_parse(const char *str, const char **endptr)145 errno_t uri_scheme_parse(const char *str, const char **endptr) 146 146 { 147 147 if (*str == 0) { … … 175 175 } 176 176 177 int uri_percent_parse(const char *str, const char **endptr,177 errno_t uri_percent_parse(const char *str, const char **endptr, 178 178 uint8_t *decoded) 179 179 { … … 186 186 187 187 if (decoded != NULL) { 188 int rc = str_uint8_t(str + 1, NULL, 16, true, decoded);188 errno_t rc = str_uint8_t(str + 1, NULL, 16, true, decoded); 189 189 if (rc != EOK) 190 190 return rc; … … 195 195 } 196 196 197 int uri_user_info_parse(const char *str, const char **endptr)197 errno_t uri_user_info_parse(const char *str, const char **endptr) 198 198 { 199 199 while (*str != 0) { … … 201 201 if (*str == 0) 202 202 break; 203 int rc = uri_percent_parse(str, &str, NULL);203 errno_t rc = uri_percent_parse(str, &str, NULL); 204 204 if (rc != EOK) { 205 205 *endptr = str; … … 220 220 } 221 221 222 int uri_port_parse(const char *str, const char **endptr)222 errno_t uri_port_parse(const char *str, const char **endptr) 223 223 { 224 224 if (*str == 0) -
uspace/lib/uri/uri.h
r36f0738 rb7fd2a0 49 49 50 50 extern uri_t *uri_parse(const char *); 51 extern int uri_scheme_parse(const char *, const char **);51 extern errno_t uri_scheme_parse(const char *, const char **); 52 52 extern bool uri_scheme_validate(const char *); 53 extern int uri_percent_parse(const char *, const char **, uint8_t *);54 extern int uri_user_info_parse(const char *, const char **);53 extern errno_t uri_percent_parse(const char *, const char **, uint8_t *); 54 extern errno_t uri_user_info_parse(const char *, const char **); 55 55 extern bool uri_user_info_validate(const char *); 56 extern int uri_port_parse(const char *, const char **);56 extern errno_t uri_port_parse(const char *, const char **); 57 57 extern bool uri_port_validate(const char *); 58 58 extern bool uri_validate(uri_t *);
Note:
See TracChangeset
for help on using the changeset viewer.