2016-05-12 04:36:12 +08:00
|
|
|
---
|
|
|
|
title: "mg_skip()"
|
|
|
|
decl_name: "mg_skip"
|
|
|
|
symbol_kind: "func"
|
|
|
|
signature: |
|
|
|
|
const char *mg_skip(const char *s, const char *end_string,
|
|
|
|
const char *delimiters, struct mg_str *v);
|
|
|
|
---
|
|
|
|
|
2016-07-26 00:30:04 +08:00
|
|
|
Fetches substring from input string `s`, `end` into `v`.
|
2016-05-12 04:36:12 +08:00
|
|
|
Skips initial delimiter characters. Records first non-delimiter character
|
2016-07-26 00:30:04 +08:00
|
|
|
at the beginning of substring `v`. Then scans the rest of the string
|
2016-05-12 04:36:12 +08:00
|
|
|
until a delimiter character or end-of-string is found.
|
|
|
|
`delimiters` is a 0-terminated string containing delimiter characters.
|
|
|
|
Either one of `delimiters` or `end_string` terminates the search.
|
2016-07-26 00:30:04 +08:00
|
|
|
Returns an `s` pointer, advanced forward where parsing has stopped.
|
2016-05-12 04:36:12 +08:00
|
|
|
|