Lines Matching refs:pos

190 	string::size_type line_size,pos;  in parse_config()  local
207 pos = strLine.find("="); in parse_config()
208 if (pos == string::npos){ in parse_config()
211 strItemName = strLine.substr(0, pos); in parse_config()
212 strItemValue = strLine.substr(pos + 1); in parse_config()
263 string::size_type pos,prevPos; in ParsePartitionInfo() local
266 prevPos = pos = 0; in ParsePartitionInfo()
270 pos = strPartInfo.find('@'); in ParsePartitionInfo()
271 if (pos == string::npos) { in ParsePartitionInfo()
274 strLen = strPartInfo.substr(prevPos, pos - prevPos); in ParsePartitionInfo()
286 prevPos = pos + 1; in ParsePartitionInfo()
287 pos = strPartInfo.find('(',prevPos); in ParsePartitionInfo()
288 if (pos == string::npos) { in ParsePartitionInfo()
291 strOffset = strPartInfo.substr(prevPos, pos - prevPos); in ParsePartitionInfo()
298 prevPos = pos + 1; in ParsePartitionInfo()
299 pos = strPartInfo.find(')', prevPos); in ParsePartitionInfo()
300 if (pos == string::npos) { in ParsePartitionInfo()
303 strName = strPartInfo.substr(prevPos, pos - prevPos); in ParsePartitionInfo()
311 string::size_type pos(0); in ParseUuidInfo() local
316 pos = strUuidInfo.find('='); in ParseUuidInfo()
317 if (pos == string::npos) { in ParseUuidInfo()
320 strName = strUuidInfo.substr(0, pos); in ParseUuidInfo()
324 strUUid = strUuidInfo.substr(pos+1); in ParseUuidInfo()
329 pos = 0; in ParseUuidInfo()
330 if( (pos = strUUid.find("-")) != string::npos) in ParseUuidInfo()
331 strUUid.replace(pos,1,""); in ParseUuidInfo()
346 string::size_type line_size, pos, posColon, posComma; in parse_parameter() local
366 pos = strLine.find("uuid:"); in parse_parameter()
367 if (pos != string::npos) { in parse_parameter()
368 strPartInfo = strLine.substr(pos+5); in parse_parameter()
378 pos = strLine.find("mtdparts"); in parse_parameter()
379 if (pos == string::npos) { in parse_parameter()
383 posColon = strLine.find(':', pos); in parse_parameter()
388 pos = 0; in parse_parameter()
389 posComma = strPartition.find(',', pos); in parse_parameter()
391 strPartInfo = strPartition.substr(pos, posComma - pos); in parse_parameter()
399 pos = posComma + 1; in parse_parameter()
400 posComma = strPartition.find(',', pos); in parse_parameter()
402 strPartInfo = strPartition.substr(pos); in parse_parameter()
668 int pos; in create_gpt_buffer() local
713 if ((pos = find_config_item(vecUuid, vecParts[i].szItemName)) != -1) in create_gpt_buffer()
714 memcpy(gptEntry->unique_partition_guid.raw, vecUuid[pos].szItemValue, 16); in create_gpt_buffer()
1049 int i, index, pos; in parse471() local
1075 pos = ftell(file); in parse471()
1080 fseek(file, pos, SEEK_SET); in parse471()
1086 int i, index, pos; in parse472() local
1112 pos = ftell(file); in parse472()
1117 fseek(file, pos, SEEK_SET); in parse472()
1123 int i, j, index, pos; in parseLoader() local
1130 pos = ftell(file); in parseLoader()
1132 fseek(file, pos, SEEK_SET); in parseLoader()
2994 char *pos = NULL, *pStart; in split_item() local
2996 pos = strchr(pStart, ','); in split_item()
2997 while(pos != NULL) { in split_item()
2999 strncpy(szItem, pStart, pos - pStart); in split_item()
3002 pStart = pos + 1; in split_item()
3005 pos = strchr(pStart, ','); in split_item()