Lines Matching refs:pos
102 int pos = 0, start_offset = 0; in json_escape_str() local
106 c = str[pos]; in json_escape_str()
117 if(pos - start_offset > 0) in json_escape_str()
118 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
129 start_offset = ++pos; in json_escape_str()
134 if(pos - start_offset > 0) in json_escape_str()
135 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()
139 start_offset = ++pos; in json_escape_str()
141 pos++; in json_escape_str()
144 if (pos - start_offset > 0) in json_escape_str()
145 printbuf_memappend(pb, str + start_offset, pos - start_offset); in json_escape_str()