Home | History | Annotate | Download | only in reference-ril

Lines Matching refs:p_cur

26  * updates *p_cur with current position
28 int at_tok_start(char **p_cur)
30 if (*p_cur == NULL) {
37 *p_cur = strchr(*p_cur, ':');
39 if (*p_cur == NULL) {
43 (*p_cur)++;
48 static void skipWhiteSpace(char **p_cur)
50 if (*p_cur == NULL) return;
52 while (**p_cur != '\0' && isspace(**p_cur)) {
53 (*p_cur)++;
57 static void skipNextComma(char **p_cur)
59 if (*p_cur == NULL) return;
61 while (**p_cur != '\0' && **p_cur != ',') {
62 (*p_cur)++;
65 if (**p_cur == ',') {
66 (*p_cur)++;
70 static char * nextTok(char **p_cur)
74 skipWhiteSpace(p_cur);
76 if (*p_cur == NULL) {
78 } else if (**p_cur == '"') {
79 (*p_cur)++;
80 ret = strsep(p_cur, "\"");
81 skipNextComma(p_cur);
83 ret = strsep(p_cur, ",");
93 * updates *p_cur
97 static int at_tok_nextint_base(char **p_cur, int *p_out, int base, int uns)
101 if (*p_cur == NULL) {
105 ret = nextTok(p_cur);
132 * updates *p_cur
134 int at_tok_nextint(char **p_cur, int *p_out)
136 return at_tok_nextint_base(p_cur, p_out, 10, 0);
143 * updates *p_cur
145 int at_tok_nexthexint(char **p_cur, int *p_out)
147 return at_tok_nextint_base(p_cur, p_out, 16, 1);
150 int at_tok_nextbool(char **p_cur, char *p_out)
155 ret = at_tok_nextint(p_cur, &result);
173 int at_tok_nextstr(char **p_cur, char **p_out)
175 if (*p_cur == NULL) {
179 *p_out = nextTok(p_cur);
185 int at_tok_hasmore(char **p_cur)
187 return ! (*p_cur == NULL || **p_cur == '\0');